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
Copy file name to clipboardExpand all lines: tencentcloud/resource_tc_postgresql_instance.go
+54-46Lines changed: 54 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
/*
2
2
Use this resource to create postgresql instance.
3
3
4
+
-> **Note:** To update the charge type, please update the `charge_type` and specify the `period` for the charging period. It only supports updating from `POSTPAID_BY_HOUR` to `PREPAID`, and the `period` field only valid in that upgrading case.
Description: "Pay type of the postgresql instance. Values `POSTPAID_BY_HOUR` (Default), `PREPAID`. It support to update the type from `POSTPAID_BY_HOUR` to `PREPAID`.",
216
+
Description: "Pay type of the postgresql instance. Values `POSTPAID_BY_HOUR` (Default), `PREPAID`. It only support to update the type from `POSTPAID_BY_HOUR` to `PREPAID`.",
Description: "Specify Prepaid period in month. Default `1`. Values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. This field is valid only when creating a `PREPAID` type instance, or updating the charge type from `POSTPAID_BY_HOUR` to `PREPAID`.",
220
222
},
221
223
"auto_renew_flag": {
222
224
Type: schema.TypeInt,
@@ -803,6 +805,10 @@ func resourceTencentCloudPostgresqlInstanceUpdate(d *schema.ResourceData, meta i
Copy file name to clipboardExpand all lines: website/docs/r/postgresql_instance.html.markdown
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ description: |-
11
11
12
12
Use this resource to create postgresql instance.
13
13
14
+
-> **Note:** To update the charge type, please update the `charge_type` and specify the `period` for the charging period. It only supports updating from `POSTPAID_BY_HOUR` to `PREPAID`, and the `period` field only valid in that upgrading case.
15
+
14
16
## Example Usage
15
17
16
18
```hcl
@@ -189,7 +191,7 @@ The following arguments are supported:
189
191
*`auto_renew_flag` - (Optional, Int) Auto renew flag, `1` for enabled. NOTES: Only support prepaid instance.
190
192
*`auto_voucher` - (Optional, Int) Whether to use voucher, `1` for enabled.
191
193
*`backup_plan` - (Optional, List) Specify DB backup plan.
192
-
*`charge_type` - (Optional, String) Pay type of the postgresql instance. Values `POSTPAID_BY_HOUR` (Default), `PREPAID`. It support to update the type from `POSTPAID_BY_HOUR` to `PREPAID`.
194
+
*`charge_type` - (Optional, String) Pay type of the postgresql instance. Values `POSTPAID_BY_HOUR` (Default), `PREPAID`. It only support to update the type from `POSTPAID_BY_HOUR` to `PREPAID`.
193
195
*`charset` - (Optional, String, ForceNew) Charset of the root account. Valid values are `UTF8`,`LATIN1`.
194
196
*`db_kernel_version` - (Optional, String) PostgreSQL kernel version number. If it is specified, an instance running kernel DBKernelVersion will be created. It supports updating the minor kernel version immediately.
195
197
*`db_major_version` - (Optional, String) PostgreSQL major version number. Valid values: 10, 11, 12, 13. If it is specified, an instance running the latest kernel of PostgreSQL DBMajorVersion will be created.
@@ -201,7 +203,7 @@ The following arguments are supported:
201
203
*`max_standby_archive_delay` - (Optional, Int) max_standby_archive_delay applies when WAL data is being read from WAL archive (and is therefore not current). Units are milliseconds if not specified.
202
204
*`max_standby_streaming_delay` - (Optional, Int) max_standby_streaming_delay applies when WAL data is being received via streaming replication. Units are milliseconds if not specified.
203
205
*`need_support_tde` - (Optional, Int) Whether to support data transparent encryption, 1: yes, 0: no (default).
*`period` - (Optional, Int) Specify Prepaid period in month. Default `1`. Values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. This field is valid only when creating a `PREPAID` type instance, or updating the charge type from `POSTPAID_BY_HOUR` to `PREPAID`.
205
207
*`project_id` - (Optional, Int) Project id, default value is `0`.
206
208
*`public_access_switch` - (Optional, Bool) Indicates whether to enable the access to an instance from public network or not.
207
209
*`root_user` - (Optional, String, ForceNew) Instance root account name. This parameter is optional, Default value is `root`.
0 commit comments