@@ -144,9 +144,9 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
144
144
Read : dataSourceTencentCloudMysqlInstanceRead ,
145
145
Schema : map [string ]* schema.Schema {
146
146
"mysql_id" : {
147
- Type : schema .TypeString ,
148
- Optional : true ,
149
- Description : "Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page." ,
147
+ Type : schema .TypeString ,
148
+ Optional : true ,
149
+ Description : "Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page." ,
150
150
},
151
151
"instance_role" : {
152
152
Type : schema .TypeString ,
@@ -161,9 +161,9 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
161
161
Description : "Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 – Isolated." ,
162
162
},
163
163
"security_group_id" : {
164
- Type : schema .TypeString ,
165
- Optional : true ,
166
- Description : "Security groups ID of instance." ,
164
+ Type : schema .TypeString ,
165
+ Optional : true ,
166
+ Description : "Security groups ID of instance." ,
167
167
},
168
168
"pay_type" : {
169
169
Type : schema .TypeInt ,
@@ -172,9 +172,9 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
172
172
Description : "" ,
173
173
},
174
174
"instance_name" : {
175
- Type : schema .TypeString ,
176
- Optional : true ,
177
- Description : "Name of mysql instance." ,
175
+ Type : schema .TypeString ,
176
+ Optional : true ,
177
+ Description : "Name of mysql instance." ,
178
178
},
179
179
"engine_version" : {
180
180
Type : schema .TypeString ,
@@ -221,154 +221,154 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
221
221
Description : "Number of results returned for a single request. Default is 20, and maximum is 2000." ,
222
222
},
223
223
"result_output_file" : {
224
- Type : schema .TypeString ,
225
- Optional : true ,
226
- Description : "Used to store results." ,
224
+ Type : schema .TypeString ,
225
+ Optional : true ,
226
+ Description : "Used to store results." ,
227
227
},
228
228
// Computed values
229
229
"instance_list" : {
230
- Type : schema .TypeList ,
231
- Computed : true ,
230
+ Type : schema .TypeList ,
231
+ Computed : true ,
232
232
Description : "A list of instances. Each element contains the following attributes:" ,
233
233
Elem : & schema.Resource {
234
234
Schema : map [string ]* schema.Schema {
235
235
"mysql_id" : {
236
- Type : schema .TypeString ,
237
- Computed : true ,
238
- Description : "Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page." ,
236
+ Type : schema .TypeString ,
237
+ Computed : true ,
238
+ Description : "Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page." ,
239
239
},
240
240
"instance_name" : {
241
- Type : schema .TypeString ,
242
- Computed : true ,
243
- Description : "Name of mysql instance." ,
241
+ Type : schema .TypeString ,
242
+ Computed : true ,
243
+ Description : "Name of mysql instance." ,
244
244
},
245
245
"instance_role" : {
246
- Type : schema .TypeString ,
247
- Computed : true ,
248
- Description : "Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance." ,
246
+ Type : schema .TypeString ,
247
+ Computed : true ,
248
+ Description : "Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance." ,
249
249
},
250
250
"init_flag" : {
251
- Type : schema .TypeInt ,
252
- Computed : true ,
253
- Description : "Initialization mark. Available values: 0 - Uninitialized; 1 – Initialized." ,
251
+ Type : schema .TypeInt ,
252
+ Computed : true ,
253
+ Description : "Initialization mark. Available values: 0 - Uninitialized; 1 – Initialized." ,
254
254
},
255
255
"status" : {
256
- Type : schema .TypeInt ,
257
- Computed : true ,
258
- Description : "Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 – Isolated." ,
256
+ Type : schema .TypeInt ,
257
+ Computed : true ,
258
+ Description : "Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 – Isolated." ,
259
259
},
260
260
"zone" : {
261
- Type : schema .TypeString ,
262
- Computed : true ,
263
- Description : "Information of available zone." ,
261
+ Type : schema .TypeString ,
262
+ Computed : true ,
263
+ Description : "Information of available zone." ,
264
264
},
265
265
"auto_renew_flag" : {
266
- Type : schema .TypeInt ,
267
- Computed : true ,
268
- Description : "" ,
266
+ Type : schema .TypeInt ,
267
+ Computed : true ,
268
+ Description : "" ,
269
269
},
270
270
"engine_version" : {
271
- Type : schema .TypeString ,
272
- Computed : true ,
273
- Description : "The version number of the database engine to use. Supported versions include 5.5/5.6/5.7." ,
271
+ Type : schema .TypeString ,
272
+ Computed : true ,
273
+ Description : "The version number of the database engine to use. Supported versions include 5.5/5.6/5.7." ,
274
274
},
275
275
"cpu_core_count" : {
276
- Type : schema .TypeInt ,
277
- Computed : true ,
278
- Description : "CPU count." ,
276
+ Type : schema .TypeInt ,
277
+ Computed : true ,
278
+ Description : "CPU count." ,
279
279
},
280
280
"memory_size" : {
281
- Type : schema .TypeInt ,
282
- Computed : true ,
283
- Description : "Memory size (in MB)." ,
281
+ Type : schema .TypeInt ,
282
+ Computed : true ,
283
+ Description : "Memory size (in MB)." ,
284
284
},
285
285
"volume_size" : {
286
- Type : schema .TypeInt ,
287
- Computed : true ,
288
- Description : "Disk capacity (in GB)." ,
286
+ Type : schema .TypeInt ,
287
+ Computed : true ,
288
+ Description : "Disk capacity (in GB)." ,
289
289
},
290
290
"internet_status" : {
291
- Type : schema .TypeInt ,
292
- Computed : true ,
293
- Description : "Status of public network." ,
291
+ Type : schema .TypeInt ,
292
+ Computed : true ,
293
+ Description : "Status of public network." ,
294
294
},
295
295
"internet_host" : {
296
- Type : schema .TypeString ,
297
- Computed : true ,
298
- Description : "Public network domain name." ,
296
+ Type : schema .TypeString ,
297
+ Computed : true ,
298
+ Description : "Public network domain name." ,
299
299
},
300
300
"internet_port" : {
301
- Type : schema .TypeInt ,
302
- Computed : true ,
303
- Description : "Public network port." ,
301
+ Type : schema .TypeInt ,
302
+ Computed : true ,
303
+ Description : "Public network port." ,
304
304
},
305
305
"intranet_ip" : {
306
- Type : schema .TypeString ,
307
- Computed : true ,
308
- Description : "Instance IP for internal access." ,
306
+ Type : schema .TypeString ,
307
+ Computed : true ,
308
+ Description : "Instance IP for internal access." ,
309
309
},
310
310
"intranet_port" : {
311
- Type : schema .TypeInt ,
312
- Computed : true ,
313
- Description : "Transport layer port number for internal purpose." ,
311
+ Type : schema .TypeInt ,
312
+ Computed : true ,
313
+ Description : "Transport layer port number for internal purpose." ,
314
314
},
315
315
"project_id" : {
316
- Type : schema .TypeInt ,
317
- Computed : true ,
318
- Description : "Project ID to which the current instance belongs." ,
316
+ Type : schema .TypeInt ,
317
+ Computed : true ,
318
+ Description : "Project ID to which the current instance belongs." ,
319
319
},
320
320
"vpc_id" : {
321
- Type : schema .TypeString ,
322
- Computed : true ,
323
- Description : "ID of Virtual Private Cloud." ,
321
+ Type : schema .TypeString ,
322
+ Computed : true ,
323
+ Description : "ID of Virtual Private Cloud." ,
324
324
},
325
325
"subnet_id" : {
326
- Type : schema .TypeString ,
327
- Computed : true ,
328
- Description : "ID of subnet to which the current instance belongs." ,
326
+ Type : schema .TypeString ,
327
+ Computed : true ,
328
+ Description : "ID of subnet to which the current instance belongs." ,
329
329
},
330
330
"slave_sync_mode" : {
331
- Type : schema .TypeInt ,
332
- Computed : true ,
333
- Description : "Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication." ,
331
+ Type : schema .TypeInt ,
332
+ Computed : true ,
333
+ Description : "Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication." ,
334
334
},
335
335
"device_type" : {
336
- Type : schema .TypeString ,
337
- Computed : true ,
338
- Description : "Supported instance model.HA - high available version; Basic - basic version." ,
336
+ Type : schema .TypeString ,
337
+ Computed : true ,
338
+ Description : "Supported instance model.HA - high available version; Basic - basic version." ,
339
339
},
340
340
"pay_type" : {
341
- Type : schema .TypeInt ,
342
- Computed : true ,
343
- Description : "" ,
341
+ Type : schema .TypeInt ,
342
+ Computed : true ,
343
+ Description : "" ,
344
344
},
345
345
"create_time" : {
346
- Type : schema .TypeString ,
347
- Computed : true ,
348
- Description : "The time at which a instance is created." ,
346
+ Type : schema .TypeString ,
347
+ Computed : true ,
348
+ Description : "The time at which a instance is created." ,
349
349
},
350
350
"dead_line_time" : {
351
- Type : schema .TypeString ,
352
- Computed : true ,
353
- Description : "" ,
351
+ Type : schema .TypeString ,
352
+ Computed : true ,
353
+ Description : "" ,
354
354
},
355
355
"master_instance_id" : {
356
- Type : schema .TypeString ,
357
- Computed : true ,
358
- Description : "" ,
356
+ Type : schema .TypeString ,
357
+ Computed : true ,
358
+ Description : "" ,
359
359
},
360
360
"ro_instance_ids" : {
361
- Type : schema .TypeList ,
362
- Computed : true ,
363
- Description : "ID list of read-only type associated with the current instance." ,
361
+ Type : schema .TypeList ,
362
+ Computed : true ,
363
+ Description : "ID list of read-only type associated with the current instance." ,
364
364
Elem : & schema.Schema {
365
365
Type : schema .TypeString ,
366
366
},
367
367
},
368
368
"dr_instance_ids" : {
369
- Type : schema .TypeList ,
370
- Computed : true ,
371
- Description : "ID list of disaster-recovory type associated with the current instance." ,
369
+ Type : schema .TypeList ,
370
+ Computed : true ,
371
+ Description : "ID list of disaster-recovory type associated with the current instance." ,
372
372
Elem : & schema.Schema {
373
373
Type : schema .TypeString ,
374
374
},
@@ -476,7 +476,7 @@ func dataSourceTencentCloudMysqlInstanceRead(d *schema.ResourceData, meta interf
476
476
"memory_size" : * item .Memory ,
477
477
"volume_size" : * item .Volume ,
478
478
"internet_status" : * item .WanStatus ,
479
- "internet_host" : * item .WanDomain ,
479
+ "internet_host" : * item .WanDomain ,
480
480
"internet_port" : * item .WanPort ,
481
481
"intranet_ip" : * item .Vip ,
482
482
"intranet_port" : * item .Vport ,
0 commit comments