Skip to content

feat(vpc): [122175327] Add assistant_cidr #3194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3194.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
data-source/tencentcloud_vpc_instances: support `common_assistant_cidr` and `container_assistant_cidr`
```
18 changes: 18 additions & 0 deletions tencentcloud/services/vpc/data_source_tc_vpc_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,22 @@ func DataSourceTencentCloudVpcInstances() *schema.Resource {
Computed: true,
Description: "A network address block of a VPC CIDR.",
},
"common_assistant_cidr": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Description: "common assistant CIDR block.",
},
"container_assistant_cidr": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Description: "container assistant CIDR block.",
},
"is_default": {
Type: schema.TypeBool,
Computed: true,
Expand Down Expand Up @@ -180,6 +196,8 @@ func dataSourceTencentCloudVpcInstancesRead(d *schema.ResourceData, meta interfa
infoMap["is_multicast"] = item.isMulticast
infoMap["dns_servers"] = item.dnsServers
infoMap["create_time"] = item.createTime
infoMap["common_assistant_cidr"] = item.assistantCidrs
infoMap["container_assistant_cidr"] = item.dockerAssistantCidrs

respTags := make(map[string]string, len(item.tags))
for _, tag := range item.tags {
Expand Down
2 changes: 2 additions & 0 deletions website/docs/d/vpc_instances.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ In addition to all arguments above, the following attributes are exported:

* `instance_list` - The information list of the VPC.
* `cidr_block` - A network address block of a VPC CIDR.
* `common_assistant_cidr` - common assistant CIDR block.
* `container_assistant_cidr` - container assistant CIDR block.
* `create_time` - Creation time of VPC.
* `dns_servers` - A list of DNS servers which can be used within the VPC.
* `is_default` - Indicates whether it is the default VPC for this region.
Expand Down
Loading