• CLI

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

VBS

Interface

Method

API

VolumeBackup

osclient.blockStorage().asyncBackups().create(volumeBackup)

POST /v2/{tenant_id}/cloudbackups

osclient.blockStorage().backups().create(volumeBackup)

Post /v2/{project_id}/backups

osclient.blockStorage().asyncBackups().restore()

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

osclient.blockStorage().backups().list(false, filter)

GET /v2/{tenant_id}/backups

osclient.blockStorage().backups().list(true, filter)

GET /v2/{tenant_id}/backups/detail

osclient.blockStorage().backups().get("volume-backup-id")

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

osclient.blockStorage().backups().delete("volume-backup-id");

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

osclient.blockStorage().jobs().get("job-id")

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

VolumeBackupPolicy

osclient.blockStorage().policies().create(create)

POST /v2/{tenant_id}/backuppolicy

osclient.blockStorage().policies().list()

GET /v2/{tenant_id}/backuppolicy

osclient.blockStorage().policies().update(policy)

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

osclient.blockStorage().policies().delete("policy-id")

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

osclient.blockStorage().policies().linkResources("policy-id", resources);

POST /v2/{tenant_id}/backuppolicyresources

osclient.blockStorage().policies().unlinkResources("policy-id", resources)

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

osclient.blockStorage().policies().execute("policy-id")

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

osclient.blockStorage().policies().tasks("policy-id", options)

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

osclient.blockStorage().policies().enable("policy-id")

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

osclient.blockStorage().policies().disable("policy-id")

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