curl --request POST \
--url https://api.gcore.com/cloud/v2/pricing/{project_id}/{region_id}/loadbalancers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"flavor": "lb1-1-2",
"floating_ip": {
"existing_floating_id": "c64e5db1-5f1f-43ec-a8d9-5090df85b82d",
"source": "existing"
}
}'
{
"currency_code": "USD",
"discount_percent": 0.16,
"per_hour": {
"external_ip": 0.02,
"flavor": 0.8,
"floating_ip": 0.05
},
"per_month": {
"external_ip": 14.4,
"flavor": 576,
"floating_ip": 36
},
"price_status": "show",
"price_without_discount_per_month": 604.8,
"total_price_per_hour": 1.02,
"total_price_per_month": 734.4
}
Preview billing price of the load balancer.
curl --request POST \
--url https://api.gcore.com/cloud/v2/pricing/{project_id}/{region_id}/loadbalancers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"flavor": "lb1-1-2",
"floating_ip": {
"existing_floating_id": "c64e5db1-5f1f-43ec-a8d9-5090df85b82d",
"source": "existing"
}
}'
{
"currency_code": "USD",
"discount_percent": 0.16,
"per_hour": {
"external_ip": 0.02,
"flavor": 0.8,
"floating_ip": 0.05
},
"per_month": {
"external_ip": 14.4,
"flavor": 576,
"floating_ip": 36
},
"price_status": "show",
"price_without_discount_per_month": 604.8,
"total_price_per_hour": 1.02,
"total_price_per_month": 734.4
}
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
Price preview loadbalancer schema
OK
Billing response preview schema for loadbalancer
Was this page helpful?