cURL
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>" } ] } ] }
List all snapshot policies in the specified project and region.
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
Project ID
1
Region ID
OK
Number of objects
x >= 0
Objects
Show child attributes
Was this page helpful?