POST
/
cloud
/
v2
/
pricing
/
{project_id}
/
{region_id}
/
lifecycle_policy
Preview snapshot policy price
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
}

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

Examples:

1

region_id
integer
required

Region ID

Examples:

1

Body

application/json

Response

200 - application/json

OK

Billing response preview schema for server instance.