Skip to content

Commit 879fcc0

Browse files
authored
feat(vpc): [122175327] Add assistant_cidr (#3194)
* add cidr * add cidr
1 parent a7ea0d9 commit 879fcc0

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.changelog/3194.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
data-source/tencentcloud_vpc_instances: support `common_assistant_cidr` and `container_assistant_cidr`
3+
```

tencentcloud/services/vpc/data_source_tc_vpc_instances.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,22 @@ func DataSourceTencentCloudVpcInstances() *schema.Resource {
7878
Computed: true,
7979
Description: "A network address block of a VPC CIDR.",
8080
},
81+
"common_assistant_cidr": {
82+
Type: schema.TypeList,
83+
Computed: true,
84+
Elem: &schema.Schema{
85+
Type: schema.TypeString,
86+
},
87+
Description: "common assistant CIDR block.",
88+
},
89+
"container_assistant_cidr": {
90+
Type: schema.TypeList,
91+
Computed: true,
92+
Elem: &schema.Schema{
93+
Type: schema.TypeString,
94+
},
95+
Description: "container assistant CIDR block.",
96+
},
8197
"is_default": {
8298
Type: schema.TypeBool,
8399
Computed: true,
@@ -180,6 +196,8 @@ func dataSourceTencentCloudVpcInstancesRead(d *schema.ResourceData, meta interfa
180196
infoMap["is_multicast"] = item.isMulticast
181197
infoMap["dns_servers"] = item.dnsServers
182198
infoMap["create_time"] = item.createTime
199+
infoMap["common_assistant_cidr"] = item.assistantCidrs
200+
infoMap["container_assistant_cidr"] = item.dockerAssistantCidrs
183201

184202
respTags := make(map[string]string, len(item.tags))
185203
for _, tag := range item.tags {

website/docs/d/vpc_instances.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ In addition to all arguments above, the following attributes are exported:
4646

4747
* `instance_list` - The information list of the VPC.
4848
* `cidr_block` - A network address block of a VPC CIDR.
49+
* `common_assistant_cidr` - common assistant CIDR block.
50+
* `container_assistant_cidr` - container assistant CIDR block.
4951
* `create_time` - Creation time of VPC.
5052
* `dns_servers` - A list of DNS servers which can be used within the VPC.
5153
* `is_default` - Indicates whether it is the default VPC for this region.

0 commit comments

Comments
 (0)