Skip to main content
GET
/
cloud
/
v1
/
lifecycle_policy
/
{project_id}
/
{region_id}
List snapshot policies
curl --request GET \
  --url https://api.gcore.com/cloud/v1/lifecycle_policy/{project_id}/{region_id} \
  --header 'Authorization: <api-key>'
{
  "count": 1,
  "results": [
    {
      "action": "<string>",
      "id": 123,
      "name": "<string>",
      "project_id": 123,
      "region_id": 123,
      "schedules": [
        {
          "id": "<string>",
          "max_quantity": 123,
          "owner": "<string>",
          "owner_id": 123,
          "retention_time": {
            "days": 0,
            "hours": 2,
            "minutes": 1,
            "weeks": 0
          },
          "type": "<string>",
          "user_id": 123,
          "day": "5",
          "day_of_week": "mon,fri",
          "hour": "0, 20",
          "minute": "30",
          "month": "1,6",
          "resource_name_template": "reserve snap of the volume {volume_id}",
          "timezone": "UTC",
          "week": "1"
        }
      ],
      "status": "active",
      "user_id": 123,
      "volumes": [
        {
          "volume_id": "<string>",
          "volume_name": "<string>"
        }
      ]
    }
  ]
}

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

region_id
integer
required

Region ID

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
LifecyclePolicySerializer · object[]
required

Objects