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,
  "tax_percent": 17,
  "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
volume_ids
string<uuid4>[]
required

List of volume IDs.

Required array length: 1 - 100 elements
Examples:
["3ed9e2ce-f906-47fb-ba32-c25a3f63df4f"]
schedules
Schedules · array

List of schedules associated with the policy.

Maximum length: 10

Response

200 - application/json

OK

Billing response preview schema for server instance.

currency_code
enum<string>
required

Currency code (3-letter code per ISO 4217).

Available options:
AZN,
EUR,
USD
Examples:

"USD"

"EUR"

"AZN"

discount
number | null
required

Discount value within range [0..1] where 1 is 100%.

Examples:

0.1

0.02

0.99

per_hour
object
required

Prices per category charged per hour.

per_month
object
required

Prices per category charged per month.

price_status
enum<string>
required

Price status for the UI.

Available options:
error,
hide,
show
price_without_discount_per_month
number | null
required

Total price VAT inclusive per month without discount.

Examples:

800

1000.5

tax_percent
number
required

Tax rate applied to the subtotal, represented as a percentage

Examples:

0

17

12

total_price_per_hour
number | null
required

Total price VAT inclusive per hour.

Examples:

1.02

2.5

total_price_per_month
number | null
required

Total price VAT inclusive per month.

Examples:

734.4

1200