Skip to content

Commit f6f5657

Browse files
committed
fix(clb): [123510686] Supported fields: numerical_vpc_id
1 parent 0d20e79 commit f6f5657

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

tencentcloud/services/clb/data_source_tc_clb_instances.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ func DataSourceTencentCloudClbInstances() *schema.Resource {
177177
Computed: true,
178178
Description: "Whether this available zone is local zone, This field maybe null, means cannot get a valid value.",
179179
},
180+
"numerical_vpc_id": {
181+
Type: schema.TypeInt,
182+
Computed: true,
183+
Description: "VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.",
184+
},
180185
},
181186
},
182187
},
@@ -277,6 +282,10 @@ func dataSourceTencentCloudClbInstancesRead(d *schema.ResourceData, meta interfa
277282
mapping["tags"] = tags
278283
}
279284

285+
if clbInstance.NumericalVpcId != nil {
286+
mapping["numerical_vpc_id"] = clbInstance.NumericalVpcId
287+
}
288+
280289
clbList = append(clbList, mapping)
281290
ids = append(ids, *clbInstance.LoadBalancerId)
282291
}

tencentcloud/services/clb/data_source_tc_clb_instances_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func TestAccTencentCloudClbInstancesDataSource_internal(t *testing.T) {
3232
resource.TestCheckResourceAttrSet("data.tencentcloud_clb_instances.clbs", "clb_list.0.status_time"),
3333
resource.TestCheckResourceAttrSet("data.tencentcloud_clb_instances.clbs", "clb_list.0.status"),
3434
resource.TestCheckResourceAttr("data.tencentcloud_clb_instances.clbs", "clb_list.0.tags.test", "tf"),
35+
resource.TestCheckResourceAttrSet("data.tencentcloud_clb_instances.clbs", "clb_list.0.numerical_vpc_id"),
3536
),
3637
},
3738
},

website/docs/d/clb_instances.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ In addition to all arguments above, the following attributes are exported:
4949
* `internet_charge_type` - Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.
5050
* `local_zone` - Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
5151
* `network_type` - Types of CLB.
52+
* `numerical_vpc_id` - VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
5253
* `project_id` - ID of the project.
5354
* `security_groups` - ID set of the security groups.
5455
* `status_time` - Latest state transition time of CLB.

0 commit comments

Comments
 (0)