v32

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

List snapshot policies

List all snapshot policies in the specified project and region.

get/cloud/v1/lifecycle_policy/{project_id}/{region_id}

Path parameters

project_idinteger required

Project ID

Example:1

Project ID

region_idinteger required

Region ID

Example:1

Region ID

Response

OK

countinteger required

Number of objects

Example response

{
  "count": 1,
  "results": [
    {
      "action": "volume_snapshot",
      "id": 1,
      "name": "schedule_1",
      "project_id": 1,
      "region_id": 1,
      "schedules": [
        {
          "day": "5",
          "day_of_week": "mon,fri",
          "hour": "0, 20",
          "id": "1488e2ce-f906-47fb-ba32-c25a3f63df4f",
          "max_quantity": 2,
          "minute": "30",
          "month": "1,6",
          "owner": "lifecycle_policy",
          "owner_id": 1,
          "resource_name_template": "reserve snap of the volume {volume_id}",
          "retention_time": {
            "hours": 2,
            "minutes": 1
          },
          "timezone": "UTC",
          "type": "cron",
          "user_id": 12,
          "week": "1"
        }
      ],
      "user_id": 11,
      "volumes": [
        {
          "volume_id": "3ed9e2ce-f906-47fb-ba32-c25a3f63df4f",
          "volume_name": "test schedule"
        }
      ]
    }
  ]
}