Queries the information of one or more backup vaults that meet the specified conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:DescribeVaults |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VaultId |
string |
No |
The ID of the backup vault. |
v-********************* |
| VaultRegionId |
string |
No |
The ID of the region to which the backup vault belongs. |
cn-shanghai |
| Status |
string |
No |
The status of the backup vault. Valid values:
|
CREATED |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Minimum value: 1. Maximum value: 99. Default value: 10. |
10 |
| VaultType |
string |
No |
The type of the backup vault. Valid values:
|
STANDARD |
| Tag |
array<object> |
No |
The tag information. A maximum of 20 tags are supported. |
6a745bceffb042959b3b5206d6f12ad1 |
|
object |
No |
The tag information. |
||
| Key |
string |
No |
The key of the tag. |
key1 |
| Value |
string |
No |
The value of the tag. |
value1 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-********************* |
| VaultName |
string |
No |
The name of the backup vault. The name must be 1 to 64 characters in length. |
vaultname |
| VaultOwnerId |
integer |
No |
The ID of the account to which the backup vault belongs. |
144******732 |
| Replication |
boolean |
No |
Specifies whether to query replication target vaults. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return code. 200 indicates success. |
200 |
| Message |
string |
The returned message. "successful" is returned for a successful request, and the corresponding error message is returned if an error occurs. |
successful |
| PageNumber |
integer |
The page number. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries per page. Minimum value: 1. Maximum value: 99. Default value: 10. |
10 |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| TotalCount |
integer |
The total number of backup vaults returned. |
8 |
| Vaults |
object |
{'Vault': []} |
|
| Vault |
array<object> |
The list of backup vaults. |
{'Vault': []} |
|
array<object> |
The list of backup vaults. |
||
| ArchiveBytesDone |
integer |
The amount of backup data in the archive tier. Unit: bytes. |
1024000 |
| ArchiveStorageSize |
integer |
The billable capacity of the archive tier. Unit: bytes. |
1024000 |
| BackupPlanStatistics |
object |
The statistics of backup plans in the backup vault. |
|
| Archive |
integer |
The number of archive plans. |
1 |
| CommonFileSystem |
integer |
The number of Cloud Paralleled File System (CPFS) backup plans. |
1 |
| CommonNas |
integer |
The number of general-purpose NAS backup plans. |
1 |
| Cpfs |
integer |
The CPFS backup. |
3 |
| Csg |
integer |
The number of Cloud Storage Gateway backup plans. |
1 |
| EcsFile |
integer |
The number of ECS File Backup Standard Edition backup plans. |
1 |
| EcsHana |
integer |
The number of SAP HANA backup plans. |
1 |
| Isilon |
integer |
The number of Isilon backup plans. |
1 |
| LocalFile |
integer |
The number of backup plans for the local service type. |
1 |
| LocalVm |
integer |
The number of local virtual machine backup plans. |
1 |
| MySql |
integer |
The number of MySQL backup plans. |
1 |
| Nas |
integer |
The number of NAS backup plans. |
1 |
| Oracle |
integer |
The number of Oracle backup plans. |
1 |
| Oss |
integer |
The number of OSS backup plans. |
1 |
| Ots |
integer |
The number of Tablestore backup plans. |
1 |
| SqlServer |
integer |
The number of SQL Server backup plans. |
1 |
| BucketName |
string |
The name of the OSS bucket used for the backup vault trial. |
hbr-0005i51******t58 |
| BytesDone |
integer |
The amount of backup data. Unit: bytes. |
20 |
| ChargeType |
string |
The billing method of the backup vault. |
FREE |
| ChargedStorageSize |
integer |
The billable capacity of the archive vault. Unit: bytes. |
1024000 |
| CompressionAlgorithm |
string |
The encryption algorithm used to compress the backup vault. Valid values:
|
ZSTD |
| CreatedTime |
integer |
The time when the backup vault was created. The value is a UNIX timestamp in seconds. |
1554347313 |
| Dedup |
boolean |
Indicates whether the data deduplication feature is enabled. |
true |
| Description |
string |
The description of the vault. |
vault description |
| EncryptType |
string |
The encryption type of the backup vault. Valid values:
|
HBR_PRIVATE |
| IndexAvailable |
boolean |
Indicates whether the index is available and not being updated. |
true |
| IndexLevel |
string |
The index level. Valid values:
|
OFF |
| IndexUpdateTime |
integer |
The time when the index was updated. |
1639645628 |
| KmsKeyId |
string |
The ID or alias of the custom key in Key Management Service (KMS). This parameter is required only when EncryptType is set to KMS. |
alias/acs/acm |
| LatestReplicationTime |
integer |
The time of the last geo-redundancy backup synchronization. The value is a UNIX timestamp in seconds. |
1554347313 |
| RedundancyType |
string |
The data redundancy type of the backup vault. Valid values:
|
LRS |
| Replication |
boolean |
Indicates whether the backup vault is a geo-redundancy backup vault. Valid values:
|
false |
| ReplicationProgress |
object |
The replication progress of the backup vault. |
|
| HistoricalReplicationProgress |
integer |
The data replication progress of historical data in the backup vault. Valid values: 0 to 100. |
100 |
| NewReplicationProgress |
integer |
The latest replication time of incremental data in the backup vault. |
1579413159 |
| ReplicationSourceOwnerId |
integer |
The ID of the source account for replication. |
123***7890 |
| ReplicationSourceRegionId |
string |
The region ID of the source backup vault for the geo-redundancy backup vault. This parameter is valid only for geo-redundancy backup vaults. |
cn-shanghai |
| ReplicationSourceVault |
boolean |
Indicates whether the backup vault is the source backup vault of a geo-redundancy backup vault. Valid values:
|
false |
| ReplicationSourceVaultId |
string |
The ID of the source backup vault for the geo-redundancy backup vault. |
v-********************* |
| ReplicationStatus |
string |
The replication status of the replication target vault. |
RUNNING |
| ReplicationTargetOwnerId |
integer |
The ID of the account to which the replication target vault belongs. |
123***7890 |
| ReplicationTargetRegionId |
string |
The destination region of the geo-redundancy backup vault. |
cn-shanghai |
| ReplicationTargetVaultId |
string |
The ID of the replication target vault. |
v-123***7890 |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-********************* |
| Retention |
integer |
The retention period of the backup vault. Unit: days. |
2 |
| RsTargetAccountIds |
object |
||
| RsTargetAccountId |
array |
The target account for resource sharing. |
|
|
integer |
The target account for resource sharing. |
123***7890 |
|
| SearchEnabled |
boolean |
Indicates whether the backup search feature is enabled. |
true |
| SnapshotCount |
integer |
The number of snapshots in the vault. |
0 |
| SourceTypes |
object |
||
| SourceType |
array |
The type of the data source backed up in the backup vault. |
|
|
string |
The type of the backup data source. |
ECS_FILE |
|
| Status |
string |
The status of the backup vault. Valid values:
|
CREATED |
| StorageSize |
integer |
The storage usage of the backup vault. Unit: bytes. |
10 |
| Tags |
object |
||
| Tag |
array<object> |
The tag information of the backup vault. |
|
|
object |
The tag information of the backup vault. |
||
| Key |
string |
The tag key of the vault. Valid values of N: 1 to 20.
|
aaa |
| Value |
string |
The tag value of the vault. Valid values of N: 1 to 20.
|
a1 |
| TrialInfo |
object |
The free trial attributes. |
|
| KeepAfterTrialExpiration |
boolean |
Indicates whether the billing method is changed to pay-as-you-go after the free trial expires. |
true |
| TrialExpireTime |
integer |
The expiration time of the free trial. |
1584597600 |
| TrialStartTime |
integer |
The start time of the free trial. |
1579413159 |
| TrialVaultReleaseTime |
integer |
The release time of the free trial vault. |
1594965600 |
| UpdatedTime |
integer |
The time when the backup vault was updated. The value is a UNIX timestamp in seconds. |
1554347313 |
| VaultId |
string |
The ID of the backup vault. |
v-********************* |
| VaultName |
string |
The name of the backup vault. |
vaultname |
| VaultOwnerId |
integer |
The ID of the account to which the vault belongs. |
123***7890 |
| VaultRegionId |
string |
The ID of the region to which the backup vault belongs. |
cn-shanghai |
| VaultStatusMessage |
string |
(Valid only for geo-redundancy backup vaults) The error status message of the vault. Valid values:
|
SOURCE_VAULT_ALREADY_HAS_REPLICATION |
| VaultStorageClass |
string |
The storage class of the backup vault. The only valid value is STANDARD, which indicates Standard storage. |
STANDARD |
| VaultType |
string |
The type of the backup vault. The only valid value is STANDARD, which indicates a standard vault. |
STANDARD |
| WormEnabled |
boolean |
Indicates whether the backup lock feature is enabled. |
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"PageNumber": 1,
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Success": true,
"TotalCount": 8,
"Vaults": {
"Vault": [
{
"ArchiveBytesDone": 1024000,
"ArchiveStorageSize": 1024000,
"BackupPlanStatistics": {
"Archive": 1,
"CommonFileSystem": 1,
"CommonNas": 1,
"Cpfs": 3,
"Csg": 1,
"EcsFile": 1,
"EcsHana": 1,
"Isilon": 1,
"LocalFile": 1,
"LocalVm": 1,
"MySql": 1,
"Nas": 1,
"Oracle": 1,
"Oss": 1,
"Ots": 1,
"SqlServer": 1
},
"BucketName": "hbr-0005i51******t58",
"BytesDone": 20,
"ChargeType": "FREE",
"ChargedStorageSize": 1024000,
"CompressionAlgorithm": "ZSTD",
"CreatedTime": 1554347313,
"Dedup": true,
"Description": "vault description",
"EncryptType": "HBR_PRIVATE",
"IndexAvailable": true,
"IndexLevel": "OFF",
"IndexUpdateTime": 1639645628,
"KmsKeyId": "alias/acs/acm",
"LatestReplicationTime": 1554347313,
"RedundancyType": "LRS",
"Replication": false,
"ReplicationProgress": {
"HistoricalReplicationProgress": 100,
"NewReplicationProgress": 1579413159
},
"ReplicationSourceOwnerId": 0,
"ReplicationSourceRegionId": "cn-shanghai",
"ReplicationSourceVault": false,
"ReplicationSourceVaultId": "v-*********************",
"ReplicationStatus": "RUNNING",
"ReplicationTargetOwnerId": 0,
"ReplicationTargetRegionId": "cn-shanghai",
"ReplicationTargetVaultId": "v-123***7890",
"ResourceGroupId": "rg-*********************",
"Retention": 2,
"RsTargetAccountIds": {
"RsTargetAccountId": [
0
]
},
"SearchEnabled": true,
"SnapshotCount": 0,
"SourceTypes": {
"SourceType": [
"ECS_FILE"
]
},
"Status": "CREATED",
"StorageSize": 10,
"Tags": {
"Tag": [
{
"Key": "aaa",
"Value": "a1"
}
]
},
"TrialInfo": {
"KeepAfterTrialExpiration": true,
"TrialExpireTime": 1584597600,
"TrialStartTime": 1579413159,
"TrialVaultReleaseTime": 1594965600
},
"UpdatedTime": 1554347313,
"VaultId": "v-*********************",
"VaultName": "vaultname",
"VaultOwnerId": 0,
"VaultRegionId": "cn-shanghai",
"VaultStatusMessage": "SOURCE_VAULT_ALREADY_HAS_REPLICATION",
"VaultStorageClass": "STANDARD",
"VaultType": "STANDARD",
"WormEnabled": true
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.