POST
/
cloud
/
v1
/
reservations
curl --request POST \
  --url https://api.gcore.com/cloud/v1/reservations \
  --header 'APIKey: <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": "2024-12-02",
  "active_to": "2025-12-02",
  "activity_period": "month",
  "activity_period_length": 12,
  "amount_prices": {
    "commit_price_per_month": "1302.45570000",
    "commit_price_per_unit": "1.75061250",
    "commit_price_total": "15629.46840000",
    "currency_code": "EUR",
    "overcommit_price_per_month": "3060.60768000",
    "overcommit_price_per_unit": "4.11372000",
    "overcommit_price_total": "36727.29216000"
  },
  "billing_plan_id": 1114,
  "created_at": "2024-12-02T11:53:33.127371",
  "error": null,
  "eta": "2025-11-01",
  "id": 10218,
  "is_expiration_message_visible": true,
  "name": "Test_name_TestReservation_1733140407.738675",
  "next_statuses": [
    "APPROVED",
    "REJECTED"
  ],
  "region_id": 4,
  "region_name": "LUX-4",
  "remind_expiration_message": null,
  "resources": [
    {
      "activity_period": "month",
      "activity_period_length": 12,
      "billing_plan_item_id": 2584252,
      "commit_price_per_month": "434.15190000",
      "commit_price_per_unit": "0.58353750",
      "commit_price_total": "5209.82280000",
      "cpu": "2xIntel Xeon 8468",
      "disk": "8 x 3.84 TB NVMe",
      "overcommit_billing_plan_item_id": 2585397,
      "overcommit_price_per_month": "1020.20256000",
      "overcommit_price_per_unit": "1.37124000",
      "overcommit_price_total": "12242.43072000",
      "ram": "2TB RAM",
      "resource_count": 3,
      "resource_name": "bm0-infrastructure-small-fake_min",
      "resource_type": "flavor",
      "unit_name": "H",
      "unit_size_month": "744.00000000",
      "unit_size_total": "8928.00000000"
    }
  ],
  "status": "CREATED",
  "user_status": "CREATED"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Body

application/json

Response

201 - application/json

Created

The response is of type object.