Skip to main content
POST
/
cloud
/
v2
/
pricing
/
{project_id}
/
{region_id}
/
k8s
/
clusters
Preview k8s cluster price
curl --request POST \
  --url https://api.gcore.com/cloud/v2/pricing/{project_id}/{region_id}/k8s/clusters \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pools": [
    {
      "flavor_id": "<string>",
      "boot_volume_size": 1005,
      "boot_volume_type": "cold",
      "is_public_ipv4": false,
      "node_count": 1
    }
  ]
}
'
{
  "instances": [
    {
      "currency_code": "AZN",
      "discount_percent": 0.16,
      "price_per_hour": 1,
      "price_per_month": 720,
      "price_status": "error",
      "price_without_discount_per_month": 604.8,
      "tax_percent": 123
    }
  ],
  "publicips": [
    {
      "currency_code": "AZN",
      "discount_percent": 0.16,
      "price_per_hour": 1,
      "price_per_month": 720,
      "price_status": "error",
      "price_without_discount_per_month": 604.8,
      "tax_percent": 123
    }
  ],
  "total_price": {
    "currency_code": "AZN",
    "discount_percent": 0.16,
    "price_per_hour": 1,
    "price_per_month": 720,
    "price_status": "error",
    "price_without_discount_per_month": 604.8,
    "tax_percent": 123
  },
  "volumes": [
    {
      "currency_code": "AZN",
      "discount_percent": 0.16,
      "price_per_hour": 1,
      "price_per_month": 720,
      "price_status": "error",
      "price_without_discount_per_month": 604.8,
      "tax_percent": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

Body

application/json
pools
K8sClusterPoolPricingRequestV2Serializer · object[]
required

Cluster pools

Response

200 - application/json

OK

Pricing scheme for various resources

instances
ItemPriceResponseSerializer · object[]
required
publicips
ItemPriceResponseSerializer · object[]
required
total_price
ItemPriceResponseSerializer · object
required

Response with prices per hour and per month

volumes
ItemPriceResponseSerializer · object[]
required