@@ -120,6 +120,16 @@ func dataSourceInstanceTypes() *schema.Resource {
120120 Computed : true ,
121121 Description : "Type series of the instance." ,
122122 },
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+ },
123133 },
124134 },
125135 },
@@ -252,12 +262,14 @@ func dataSourceTencentCloudInstanceTypesRead(d *schema.ResourceData, meta interf
252262
253263 if flag {
254264 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 ,
261273 }
262274 typeList = append (typeList , mapping )
263275 ids = append (ids , * instanceType .InstanceType )
0 commit comments