Skip to content

Commit eed411a

Browse files
authored
remove vip restrictions (#2493)
* remove vip restrictions * remove vip restrictions
1 parent f36f3fb commit eed411a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.changelog/2493.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_clb_instance: Remove `vip` restrictions
3+
```

tencentcloud/services/clb/resource_tc_clb_instance.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func ResourceTencentCloudClbInstance() *schema.Resource {
173173
Optional: true,
174174
ForceNew: true,
175175
Computed: true,
176-
Description: "Applies for CLB instances for a specified VIP, only applicable to open CLB.",
176+
Description: "Specifies the VIP for the application of a CLB instance. This parameter is optional. If you do not specify this parameter, the system automatically assigns a value for the parameter. IPv4 and IPv6 CLB instances support this parameter, but IPv6 NAT64 CLB instances do not.",
177177
},
178178
"load_balancer_pass_to_target": {
179179
Type: schema.TypeBool,
@@ -282,9 +282,6 @@ func resourceTencentCloudClbInstanceCreate(d *schema.ResourceData, meta interfac
282282

283283
//vip
284284
if v, ok := d.GetOk("vip"); ok {
285-
if networkType == CLB_NETWORK_TYPE_INTERNAL {
286-
return fmt.Errorf("[CHECK][CLB instance][Create] check: INTERNAL network_type do not support vip setting")
287-
}
288285
request.Vip = helper.String(v.(string))
289286
}
290287

website/docs/r/clb_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ The following arguments are supported:
284284
* `target_region_info_region` - (Optional, String) Region information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.
285285
* `target_region_info_vpc_id` - (Optional, String) Vpc information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.
286286
* `vip_isp` - (Optional, String, ForceNew) Network operator, only applicable to open CLB. Valid values are `CMCC`(China Mobile), `CTCC`(Telecom), `CUCC`(China Unicom) and `BGP`. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
287-
* `vip` - (Optional, String, ForceNew) Applies for CLB instances for a specified VIP, only applicable to open CLB.
287+
* `vip` - (Optional, String, ForceNew) Specifies the VIP for the application of a CLB instance. This parameter is optional. If you do not specify this parameter, the system automatically assigns a value for the parameter. IPv4 and IPv6 CLB instances support this parameter, but IPv6 NAT64 CLB instances do not.
288288
* `vpc_id` - (Optional, String, ForceNew) VPC ID of the CLB.
289289
* `zone_id` - (Optional, String) Available zone id, only applicable to open CLB.
290290

0 commit comments

Comments
 (0)