alicloud_hbr_vault
更新时间:
Provides a HBR Backup vault resource.
For information about HBR Backup vault and how to use it, see What is Backup vault.
-> NOTE: Available since v1.129.0.
Example Usage
Basic Usage
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_hbr_vault" "example" {
vault_name = "example_value_${random_integer.default.result}"
}
Argument Reference
The following arguments are supported:
vault_name
- (Required) The name of Vault.vault_type
- (Optional, ForceNew) The type of Vault. Valid values:STANDARD
,OTS_BACKUP
.vault_storage_class
- (Optional, ForceNew) The storage class of Vault. Valid values:STANDARD
.encrypt_type
- (Optional, ForceNew, Available since v1.173.0) Source Encryption Type,It is valid only when vault_type isSTANDARD
orOTS_BACKUP
. Default value:HBR_PRIVATE
. Valid values:HBR_PRIVATE
: HBR is fully hosted, uses the backup service's own encryption method.KMS
: Use Alibaba Cloud Kms to encryption.
kms_key_id
- (Optional, ForceNew, Available since v1.173.0) The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type isKMS
.description
- (Optional) The description of Vault. Defaults to an empty string.redundancy_type
- (Removed since v1.209.1) The redundancy type of the vault. NOTE: Fieldredundancy_type
has been removed from provider version 1.209.1.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Vault.status
- The status of the Vault.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 1 min) Used when create the Vault.update
- (Defaults to 1 min) Used when update the Vault.delete
- (Defaults to 1 min) Used when delete the Vault.
Import
HBR Vault can be imported using the id, e.g.
$ terraform import alicloud_hbr_vault.example <id>
文档内容是否对您有帮助?