RDS for PostgreSQL
Parameter | Type | Required? | Example | Description |
DBEngineVersion | String | Yes | PostgreSQL_12 | Compatible version. Values:
tip If you need to enable TDE encryption, only PostgreSQL 17 is supported. |
NodeInfo | Yes | Refer to the request example. | Instance specification configuration. There is exactly one primary node and one secondary node, with 0 to 10 optional read-only nodes. | |
StorageType | String | Yes | LocalSSD | Instance storage type. Fixed value LocalSSD (local SSD disk). |
StorageSpace | Integer | No | 100 | Instance storage space tip Different specifications have different storage space value ranges. For detailed information on storage space value ranges, refer to Product specifications. Unit is GB, with increments of 10 GB. |
VpcId | String | Yes | vpc-2gdgzrrl5icjk50ztyz6b**** | Use this parameter to specify the virtual private cloud used by the instance. tip
|
SubnetId | String | Yes | subnet-30uhx4w39n75s7r2qr0lq**** | Subnet ID. tip
|
AllowListIds | Array of String | No | [ "acl-fdd6293f300143f2a4932bb483c8****", "acl-ded4c0b707e44efd8f0dbc4e88f5****" ] | Allowlist ID. To associate multiple allowlists, separate the allowlist IDs with a comma (,). An instance can associate up to 100 allowlists. |
InstanceName | String | No | Name123 | Instance name rules:
|
MaintenanceWindow | No | Refer to the request example. | The maintenance window for the instance. | |
ProjectName | String | No | Test | Affiliated project. The default value is the default project. |
Tags | No | [{ "Key": "test", "Value": "123" }] | Array of tag objects. tip Supports passing multiple sets of tag key-value objects at once, separated by commas (,). Each time, you can pass up to 20 sets of tag key-value pairs simultaneously, and each instance can bind up to 50 tags. | |
ChargeInfo | Yes | { "ChargeType": "PostPaid" } | Payment method. | |
TDEEnable | Boolean | No | true | Enable TDE encryption? Values:
tip
|
KMSTrn | String | No | trn:kms:cn-beijing:210xxxx:keyrings/testxxxx/keys/testxxxx | KMS key ring TRN. Format: trn:kms:<region>:<account_id>:keyrings/<ring_name>/keys/<key_name>. tip When EnableTDE is true, this parameter is required. |
Parameter | Type | Required? | Example | Description |
NodeId | String | No | postgres-ca7b7019**** | tip Required when modifying node specification and deleting nodes (ModifyDBInstancesSpec). |
ZoneId | String | Yes | cn-beijing-a | The availability zone where the node is located. You can call the DescribeAvailabilityZones API to query it. tip
|
NodeType | String | Yes | Primary | Node type, with values:
|
NodeSpec | String | Yes | rds.postgres.1c2g | |
NodeOperateType | String | No | Create | Operation type. Range:
tip
|
Parameter | Type | Required? | Example | Description |
DayKind | String | Yes | Week | The granularity of the maintenance cycle, with values of Week. |
DayOfWeekMaintenanceTime | No | Refer to the sample. | Details of the instance maintenance window. |
Parameter | Type | Required? | Example | Description |
DayOfWeek | String | Yes | Monday,Tuesday | Specify the maintainable day for the instance each week. Multiple selections allowed.
tip If this value is not specified or empty, it defaults to all seven days of the week. |
MaintenanceWindowStartTime | String | Yes | 22:00Z | The instance's start time within the maintenance window on the maintainable day. Format: HH:mmZ (UTC time). tip Currently, only start times between 16:00Z and 20:00Z are supported for the maintenance window. |
Period | Integer | Yes | 6 | Duration of the instance's maintenance window on a maintainable day. tip The duration is at least 2 hours and at most 6 hours. |
Parameter | Type | Required? | Example | Description |
Key | String | Yes | abc | Tag key. Naming rules are as follows:
tip
|
Value | String | No | 3 | Tag value. The naming rules are as follows:
|
Parameter | Type | Required? | Example | Description |
ChargeType | String | Yes | PostPaid | Payment type. Values:
|
AutoRenew | Boolean | No | true | Is automatic renewal enabled for the prepaid scenario?
|
PeriodUnit | String | No | Month | Purchase period for prepaid scenarios.
|
Period | Integer | No | 1 | Subscription duration in a prepaid scenario. default value: 1. |
Number | Integer | No | 1 | Instance purchase quantity. Acceptable integer values range from 1 to 20, with a default of 1. tip When ChargeInfoObject is referenced by the RestoreToNewInstance API, Number can only be set to 1. |
Parameter | Type | Example | Description |
InstanceId | String | postgres-21a3333b**** | Instance ID. |
OrderId | String | Order634971667632428**** | Order ID. |