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

VBS

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

基于VBS v2 API的SDK接口如下,调用方式请参考示例代码。

Interface

Method

API

AsyncVolumeBackupService

AsyncVolumeBackupJob create(AsyncVolumeBackupCreate cvbc)

POST /v2/{tenant_id}/cloudbackups

VolumeBackup create(VolumeBackupCreate vbc)

Post /v2/{project_id}/backups

AsyncVolumeBackupJob restore(String volumeBackupId, String volumeId)

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

List<? extends VolumeBackup> list(boolean detail, Map<String, String> filteringParams)

GET /v2/{tenant_id}/backups

List<? extends VolumeBackup> list(boolean detail, Map<String, String> filteringParams)

GET /v2/{tenant_id}/backups/detail

VolumeBackup get(String backupId)

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

ActionResponse delete(String backupId)

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

AsyncVolumeBackupJob get(String jobId)

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

BlockVolumeBackupPolicyService

VolumeBackupPolicy create(VolumeBackupPolicy policy)

POST /v2/{tenant_id}/backuppolicy

List<? extends VolumeBackupPolicy> list()

GET /v2/{tenant_id}/backuppolicy

VolumeBackupPolicy update(VolumeBackupPolicy updated)

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

ActionResponse delete(String backupPolicyId)

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

VolumeBackupPolicyResourceActionResult linkResources(String backupPolicyId, List<String> resourceIds)

POST /v2/{tenant_id}/backuppolicyresources

VolumeBackupPolicyResourceActionResult unlinkResources(String backupPolicyId, List<String> resourceIds)

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

ActionResponse execute(String backupPolicyId)

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

List<? extends VolumeBackupPolicyBackupTask> tasks(String policyId, BakcupTaskListOptions options)

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

VolumeBackupPolicy enable(String backupPolicyId)

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

VolumeBackupPolicy disable(String backupPolicyId)

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

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区