curl --request POST \
--url https://api.gcore.com/cloud/v2/pricing/{project_id}/{region_id}/lifecycle_policy \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"schedules": [],
"volume_ids": [
"3ed9e2ce-f906-47fb-ba32-c25a3f63df4f"
]
}'
{
"currency_code": "USD",
"discount": 0,
"per_hour": {
"volumes": [
{
"discount": 0.1,
"price": 78,
"type": "cold"
},
{
"discount": 0,
"price": 78,
"type": "ssd_hiiops"
},
{
"discount": 0.1,
"price": 78,
"type": "standard"
}
]
},
"per_month": {
"volumes": [
{
"discount": 0.1,
"price": 178,
"type": "cold"
},
{
"discount": 0,
"price": 178,
"type": "ssd_hiiops"
},
{
"discount": 0.1,
"price": 178,
"type": "standard"
}
]
},
"price_status": "show",
"price_without_discount_per_month": 734.4,
"total_price_per_hour": 1.02,
"total_price_per_month": 734.4
}
Get maximum usage cost of resources if all snapshots are created by the policy.
curl --request POST \
--url https://api.gcore.com/cloud/v2/pricing/{project_id}/{region_id}/lifecycle_policy \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"schedules": [],
"volume_ids": [
"3ed9e2ce-f906-47fb-ba32-c25a3f63df4f"
]
}'
{
"currency_code": "USD",
"discount": 0,
"per_hour": {
"volumes": [
{
"discount": 0.1,
"price": 78,
"type": "cold"
},
{
"discount": 0,
"price": 78,
"type": "ssd_hiiops"
},
{
"discount": 0.1,
"price": 78,
"type": "standard"
}
]
},
"per_month": {
"volumes": [
{
"discount": 0.1,
"price": 178,
"type": "cold"
},
{
"discount": 0,
"price": 178,
"type": "ssd_hiiops"
},
{
"discount": 0.1,
"price": 178,
"type": "standard"
}
]
},
"price_status": "show",
"price_without_discount_per_month": 734.4,
"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
OK
Billing response preview schema for server instance.
Was this page helpful?