POST
/
cloud
/
v1
/
lifecycle_policy
/
{project_id}
/
{region_id}
/
{policy_id}
/
remove_schedules
curl --request POST \
  --url https://api.gcore.com/cloud/v1/lifecycle_policy/{project_id}/{region_id}/{policy_id}/remove_schedules \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "schedule_ids": [
    "1488e2ce-f906-47fb-ba32-c25a3f63df4f"
  ]
}'
{
  "action": "volume_snapshot",
  "id": 1,
  "name": "schedule_1",
  "project_id": 1,
  "region_id": 1,
  "schedules": [
    {
      "day_of_week": "*",
      "hour": "0, 10, 20",
      "id": "1488e2ce-f906-47fb-ba32-c25a3f63df4f",
      "max_quantity": 2,
      "minute": "30",
      "owner": "lifecycle_policy",
      "owner_id": 1,
      "resource_name_template": "reserve snap of the volume {volume_id}",
      "type": "cron",
      "user_id": 12
    }
  ],
  "status": "active",
  "user_id": 11,
  "volumes": [
    {
      "volume_id": "3ed9e2ce-f906-47fb-ba32-c25a3f63df4f",
      "volume_name": "test schedule"
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

region_id
integer
required

Region ID

Examples:

1

policy_id
integer
required

Lifecycle policy ID.

Examples:

1

Body

application/json

Response

200 - application/json

OK

The response is of type object.