v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Snapshot Schedules

Preview snapshot policy price

Get the maximum usage cost for resources if the policy creates all snapshots.

post/cloud/v2/pricing/{project_id}/{region_id}/lifecycle_policy

Path parameters

project_idinteger required

Project ID

Example:1

Project ID

region_idinteger required

Region ID

Example:1

Region ID

Request body

volume_idsstring[] required

List of volume IDs.

Example request

{
  "schedules": [
    {
      "day": "5",
      "day_of_week": "mon,fri",
      "hour": "0, 20",
      "max_quantity": 2,
      "minute": "30",
      "month": "1,6",
      "resource_name_template": "Snapshot of volume {volume_id} created by policy {lifecycle_policy_id}",
      "retention_time": {
        "hours": 2,
        "minutes": 1
      },
      "timezone": "UTC",
      "type": "cron",
      "week": "1"
    }
  ],
  "volume_ids": [
    "3ed9e2ce-f906-47fb-ba32-c25a3f63df4f"
  ]
}

Response

OK

currency_code'AZN' | 'EUR' | 'USD' required

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

discountnumber nullable required

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

price_status'error' | 'hide' | 'show' required
price_without_discount_per_monthnumber nullable required

Total price VAT inclusive per month without discount.

tax_percentnumber required

Tax rate applied to the subtotal, represented as a percentage

total_price_per_hournumber nullable required

Total price VAT inclusive per hour.

total_price_per_monthnumber nullable required

Total price VAT inclusive per month.

Example response

{
  "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
}