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": "g0-standard-1-2",
"node_count": 1
}
]
}'
{
"instances": [
{
"currency_code": "USD",
"discount_percent": 0.16,
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"price_without_discount_per_month": 604.8
}
],
"publicips": [
{
"currency_code": "USD",
"discount_percent": 0.16,
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"price_without_discount_per_month": 604.8
}
],
"total_price": {
"currency_code": "USD",
"discount_percent": 0.16,
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"price_without_discount_per_month": 604.8
},
"volumes": [
{
"currency_code": "USD",
"discount_percent": 0.16,
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"price_without_discount_per_month": 604.8
}
]
}
Preview billing price of the cluster based on the provided configuration.
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": "g0-standard-1-2",
"node_count": 1
}
]
}'
{
"instances": [
{
"currency_code": "USD",
"discount_percent": 0.16,
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"price_without_discount_per_month": 604.8
}
],
"publicips": [
{
"currency_code": "USD",
"discount_percent": 0.16,
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"price_without_discount_per_month": 604.8
}
],
"total_price": {
"currency_code": "USD",
"discount_percent": 0.16,
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"price_without_discount_per_month": 604.8
},
"volumes": [
{
"currency_code": "USD",
"discount_percent": 0.16,
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"price_without_discount_per_month": 604.8
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
1
Region ID
1
OK
Pricing scheme for various resources
Was this page helpful?