You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated) and `HIO10G`(or `TGIO` which will be deprecated).",
109
+
},
110
+
"available_zone": {
111
+
Type: schema.TypeString,
112
+
Required: true,
113
+
ForceNew: true,
114
+
Description: "The available zone of the Mongodb.",
115
+
},
116
+
"vpc_id": {
117
+
Type: schema.TypeString,
118
+
Optional: true,
119
+
ForceNew: true,
120
+
Default: "",
121
+
Description: "ID of the VPC.",
122
+
},
123
+
"subnet_id": {
124
+
Type: schema.TypeString,
125
+
Optional: true,
126
+
ForceNew: true,
127
+
Description: "ID of the subnet within this VPC. The value is required if `vpc_id` is set.",
128
+
},
129
+
"project_id": {
130
+
Type: schema.TypeInt,
131
+
Optional: true,
132
+
Default: 0,
133
+
Description: "ID of the project which the instance belongs.",
134
+
},
135
+
"security_groups": {
136
+
Type: schema.TypeSet,
137
+
Optional: true,
138
+
ForceNew: true,
139
+
Elem: &schema.Schema{
140
+
Type: schema.TypeString,
141
+
},
142
+
Set: func(vinterface{}) int {
143
+
returnhashcode.String(v.(string))
144
+
},
145
+
Description: "ID of the security group. NOTE: for instance which `engine_version` is `MONGO_40_WT`, `security_groups` is not supported.",
Description: "The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.",
Description: "The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to `PREPAID`.",
172
+
},
173
+
"auto_renew_flag": {
174
+
Type: schema.TypeInt,
175
+
Optional: true,
176
+
Default: 0,
177
+
Description: "Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.",
178
+
},
179
+
// Computed
180
+
"status": {
181
+
Type: schema.TypeInt,
182
+
Computed: true,
183
+
Description: "Status of the Mongodb instance, and available values include pending initialization(expressed with 0), processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).",
184
+
},
185
+
"vip": {
186
+
Type: schema.TypeString,
187
+
Computed: true,
188
+
Description: "IP of the Mongodb instance.",
189
+
},
190
+
"vport": {
191
+
Type: schema.TypeInt,
192
+
Computed: true,
193
+
Description: "IP port of the Mongodb instance.",
194
+
},
195
+
"create_time": {
196
+
Type: schema.TypeString,
197
+
Computed: true,
198
+
Description: "Creation time of the Mongodb instance.",
0 commit comments