POST
/
cloud
/
v1
/
pricing
/
{region_id}
/
billing_reservation
curl --request POST \
  --url https://api.gcore.com/cloud/v1/pricing/{region_id}/billing_reservation \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "has_windows": false,
  "period": "MONTHS12",
  "resources": [
    {
      "resource_name": "bm1-hf-medium",
      "resource_type": "flavor",
      "resource_value": 2
    }
  ]
}'
{
  "activity_period": "month",
  "activity_period_length": 12,
  "amount_prices": {
    "commit_price_per_month": "117.00000000",
    "commit_price_per_unit": "0.15725878",
    "commit_price_total": "1404.000000",
    "currency_code": "EUR",
    "overcommit_price_per_month": "22154.92500000",
    "overcommit_price_per_unit": "29.77812578",
    "overcommit_price_total": "265859.100000"
  },
  "price_status": "SHOW",
  "region_id": 7,
  "region_name": "ED-10",
  "resources": [
    {
      "activity_period": "month",
      "activity_period_length": 12,
      "commit_price_per_month": "117.00000000",
      "commit_price_per_unit": "0.15725878",
      "commit_price_total": "1404.000000",
      "overcommit_price_per_month": "22154.92500000",
      "overcommit_price_per_unit": "29.77812578",
      "overcommit_price_total": "265859.100000",
      "resource_name": "bm1-hf-medium_min",
      "unit_name": "PC*Hour",
      "unit_size_month": 744,
      "unit_size_total": 8928
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

region_id
integer
required

Region ID

Examples:

1

Body

application/json

Response

200 - application/json

OK

The response is of type object.