Skip to content

Commit b57c152

Browse files
committed
add
1 parent 7510103 commit b57c152

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tencentcloud/services/clb/resource_tc_clb_instance.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ func ResourceTencentCloudClbInstance() *schema.Resource {
6969
ValidateFunc: tccommon.ValidateStringLengthInRange(2, 60),
7070
Description: "In the case of purchasing a `INTERNAL` clb instance, the subnet id must be specified. The VIP of the `INTERNAL` clb instance will be generated from this subnet.",
7171
},
72+
"cluster_id": {
73+
Type: schema.TypeString,
74+
Optional: true,
75+
ForceNew: true,
76+
Description: "Cluster ID.",
77+
},
7278
"address_ip_version": {
7379
Type: schema.TypeString,
7480
Optional: true,
@@ -286,6 +292,10 @@ func resourceTencentCloudClbInstanceCreate(d *schema.ResourceData, meta interfac
286292
request.SubnetId = helper.String(v.(string))
287293
}
288294

295+
if v, ok := d.GetOk("cluster_id"); ok {
296+
request.ClusterIds = []*string{helper.String(v.(string))}
297+
}
298+
289299
//vip_isp
290300
if v, ok := d.GetOk("vip_isp"); ok {
291301
if networkType == CLB_NETWORK_TYPE_INTERNAL {

0 commit comments

Comments
 (0)