文档首页 > > 开发指南> API & SDK 对应关系> Python> VBS

VBS

分享
更新时间: 2019/11/15 GMT+08:00

基于VBS v2 API的SDK接口如下,调用方式举例:conn.volume_backup.create_backup()

Interface

Method

API

VolumeBackup Operations

create_backup(**backup)

POST /v2/{project_id}/cloudbackups

create_native_backup(**backup)

Post /v2/{project_id}/backups

restore_backup(volume_backup_id, volume_id)

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

backups(self, details=False, **query)

GET /v2/{project_id}/backups

get_backup(self, backup)

GET /v2/{project_id}/backups/{backup_id}

delete_backup(self, backup, ignore_missing=True)

DELETE /v2/{project_id}/backups/{backup_id}

get_job(self, job)

GET /v1/{project_id}/jobs/{job_id}

VolumeBackupPolicy Operations

create_backup_policy(volume_backup_name, **data)

POST /v2/{project_id}/backuppolicy

backup_policies()

GET /v2/{project_id}/backuppolicy

update_backup_policy(policy, **updated)

PUT /v2/{project_id}/backuppolicy/{policy_id}

delete_backup_policy(policy)

DELETE /v2/{project_id}/backuppolicy/{policy_id}

link_resources_to_policy(policy, volumes)

POST /v2/{project_id}/backuppolicyresources

unlink_resources_of_policy(policy, volumes)

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

execute_policy(policy)

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

tasks(backup_policy_id, **query)

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

enable_policy(policy)

PUT /v2/{project_id}/backuppolicy/{policy_id}

disable_policy(policy)

PUT /v2/{project_id}/backuppolicy/{policy_id}

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区