@@ -120,6 +120,16 @@ func dataSourceInstanceTypes() *schema.Resource {
120
120
Computed : true ,
121
121
Description : "Type series of the instance." ,
122
122
},
123
+ "instance_charge_type" : {
124
+ Type : schema .TypeString ,
125
+ Computed : true ,
126
+ Description : "Charge type of the instance." ,
127
+ },
128
+ "status" : {
129
+ Type : schema .TypeString ,
130
+ Computed : true ,
131
+ Description : "Sell status of the instance." ,
132
+ },
123
133
},
124
134
},
125
135
},
@@ -252,12 +262,14 @@ func dataSourceTencentCloudInstanceTypesRead(d *schema.ResourceData, meta interf
252
262
253
263
if flag {
254
264
mapping := map [string ]interface {}{
255
- "availability_zone" : instanceType .Zone ,
256
- "cpu_core_count" : instanceType .Cpu ,
257
- "gpu_core_count" : instanceType .Gpu ,
258
- "memory_size" : instanceType .Memory ,
259
- "family" : instanceType .InstanceFamily ,
260
- "instance_type" : instanceType .InstanceType ,
265
+ "availability_zone" : instanceType .Zone ,
266
+ "cpu_core_count" : instanceType .Cpu ,
267
+ "gpu_core_count" : instanceType .Gpu ,
268
+ "memory_size" : instanceType .Memory ,
269
+ "family" : instanceType .InstanceFamily ,
270
+ "instance_type" : instanceType .InstanceType ,
271
+ "instance_charge_type" : instanceType .InstanceChargeType ,
272
+ "status" : instanceType .Status ,
261
273
}
262
274
typeList = append (typeList , mapping )
263
275
ids = append (ids , * instanceType .InstanceType )
0 commit comments