@@ -8,125 +8,6 @@ import (
8
8
cdb "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cdb/v20170320"
9
9
)
10
10
11
- func TencentCloudMysqlInstanceDetail () map [string ]* schema.Schema {
12
- return map [string ]* schema.Schema {
13
- "mysql_id" : {
14
- Type : schema .TypeString ,
15
- Computed : true ,
16
- },
17
- "instance_name" : {
18
- Type : schema .TypeString ,
19
- Computed : true ,
20
- },
21
- "instance_role" : {
22
- Type : schema .TypeString ,
23
- Computed : true ,
24
- },
25
- "init_flag" : {
26
- Type : schema .TypeInt ,
27
- Computed : true ,
28
- },
29
- "status" : {
30
- Type : schema .TypeInt ,
31
- Computed : true ,
32
- },
33
- "zone" : {
34
- Type : schema .TypeString ,
35
- Computed : true ,
36
- },
37
- "auto_renew_flag" : {
38
- Type : schema .TypeInt ,
39
- Computed : true ,
40
- },
41
- "engine_version" : {
42
- Type : schema .TypeString ,
43
- Computed : true ,
44
- },
45
- "cpu_core_count" : {
46
- Type : schema .TypeInt ,
47
- Computed : true ,
48
- },
49
- "memory_size" : {
50
- Type : schema .TypeInt ,
51
- Computed : true ,
52
- },
53
- "volume_size" : {
54
- Type : schema .TypeInt ,
55
- Computed : true ,
56
- },
57
- "internet_status" : {
58
- Type : schema .TypeInt ,
59
- Computed : true ,
60
- },
61
- "internet_domain" : {
62
- Type : schema .TypeString ,
63
- Computed : true ,
64
- },
65
- "internet_port" : {
66
- Type : schema .TypeInt ,
67
- Computed : true ,
68
- },
69
- "intranet_ip" : {
70
- Type : schema .TypeString ,
71
- Computed : true ,
72
- },
73
- "intranet_port" : {
74
- Type : schema .TypeInt ,
75
- Computed : true ,
76
- },
77
- "project_id" : {
78
- Type : schema .TypeInt ,
79
- Computed : true ,
80
- },
81
- "vpc_id" : {
82
- Type : schema .TypeString ,
83
- Computed : true ,
84
- },
85
- "subnet_id" : {
86
- Type : schema .TypeString ,
87
- Computed : true ,
88
- },
89
- "slave_sync_mode" : {
90
- Type : schema .TypeInt ,
91
- Computed : true ,
92
- },
93
- "device_type" : {
94
- Type : schema .TypeString ,
95
- Computed : true ,
96
- },
97
- "pay_type" : {
98
- Type : schema .TypeInt ,
99
- Computed : true ,
100
- },
101
- "create_time" : {
102
- Type : schema .TypeString ,
103
- Computed : true ,
104
- },
105
- "dead_line_time" : {
106
- Type : schema .TypeString ,
107
- Computed : true ,
108
- },
109
- "master_instance_id" : {
110
- Type : schema .TypeString ,
111
- Computed : true ,
112
- },
113
- "ro_instance_ids" : {
114
- Type : schema .TypeList ,
115
- Computed : true ,
116
- Elem : & schema.Schema {
117
- Type : schema .TypeString ,
118
- },
119
- },
120
- "dr_instance_ids" : {
121
- Type : schema .TypeList ,
122
- Computed : true ,
123
- Elem : & schema.Schema {
124
- Type : schema .TypeString ,
125
- },
126
- },
127
- }
128
- }
129
-
130
11
func dataSourceTencentCloudMysqlInstance () * schema.Resource {
131
12
return & schema.Resource {
132
13
Read : dataSourceTencentCloudMysqlInstanceRead ,
@@ -253,7 +134,7 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
253
134
Type : schema .TypeInt ,
254
135
Computed : true ,
255
136
},
256
- "internet_domain " : {
137
+ "internet_host " : {
257
138
Type : schema .TypeString ,
258
139
Computed : true ,
259
140
},
@@ -422,7 +303,7 @@ func dataSourceTencentCloudMysqlInstanceRead(d *schema.ResourceData, meta interf
422
303
"memory_size" : * item .Memory ,
423
304
"volume_size" : * item .Volume ,
424
305
"internet_status" : * item .WanStatus ,
425
- "internet_domain" : * item .WanDomain ,
306
+ "internet_host" : * item .WanDomain ,
426
307
"internet_port" : * item .WanPort ,
427
308
"intranet_ip" : * item .Vip ,
428
309
"intranet_port" : * item .Vport ,
0 commit comments