Updated on 2025-10-17 GMT+08:00

Modifying a Backup

Function

This API is used to modify a backup based on a given backup ID.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

URI

PUT /v3/{project_id}/backups/{backup_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

backup_id

Yes

String

Backup ID. Default value: N/A

For details about how to obtain the backup ID, see Obtaining a Backup ID.

project_id

Yes

String

Project ID. Default value: N/A

For details about how to obtain the project ID, see Obtaining a Project ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

backup

No

BackupUpdate object

Request body for modifying the backup name

Table 3 BackupUpdate

Parameter

Mandatory

Type

Description

name

No

String

Backup name. The value can contain a maximum of 64 characters, including digits, uppercase letters, lowercase letters, underscores (_), and hyphens (-). Default value: N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

backup

BackupResp object

Backup

Table 5 BackupResp

Parameter

Type

Description

checkpoint_id

String

Checkpoint ID.

For details, see Creating a Checkpoint and Querying All Backups.

created_at

String

Creation time, for example, 2020-02-05T10:38:34.209782.

description

String

Backup description. Range: N/A

expired_at

String

Expiration time, for example, 2020-02-05T10:38:34.209782.

extend_info

BackupExtendInfo object

Extended information. Range: N/A

id

String

Backup ID. Range: N/A

image_type

String

Backup type. The value can be backup (common backup) or replication (cross-region replication backup).

name

String

Backup name. The value can contain a maximum of 64 characters, including digits, uppercase letters, lowercase letters, underscores (_), and hyphens (-).

parent_id

String

Parent backup ID. Range: N/A

project_id

String

Project ID. Range: N/A

protected_at

String

Backup time. Range: N/A

resource_az

String

Resource AZ. Range: N/A

resource_id

String

Resource ID, in UUID format. You can query the resource status based on the type of the resource to be backed up.

resource_name

String

Name of the resource to be backed up. The value can contain a maximum of 255 characters.

resource_size

Integer

Resource size, in GB. Range: N/A

resource_type

String

Type of the resource to be backed up: OS::Nova::Server: ECS; OS::Cinder::Volume: EVS disks; OS::Ironic::BareMetalServer: Bare Metal Servers; OS::Sfs::Turbo: SFS Turbo file systems; OS::Workspace::DesktopV2: Workspaces

status

String

Backup status. The value can be:

  • available: The backup is available.

  • protecting: The backup is being protected.

  • deleting: The backup is being deleted.

  • restoring: The restoration in progress.

  • error: The backup is abnormal.

  • waiting_protect: The backup is waiting to be protected.

  • waiting_delete: The backup is waiting to be deleted.

  • waiting_restore: The backup is waiting to be restored.

updated_at

String

Update time, for example, 2020-02-05T10:38:34.209782.

vault_id

String

Vault ID. Range: N/A

replication_records

Array of ReplicationRecordGet objects

Replication record. Range: N/A

enterprise_project_id

String

Enterprise project ID.

For details, see Obtaining an Enterprise Project ID.

provider_id

String

Backup provider ID, which is used to distinguish backup objects. The value can be as follows:

0daac4c5-6707-4851-97ba-169e36266b66 indicates that backup objects are cloud servers; d1603440-187d-4516-af25-121250c7cc97 indicates that backup objects are cloud disks; 3f3c3220-245c-4805-b811-758870015881 indicates that backup objects are SFS Turbo file systems; a13639de-00be-4e94-af30-26912d75e4a2 indicates that backup objects are hybrid cloud VMware backups.

children

Array of BackupResp objects

Backup list

incremental

Boolean

Whether it is an incremental backup.

  • true: incremental backup.

  • false: full backup.

version

Integer

Replica snapshot type. Range: N/A

Table 6 BackupExtendInfo

Parameter

Type

Description

auto_trigger

Boolean

Whether the backup is automatically generated.

  • Default value: N/A

  • true: The backup is automatically generated.

  • false: The backup is not automatically generated.

The value can be:

bootable

Boolean

Whether the backup is a system disk backup. Default value: N/A

The value can be:

  • true: The backup is a system disk backup.

  • false: The backup is not a system disk backup.

snapshot_id

String

Snapshot ID of the disk backup

support_lld

Boolean

Whether to allow lazy loading for fast restoration. Default value: N/A

The value can be:

  • true: Allow lazy loading for fast restoration.

  • false: Do not allow lazy loading for fast restoration.

supported_restore_mode

String

Whether the backup can be directly used for restoration. Default value: N/A

The value can be:

  • na: The backup cannot be directly used for restoration. It can only be used to create resources.

  • backup: Cloud disk backups can be used for restoration.

  • snapshot: Backups can be used to create full-server images.

os_images_data

Array of ImageData objects

ID list of images created using backups

contain_system_disk

Boolean

Whether the VM backup contains system disk data. Default value: N/A

The value can be:

  • true: The VM backup contains system disk data.

  • false: The VM backup does not contain system disk data.

encrypted

Boolean

Whether the backup is encrypted. Default value: N/A

  • true: The backup is encrypted.

  • false: The backup is not encrypted.

system_disk

Boolean

Whether it is a system disk. Default value: N/A

The value can be:

  • true: system disk

  • false: non-system disk

is_multi_az

Boolean

Specifies whether the vault has the multi-AZ attribute, that is, whether the underlying backup is a multi-AZ backup. The default value is false.

The options are as follows:

  • true: The vault has the multi-AZ attribute.

  • false: The vault does not have the multi-AZ attribute.

Table 7 ImageData

Parameter

Type

Description

image_id

String

Image ID

Table 8 ReplicationRecordGet

Parameter

Type

Description

created_at

String

Start time of the replication

destination_backup_id

String

ID of the backup in the destination region. Default value: N/A

For details about how to obtain the backup ID, see Obtaining a Backup ID, where project_id must be set to the project ID of the destination region.

destination_checkpoint_id

String

Record ID of the destination backup used for replication

destination_project_id

String

Project ID of the destination region. Default value: N/A

For details about how to obtain the project ID, see Obtaining a Project ID, where project_id must be set to the project ID of the destination region.

destination_region

String

Target region. Default value: N/A

For details about how to obtain the region ID, see Querying Regions and Endpoints.

destination_vault_id

String

ID of the destination vault. Default value: N/A

For details, see Obtaining a Vault ID, where project_id must be set to the project ID of the destination region.

extra_info

ReplicationRecordsExtraInfo object

Additional information of the replication

id

String

Replication record ID

source_backup_id

String

ID of the project in the source region. Default value: N/A

For details about how to obtain the project ID, see Obtaining a Project ID, where project_id must be set to the project ID of the source region.

source_checkpoint_id

String

ID of the source backup record used for replication

source_project_id

String

ID of the project in the source region. Default value: N/A

For details about how to obtain the project ID, see Obtaining a Project ID.

source_region

String

Source region. Default value: N/A

For details about how to obtain the region ID, see Querying Regions and Endpoints.

status

String

Replication status

vault_id

String

ID of the vault where the backup resides

Table 9 ReplicationRecordsExtraInfo

Parameter

Type

Description

progress

Integer

Replication progress

fail_code

String

Error code. This field is empty if the operation is successful.

fail_reason

String

Error cause

auto_trigger

Boolean

Whether the task is automatically triggered. Default value: false.

  • true: The task is automatically triggered.

  • false: The task is not automatically triggered.

destination_vault_id

String

Destination vault ID.

Example Requests

Changing the name of a backup

PUT https://{endpoint}/v3/4229d7a45436489f8c3dc2b1d35d4987/backup/6df2b54c-dd62-4059-a07c-1b8f24f2725d

{
  "backup" : {
    "name" : "backup-name02"
  }
}

Example Responses

Status code: 200

OK

{
  "backup" : {
    "provider_id" : "0daac4c5-6707-4851-97ba-169e36266b66",
    "checkpoint_id" : "8b0851a8-adf3-4f4c-a914-dead08bf9664",
    "enterprise_project_id" : 0,
    "vault_id" : "3b5816b5-f29c-4172-9d9a-76c719a659ce",
    "id" : "6df2b54c-dd62-4059-a07c-1b8f24f2725d",
    "resource_az" : "az1.dc1",
    "image_type" : "backup",
    "resource_id" : "94eba8b2-acc9-4d82-badc-127144cc5526",
    "resource_size" : 40,
    "children" : [ {
      "provider_id" : "0daac4c5-6707-4851-97ba-169e36266b66",
      "checkpoint_id" : "8b0851a8-adf3-4f4c-a914-dead08bf9664",
      "vault_id" : "3b5816b5-f29c-4172-9d9a-76c719a659ce",
      "id" : "5d822633-2bbf-4af8-a16e-5ab1c7705235",
      "image_type" : "backup",
      "resource_id" : "eccbcfdd-f843-4bbb-b2c0-a5ce861f9376",
      "resource_size" : 40,
      "children" : [ ],
      "parent_id" : "6df2b54c-dd62-4059-a07c-1b8f24f2725d",
      "extend_info" : {
        "auto_trigger" : true,
        "snapshot_id" : "5230a977-1a94-4092-8edd-519303a44cda",
        "bootable" : true,
        "encrypted" : true
      },
      "project_id" : "4229d7a45436489f8c3dc2b1d35d4987",
      "status" : "available",
      "resource_name" : "ecs-1f0f-0002",
      "replication_records" : [ ],
      "name" : "autobk_a843_ecs-1f0f-0002",
      "created_at" : "2019-05-10T07:59:59.451+00:00",
      "resource_type" : "OS::Cinder::Volume"
    } ],
    "extend_info" : {
      "auto_trigger" : true,
      "supported_restore_mode" : "backup",
      "contain_system_disk" : true,
      "support_lld" : true
    },
    "project_id" : "4229d7a45436489f8c3dc2b1d35d4987",
    "status" : "available",
    "resource_name" : "ecs-1f0f-0002",
    "description" : "backup_description",
    "replication_records" : [ ],
    "name" : "backup-name02",
    "created_at" : "2019-05-10T07:59:12.085+00:00",
    "resource_type" : "OS::Nova::Server"
  }
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.