curl --request POST \
--url https://api.gcore.com/cloud/v1/reservations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"has_windows": false,
"name": "<string>",
"period": "MONTHS12",
"region_id": 123,
"resources": [
{
"resource_name": "bm1-hf-medium",
"resource_type": "flavor",
"resource_value": 2
}
]
}'
{
"active_from": "2023-12-25",
"active_to": "2023-12-25",
"activity_period": "<string>",
"activity_period_length": 123,
"amount_prices": {
"commit_price_per_month": "<string>",
"commit_price_per_unit": "<string>",
"commit_price_total": "<string>",
"currency_code": "<string>",
"overcommit_price_per_month": "<string>",
"overcommit_price_per_unit": "<string>",
"overcommit_price_total": "<string>"
},
"billing_plan_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"error": "<string>",
"eta": "2023-12-25",
"id": 123,
"is_expiration_message_visible": true,
"name": "<string>",
"next_statuses": [
"<string>"
],
"region_id": 123,
"region_name": "<string>",
"remind_expiration_message": "2024-01-01",
"resources": [
{
"activity_period": "<string>",
"activity_period_length": 123,
"billing_plan_item_id": 123,
"commit_price_per_month": "<string>",
"commit_price_per_unit": "<string>",
"commit_price_total": "<string>",
"cpu": "<string>",
"disk": "<string>",
"overcommit_billing_plan_item_id": 123,
"overcommit_price_per_month": "<string>",
"overcommit_price_per_unit": "<string>",
"overcommit_price_total": "<string>",
"ram": "<string>",
"resource_count": 123,
"resource_name": "<string>",
"resource_type": "flavor",
"unit_name": "<string>",
"unit_size_month": "<string>",
"unit_size_total": "<string>"
}
],
"status": "ACTIVATED",
"user_status": "ACTIVATED"
}
curl --request POST \
--url https://api.gcore.com/cloud/v1/reservations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"has_windows": false,
"name": "<string>",
"period": "MONTHS12",
"region_id": 123,
"resources": [
{
"resource_name": "bm1-hf-medium",
"resource_type": "flavor",
"resource_value": 2
}
]
}'
{
"active_from": "2023-12-25",
"active_to": "2023-12-25",
"activity_period": "<string>",
"activity_period_length": 123,
"amount_prices": {
"commit_price_per_month": "<string>",
"commit_price_per_unit": "<string>",
"commit_price_total": "<string>",
"currency_code": "<string>",
"overcommit_price_per_month": "<string>",
"overcommit_price_per_unit": "<string>",
"overcommit_price_total": "<string>"
},
"billing_plan_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"error": "<string>",
"eta": "2023-12-25",
"id": 123,
"is_expiration_message_visible": true,
"name": "<string>",
"next_statuses": [
"<string>"
],
"region_id": 123,
"region_name": "<string>",
"remind_expiration_message": "2024-01-01",
"resources": [
{
"activity_period": "<string>",
"activity_period_length": 123,
"billing_plan_item_id": 123,
"commit_price_per_month": "<string>",
"commit_price_per_unit": "<string>",
"commit_price_total": "<string>",
"cpu": "<string>",
"disk": "<string>",
"overcommit_billing_plan_item_id": 123,
"overcommit_price_per_month": "<string>",
"overcommit_price_per_unit": "<string>",
"overcommit_price_total": "<string>",
"ram": "<string>",
"resource_count": 123,
"resource_name": "<string>",
"resource_type": "flavor",
"unit_name": "<string>",
"unit_size_month": "<string>",
"unit_size_total": "<string>"
}
],
"status": "ACTIVATED",
"user_status": "ACTIVATED"
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Created
The response is of type object
.
Was this page helpful?