@@ -155,6 +155,40 @@ func DataSourceTencentCloudEnis() *schema.Resource {
155155 },
156156 },
157157 },
158+ "ipv6s" : {
159+ Type : schema .TypeList ,
160+ Computed : true ,
161+ Description : "A set of intranet IPv6s." ,
162+ Elem : & schema.Resource {
163+ Schema : map [string ]* schema.Schema {
164+ "address" : {
165+ Type : schema .TypeString ,
166+ Computed : true ,
167+ Description : "`IPv6` address, such as `3402:4e00:20:100:0:8cd9:2a67:71f3`." ,
168+ },
169+ "primary" : {
170+ Type : schema .TypeBool ,
171+ Computed : true ,
172+ Description : "Whether it is a primary `IP`." ,
173+ },
174+ "address_id" : {
175+ Type : schema .TypeString ,
176+ Computed : true ,
177+ Description : "The `ID` of the `EIP` instance, such as `eip-hxlqja90`." ,
178+ },
179+ "description" : {
180+ Type : schema .TypeString ,
181+ Computed : true ,
182+ Description : "Message description." ,
183+ },
184+ "is_wan_ip_blocked" : {
185+ Type : schema .TypeBool ,
186+ Computed : true ,
187+ Description : "Whether the public IP is blocked." ,
188+ },
189+ },
190+ },
191+ },
158192 "instance_id" : {
159193 Type : schema .TypeString ,
160194 Computed : true ,
@@ -255,6 +289,18 @@ func dataSourceTencentCloudEnisRead(d *schema.ResourceData, m interface{}) error
255289 })
256290 }
257291
292+ ipv6s := make ([]map [string ]interface {}, 0 , len (eni .Ipv6AddressSet ))
293+
294+ for _ , ipv6 := range eni .Ipv6AddressSet {
295+ ipv6s = append (ipv6s , map [string ]interface {}{
296+ "address" : ipv6 .Address ,
297+ "primary" : ipv6 .Primary ,
298+ "address_id" : ipv6 .AddressId ,
299+ "description" : ipv6 .Description ,
300+ "is_wan_ip_blocked" : ipv6 .IsWanIpBlocked ,
301+ })
302+ }
303+
258304 sgs := make ([]string , 0 , len (eni .GroupSet ))
259305 for _ , sg := range eni .GroupSet {
260306 sgs = append (sgs , * sg )
@@ -278,6 +324,7 @@ func dataSourceTencentCloudEnisRead(d *schema.ResourceData, m interface{}) error
278324 "state" : eni .State ,
279325 "create_time" : eni .CreatedTime ,
280326 "ipv4s" : ipv4s ,
327+ "ipv6s" : ipv6s ,
281328 "security_groups" : sgs ,
282329 "tags" : respTags ,
283330 "cdc_id" : eni .CdcId ,
0 commit comments