Snapshot Schedules
Check snapshot policy quota
Calculate the maximum resource usage if all snapshots are created by the policy.
post/cloud/v1/lifecycle_policy/{project_id}/{region_id}/estimate_max_policy_usage
Path parameters
project_idinteger required
Project ID
Example:1
Project ID
region_idinteger required
Region ID
Example:1
Region ID
Request body
Example request
{
"name": "schedule_1",
"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
{
"max_cost": {
"currency_code": "USD",
"discount_percent": 0.16,
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"price_without_discount_per_month": 604.8,
"tax_percent": 17
},
"max_volume_snapshot_count_usage": 2,
"max_volume_snapshot_sequence_length": 2,
"max_volume_snapshot_size_usage": 20
}