@@ -110,6 +110,31 @@ func DataSourceTencentCloudMariadbDbInstances() *schema.Resource {
110
110
Computed : true ,
111
111
Description : "db version id." ,
112
112
},
113
+ "vip" : {
114
+ Type : schema .TypeString ,
115
+ Computed : true ,
116
+ Description : "Intranet IP address." ,
117
+ },
118
+ "vport" : {
119
+ Type : schema .TypeInt ,
120
+ Computed : true ,
121
+ Description : "Intranet port." ,
122
+ },
123
+ "internet_domain" : {
124
+ Type : schema .TypeString ,
125
+ Computed : true ,
126
+ Description : "Public network access domain name." ,
127
+ },
128
+ "internet_ip" : {
129
+ Type : schema .TypeString ,
130
+ Computed : true ,
131
+ Description : "Public IP address." ,
132
+ },
133
+ "internet_port" : {
134
+ Type : schema .TypeInt ,
135
+ Computed : true ,
136
+ Description : "Public network port." ,
137
+ },
113
138
"resource_tags" : {
114
139
Type : schema .TypeList ,
115
140
Computed : true ,
@@ -231,6 +256,21 @@ func dataSourceTencentCloudMariadbDbInstancesRead(d *schema.ResourceData, meta i
231
256
if instance .DbVersionId != nil {
232
257
instanceMap ["db_version_id" ] = instance .DbVersionId
233
258
}
259
+ if instance .Vip != nil {
260
+ instanceMap ["vip" ] = instance .Vip
261
+ }
262
+ if instance .Vport != nil {
263
+ instanceMap ["vport" ] = instance .Vport
264
+ }
265
+ if instance .WanDomain != nil {
266
+ instanceMap ["internet_domain" ] = instance .WanDomain
267
+ }
268
+ if instance .WanVip != nil {
269
+ instanceMap ["internet_ip" ] = instance .WanVip
270
+ }
271
+ if instance .WanPort != nil {
272
+ instanceMap ["internet_port" ] = instance .WanPort
273
+ }
234
274
if instance .ResourceTags != nil {
235
275
resourceTagsList := []interface {}{}
236
276
for _ , resourceTags := range instance .ResourceTags {
0 commit comments