You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/d/cbs_storages.html.markdown
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,38 @@ data "tencentcloud_cbs_storages" "storages" {
20
20
}
21
21
```
22
22
23
+
The following snippet shows the new supported query params
24
+
25
+
```hcl
26
+
data "tencentcloud_cbs_storages" "whats_new" {
27
+
charge_type = ["POSTPAID_BY_HOUR", "PREPAID"]
28
+
portable = true
29
+
storage_state = ["ATTACHED"]
30
+
instance_ips = ["10.0.0.2"]
31
+
instance_name = ["my-instance"]
32
+
tag_keys = ["foo"]
33
+
tag_values = ["bar", "baz"]
34
+
}
35
+
```
36
+
23
37
## Argument Reference
24
38
25
39
The following arguments are supported:
26
40
27
41
*`availability_zone` - (Optional) The available zone that the CBS instance locates at.
42
+
*`charge_type` - (Optional) List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
43
+
*`instance_ips` - (Optional) List filter by attached instance public or private IPs.
44
+
*`instance_name` - (Optional) List filter by attached instance name.
45
+
*`portable` - (Optional) Filter by whether the disk is portable (Boolean `true` or `false`).
28
46
*`project_id` - (Optional) ID of the project with which the CBS is associated.
29
47
*`result_output_file` - (Optional) Used to save results.
30
48
*`storage_id` - (Optional) ID of the CBS to be queried.
31
49
*`storage_name` - (Optional) Name of the CBS to be queried.
50
+
*`storage_state` - (Optional) List filter by disk state (`UNATTACHED` | `ATTACHING` | `ATTACHED` | `DETACHING` | `EXPANDING` | `ROLLBACKING` | `TORECYCLE`).
32
51
*`storage_type` - (Optional) Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
33
52
*`storage_usage` - (Optional) Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
53
+
*`tag_keys` - (Optional) List filter by tag keys.
54
+
*`tag_values` - (Optional) List filter by tag values.
0 commit comments