All Products
Search
Document Center

Cloud Backup:DescribeVaults

Last Updated:Oct 31, 2024

Queries the information about one or more backup vaults that meet the specified conditions.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
hbr:DescribeVaultsget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StatusstringNo

The status of the backup vault. Valid values:

  • UNKNOWN: The backup vault is in an unknown state.
  • INITIALIZING: The backup vault is being initialized.
  • CREATED: The backup vault is created.
  • ERROR: An error occurs on the backup vault.
CREATED
PageNumberintegerNo

The page number. Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Valid values: 1 to 99. Default value: 10.

10

Response parameters

ParameterTypeDescriptionExample
object
Vaultsarray<object>

The backup vaults.

{'Vault': []}
Vaultobject

The backup vaults.

Statusstring

The status of the backup vault. Valid values:

  • UNKNOWN: The backup vault is in an unknown state.
  • INITIALIZING: The backup vault is being initialized.
  • CREATED: The backup vault is created.
  • ERROR: An error occurs on the backup vault.
CREATED
VaultIdstring

The ID of the backup vault.

v-*********************
ChargeTypestring

The billing method of the backup vault.

FREE
VaultTypestring

The type of the backup vault. Valid value: STANDARD, which indicates a standard backup vault.

STANDARD
Dedupboolean

Indicates whether the deduplication feature is enabled.

true
ReplicationSourceVaultIdstring

The ID of the source vault that corresponds to the remote backup vault.

v-*********************
IndexUpdateTimelong

The time when the index was updated.

1639645628
Descriptionstring

The description of the backup vault.

vault description
VaultStorageClassstring

The storage class of the backup vault. Valid value: STANDARD, which indicates standard storage.

STANDARD
Retentionlong

The retention period of the backup vault. Unit: days.

2
CreatedTimelong

The time when the backup vault was created. The value is a UNIX timestamp. Unit: seconds.

1554347313
IndexLevelstring

The index level.

  • OFF: No indexes are created.
  • META: Metadata indexes are created.
  • ALL: Full-text indexes are created.
OFF
VaultNamestring

The name of the backup vault.

vaultname
StorageSizelong

The usage of the backup vault. Unit: bytes.

10
LatestReplicationTimelong

The time when the last remote backup was synchronized. The value is a UNIX timestamp. Unit: seconds.

1554347313
VaultStatusMessagestring

The status message that is returned when the backup vault is in the ERROR state. This parameter is valid only for remote backup vaults. Valid values:

  • UNKNOWN_ERROR: An unknown error occurs.
  • SOURCE_VAULT_ALREADY_HAS_REPLICATION: A mirror vault is configured for the source vault.
SOURCE_VAULT_ALREADY_HAS_REPLICATION
Replicationboolean

Indicates whether the backup vault is a remote backup vault. Valid values:

  • true: The backup vault is a remote backup vault.
  • false: The backup vault is a local backup vault.
false
ReplicationSourceRegionIdstring

The ID of the region in which the source vault resides. This parameter is valid only for remote backup vaults.

v-*********************
VaultRegionIdstring

The ID of the region in which the backup vault resides.

cn-shanghai
UpdatedTimelong

The time when the backup vault was updated. The value is a UNIX timestamp. Unit: seconds.

1554347313
ResourceGroupIdstring

The ID of the resource group.

rg-*********************
BucketNamestring

The name of the OSS bucket used by the backup vault.

hbr-0005i51******t58
SearchEnabledboolean

Indicates whether the backup search feature is enabled.

true
IndexAvailableboolean

Indicates whether indexes are available. Indexes are available when they are not being updated.

true
BytesDonelong

The amount of data that is backed up. Unit: bytes.

20
Tagsarray<object>

The tags of the backup vault.

Tagobject
Keystring

The tag key of the backup vault. Valid values of N: 1 to 20.

  • The tag key cannot start with aliyun or acs:.
  • The tag key cannot contain http:// or https://.
  • The tag key cannot be an empty string.
aaa
Valuestring

The tag value of the backup vault. Valid values of N: 1 to 20.

  • The tag value cannot start with aliyun or acs:.
  • The tag value cannot contain http:// or https://.
  • The tag value cannot be an empty string.
a1
SourceTypesarray

The data source types of the backup vault.

SourceTypestring

The type of the data source.

ECS_FILE
ReplicationProgressobject

The progress of data synchronization from the backup vault to the mirror vault.

HistoricalReplicationProgressinteger

The progress of historical data synchronization from the backup vault to the mirror vault. Valid values: 0 to 100.

100
NewReplicationProgresslong

The latest synchronization time of incremental data in the mirror vault.

1579413159
BackupPlanStatisticsobject

The statistics of backup plans that use the backup vault.

Oracleinteger

The number of backup plans for Oracle databases.

1
LocalFileinteger

The number of backup plans for on-premises servers.

1
Nasinteger

The number of backup plans for NAS file systems.

1
CommonNasinteger

The number of backup plans for General-purpose NAS file systems.

1
Isiloninteger

The number of backup plans for Isilon storage systems.

1
Ossinteger

The number of backup plans for OSS buckets.

1
SqlServerinteger

The number of backup plans for SQL Server databases.

1
Csginteger

The number of backup plans for Cloud Storage Gateway (CSG) gateways.

1
EcsFileinteger

The number of backup plans for ECS files.

1
MySqlinteger

The number of backup plans for MySQL databases.

1
EcsHanainteger

The number of backup plans for SAP HANA instances.

1
LocalVminteger

The number of backup plans for on-premises virtual machines (VMs).

1
Otsinteger

The number of backup plans for Tablestore instances.

1
Archiveinteger

The number of archive plans.

1
TrialInfoobject

The free trial information.

TrialStartTimelong

The start time of the free trial.

1579413159
TrialVaultReleaseTimelong

The time when the free-trial backup vault is released.

1594965600
TrialExpireTimelong

The expiration time of the free trial.

1584597600
KeepAfterTrialExpirationboolean

Indicates whether you are billed based on the pay-as-you-go method after the free trial ends.

true
EncryptTypestring

The encryption type of the backup vault. Valid values:

  • NONE: The backup vault is not encrypted.
  • HBR_PRIVATE (default): The backup vault is encrypted by using a key provided by Cloud Backup.
  • KMS: The backup vault is encrypted by using a custom master key (CMK) created in Key Management Service (KMS).
HBR_PRIVATE
WormEnabledboolean

Indicates whether the immutable backup feature is enabled.

true
SnapshotCountlong

The number of snapshots in the backup vault.

0
CompressionAlgorithmstring

The encryption algorithm used to compress the backup vault. Valid values:

  • DISABLED: The backup vault is not compressed.
  • SNAPPY: The backup vault is compressed by using the SNAPPY encryption algorithm.
  • ZSTD: The backup vault is compressed by using Zstandard, a fast lossless compression algorithm.
ZSTD
RedundancyTypestring

The data redundancy type of the backup vault. Valid values:

  • LRS: Locally redundant storage (LRS) is enabled for the backup vault. Cloud Backup stores the copies of each object on multiple devices of different facilities in the same zone. This way, Cloud Backup ensures data durability and availability even if hardware failures occur.
  • ZRS: Zone-redundant storage (ZRS) is enabled for the backup vault. Cloud Backup uses the multi-zone mechanism to distribute data across three zones within the same region. If a zone fails, the data that is stored in the other two zones is still accessible.
LRS
KmsKeyIdstring

The ID or alias of the CMK created in KMS. This parameter is returned only when EncryptType is set to KMS.

alias/acs/acm
ChargedStorageSizelong

The billable storage usage of the archive vault. Unit: bytes.

1024000
ArchiveStorageSizelong

The billable storage usage of the Archive tier. Unit: bytes.

1024000
ReplicationSourceVaultboolean

Indicate whether the backup vault is the source vault that corresponds to the remote backup vault. Valid values:

  • true
  • false
false

Examples

Sample success responses

JSONformat

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 8,
  "Vaults": {
    "Vault": [
      {
        "Status": "CREATED",
        "VaultId": "v-*********************",
        "ChargeType": "FREE",
        "VaultType": "STANDARD",
        "Dedup": true,
        "ReplicationSourceVaultId": "v-*********************",
        "IndexUpdateTime": 1639645628,
        "Description": "vault description",
        "VaultStorageClass": "STANDARD",
        "Retention": 2,
        "CreatedTime": 1554347313,
        "IndexLevel": "OFF",
        "VaultName": "vaultname",
        "StorageSize": 10,
        "LatestReplicationTime": 1554347313,
        "VaultStatusMessage": "SOURCE_VAULT_ALREADY_HAS_REPLICATION",
        "Replication": false,
        "ReplicationSourceRegionId": "v-*********************",
        "VaultRegionId": "cn-shanghai",
        "UpdatedTime": 1554347313,
        "ResourceGroupId": "rg-*********************",
        "BucketName": "hbr-0005i51******t58",
        "SearchEnabled": true,
        "IndexAvailable": true,
        "BytesDone": 20,
        "Tags": {
          "Tag": [
            {
              "Key": "aaa",
              "Value": "a1"
            }
          ]
        },
        "SourceTypes": {
          "SourceType": [
            "ECS_FILE"
          ]
        },
        "ReplicationProgress": {
          "HistoricalReplicationProgress": 100,
          "NewReplicationProgress": 1579413159
        },
        "BackupPlanStatistics": {
          "Oracle": 1,
          "LocalFile": 1,
          "Nas": 1,
          "CommonNas": 1,
          "Isilon": 1,
          "Oss": 1,
          "SqlServer": 1,
          "Csg": 1,
          "EcsFile": 1,
          "MySql": 1,
          "EcsHana": 1,
          "LocalVm": 1,
          "Ots": 1,
          "Archive": 1,
          "CommonFileSystem": 1
        },
        "TrialInfo": {
          "TrialStartTime": 1579413159,
          "TrialVaultReleaseTime": 1594965600,
          "TrialExpireTime": 1584597600,
          "KeepAfterTrialExpiration": true
        },
        "EncryptType": "HBR_PRIVATE",
        "WormEnabled": true,
        "SnapshotCount": 0,
        "CompressionAlgorithm": "ZSTD",
        "RedundancyType": "LRS",
        "KmsKeyId": "alias/acs/acm",
        "ChargedStorageSize": 1024000,
        "ArchiveStorageSize": 1024000,
        "ArchiveBytesDone": 1024000,
        "ReplicationSourceVault": false,
        "ReplicationTargetRegionId": "cn-shanghai"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-10-30The response structure of the API has changedView Change Details
2024-09-10The response structure of the API has changedView Change Details
2024-02-01The response structure of the API has changedView Change Details
2023-12-06The response structure of the API has changedView Change Details
2023-09-06The response structure of the API has changedView Change Details
2023-03-29The response structure of the API has changedView Change Details