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
Description: "Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.",
181
181
},
182
+
"bandwidth_package_id": {
183
+
Type: schema.TypeString,
184
+
Optional: true,
185
+
Description: "Bandwidth package id. If set, the `internet_charge_type` must be `BANDWIDTH_PACKAGE`.",
186
+
},
182
187
"internet_bandwidth_max_out": {
183
188
Type: schema.TypeInt,
184
189
Optional: true,
@@ -308,6 +313,9 @@ func resourceTencentCloudClbInstanceCreate(d *schema.ResourceData, meta interfac
308
313
309
314
v, ok:=d.GetOk("internet_charge_type")
310
315
bv, bok:=d.GetOk("internet_bandwidth_max_out")
316
+
pv, pok:=d.GetOk("bandwidth_package_id")
317
+
318
+
chargeType:=v.(string)
311
319
312
320
//internet charge type
313
321
ifok||bok {
@@ -316,11 +324,19 @@ func resourceTencentCloudClbInstanceCreate(d *schema.ResourceData, meta interfac
Copy file name to clipboardExpand all lines: website/docs/r/clb_instance.html.markdown
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,7 @@ The following arguments are supported:
108
108
*`clb_name` - (Required) Name of the CLB. The name can only contain Chinese characters, English letters, numbers, underscore and hyphen '-'.
109
109
*`network_type` - (Required, ForceNew) Type of CLB instance. Valid values: `OPEN` and `INTERNAL`.
110
110
*`address_ip_version` - (Optional) IP version, only applicable to open CLB. Valid values are `ipv4`, `ipv6` and `IPv6FullChain`.
111
+
*`bandwidth_package_id` - (Optional) Bandwidth package id. If set, the `internet_charge_type` must be `BANDWIDTH_PACKAGE`.
111
112
*`internet_bandwidth_max_out` - (Optional) Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
112
113
*`internet_charge_type` - (Optional) Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.
113
114
*`load_balancer_pass_to_target` - (Optional) Whether the target allow flow come from clb. If value is true, only check security group of clb, or check both clb and backend instance security group.
0 commit comments