CreateVault
Creates a backup vault.
Operation description
Each Alibaba Cloud account can create up to 100 backup vaults.
- After a backup vault is created, its status is INITIALIZING and an initialization task is automatically initiated. After the task succeeds, the status of the backup vault changes to CREATED. The vault can be used for backup jobs only when its status is CREATED.
Important Before you call this operation, make sure that you fully understand the billing methods and pricing of Cloud Backup.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:CreateVault |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VaultRegionId |
string |
Yes |
The ID of the region where the backup vault resides. |
cn-shanghai |
| VaultName |
string |
Yes |
The name of the backup vault. The name must be 1 to 64 characters in length. |
backupvaultname |
| Description |
string |
No |
The description of the backup vault. The description must be 0 to 255 characters in length. |
description |
| VaultType |
string |
No |
The type of the backup vault. Valid values:
Valid values:
|
STANDARD |
| VaultStorageClass |
string |
No |
The storage class of the backup vault. Valid values:
|
STANDARD |
| WormEnabled |
boolean |
No |
Specifies whether to enable backup lock. |
false |
| EncryptType |
string |
No |
The source encryption type. This parameter is valid only when VaultType is set to STANDARD or OTS_BACKUP. Valid values:
Valid values:
|
KMS |
| KmsKeyId |
string |
No |
The ID or alias of the custom key in Alibaba Cloud KMS. This parameter is required only when EncryptType is set to KMS. |
alias/yzs-hhht |
| Replication |
boolean |
No |
Specifies whether to create a replication target vault. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| VaultId |
string |
The ID of the backup vault. |
v-********************* |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Code |
string |
The return code. A value of 200 indicates that the request is successful. |
200 |
| Message |
string |
The return message. If the request is successful, "successful" is returned. If the request fails, an error message is returned. |
successful |
| TaskId |
string |
The ID of the backup vault initialization task. You can call the DescribeTask operation to query the task status. |
t-********************* |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"VaultId": "v-*********************",
"Success": true,
"Code": "200",
"Message": "successful",
"TaskId": "t-*********************"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.