Snapshot Schedules

snapshot_schedules

Methods

Add New Schedules To The Policy ->
post/v1/lifecycle_policy/{project_id}/{region_id}/{lifecycle_policy_id}/add_schedules

Add new schedules to the policy

Add Volumes To The Policy If Not Present ->
put/v1/lifecycle_policy/{project_id}/{region_id}/{lifecycle_policy_id}/add_volumes_to_policy

Add volumes to the policy if not present

Create A Policy ->
post/v1/lifecycle_policy/{project_id}/{region_id}

Create a policy

Delete The Policy ->
delete/v1/lifecycle_policy/{project_id}/{region_id}/{lifecycle_policy_id}

Delete the policy

Parameters
project_id: number

Project ID

region_id: number

Region ID

lifecycle_policy_id: number

Lifecycle policy ID.

Request example
Get Maximum Usage Quota Of Resources If All Snapshots Create By The Policy -> { max_cost, max_volume_snapshot_count_usage, max_volume_snapshot_sequence_length, 1 more... }
post/v1/lifecycle_policy/{project_id}/{region_id}/estimate_max_policy_usage

Get maximum usage quota of resources if all snapshots create by the policy

Get All Policies -> { count, results }
get/v1/lifecycle_policy/{project_id}/{region_id}

Get all policies

Remove Schedules From The Policy ->
post/v1/lifecycle_policy/{project_id}/{region_id}/{lifecycle_policy_id}/remove_schedules

Remove schedules from the policy

Remove Volumes From The Policy ->
put/v1/lifecycle_policy/{project_id}/{region_id}/{lifecycle_policy_id}/remove_volumes_from_policy

Remove volumes from the policy

Get The Policy By ID ->
get/v1/lifecycle_policy/{project_id}/{region_id}/{lifecycle_policy_id}

Get the policy by id

Update The Policy ->
patch/v1/lifecycle_policy/{project_id}/{region_id}/{lifecycle_policy_id}

Update the policy

Domain types

LifecyclePolicy = { id, action, name, 6 more... }
VolumeIDs = { volume_ids }

snapshot_schedules.schedules

Methods

Get A Schedule By ID ->
get/v1/schedule/{project_id}/{region_id}/{schedule_id}

Get a schedule by id

Patch The Schedule ->
patch/v1/schedule/{project_id}/{region_id}/{schedule_id}

Patch the schedule

Domain types

Schedule = { id, max_quantity, owner, 12 more... } | { id, max_quantity, owner, 9 more... }