Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

Jan 9, 2025
601a0fd · Jan 9, 2025

History

History
53 lines (38 loc) · 1.39 KB

cbs_snapshot.html.markdown

File metadata and controls

53 lines (38 loc) · 1.39 KB
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.

tencentcloud_cbs_snapshot

Provides a resource to create a CBS snapshot.

Example Usage

resource "tencentcloud_cbs_snapshot" "example" {
  snapshot_name = "tf-example"
  storage_id    = "disk-alc1r5sw"
  tags = {
    createBy = "Terraform"
  }
}

Argument Reference

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.

Attributes Reference

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.

Import

CBS snapshot can be imported using the id, e.g.

$ terraform import tencentcloud_cbs_snapshot.example snap-3sa3f39b