• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Mapping Between API and SDK
  5. Python
  6. VBS

VBS

Interface

Method

API

VolumeBackup

create_backup(**backup)

POST /v2/{tenant_id}/cloudbackups

create_native_backup(**backup)

Post /v2/{project_id}/backups

restore_backup(volume_backup_id, volume_id)

POST/v2/{tenant_id}/cloudbackups/{backup_id}/restore

backups(**query))

GET /v2/{tenant_id}/backups

backups(details=True, **query)

GET /v2/{tenant_id}/backups/detail

get_backup(volume_backup_id)

GET /v2/{tenant_id}/backups/{backup_id}

delete_backup("volume_backup_id")

DELETE /v2/{tenant_id}/backups/{backup_id}

get_job("job_id")

GET /v1/{tenant_id}/jobs/{job_id}

VolumeBackupPolicy

create_backup_policy(volume_backup_name, **data)

POST /v2/{tenant_id}/backuppolicy

backup_policies()

GET /v2/{tenant_id}/backuppolicy

update_backup_policy(policy, **updated)

PUT /v2/{tenant_id}/backuppolicy/{policy_id}

delete_backup_policy(policy)

DELETE /v2/{tenant_id}/backuppolicy/{policy_id}

link_resources_to_policy(policy, volumes)

POST /v2/{tenant_id}/backuppolicyresources

unlink_resources_of_policy(policy, volumes)

POST /v2/{tenant_id}/backuppolicyresources/{policy_id}/deleted_resources

execute_policy(policy)

POST /v2/{tenant_id}/backuppolicy/{policy_id}/action

tasks(backup_policy_id, **query)

GET /v2/{tenant_id}/backuppolicy/{policy_id}/backuptasks

enable_policy(policy)

PUT /v2/{tenant_id}/backuppolicy/{policy_id}

disable_policy(policy)

PUT /v2/{tenant_id}/backuppolicy/{policy_id}