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