subcategory | layout | page_title | sidebar_current | description |
---|---|---|---|---|
Cloud Block Storage(CBS) |
tencentcloud |
TencentCloud: tencentcloud_cbs_snapshot |
docs-tencentcloud-resource-cbs_snapshot |
Provides a resource to create a CBS snapshot. |
Provides a resource to create a CBS snapshot.
resource "tencentcloud_cbs_snapshot" "example" {
snapshot_name = "tf-example"
storage_id = "disk-alc1r5sw"
tags = {
createBy = "Terraform"
}
}
The following arguments are supported:
snapshot_name
- (Required, String) Name of the snapshot.storage_id
- (Required, String, ForceNew) ID of the the CBS which this snapshot created from.tags
- (Optional, Map) The available tags within this CBS Snapshot.
In addition to all arguments above, the following attributes are exported:
id
- ID of the resource.create_time
- Creation time of snapshot.disk_type
- Types of CBS which this snapshot created from.percent
- Snapshot creation progress percentage. If the snapshot has created successfully, the constant value is 100.snapshot_status
- Status of the snapshot.storage_size
- Volume of storage which this snapshot created from.
CBS snapshot can be imported using the id, e.g.
$ terraform import tencentcloud_cbs_snapshot.example snap-3sa3f39b