RDS for PostgreSQL
Parameter | Type | Required? | Example | Description |
Parameter | Type | Required? | Example | Description |
SrcInstanceId | String | Yes | postgres-21a3333b**** | ID of the source instance to which the backup file belongs. |
BackupId | String | No | 20230801-170**** | Backup file ID of the source instance. Use the data saved in this backup file to create a new instance. You can query the backup file list information of the specified instance by calling DescribeBackups. tip At least one of BackupId or RestoreTime should be provided. If both BackupId and RestoreTime are provided, BackupId takes precedence. |
RestoreTime | String | No | 2022-01-01T10:10:10Z | Any point in time within the retention period of the source instance log backup, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC time). Call the DescribeRecoverableTime API to query the time range for data recovery from an instance backup. tip One of the two parameters, this parameter or BackupId, must be selected. |
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. Unit is GB, with a step size of 10 GB. tip Different specifications have different storage space value ranges. For detailed information on storage space value ranges, refer to Product specifications. |
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
|
InstanceName | String | No | Name123 | Storage type. Rules:
|
ProjectName | String | No | Test | Affiliated project. If this parameter is left empty, the new instance will be added to the default project by default. |
Tags | No | Refer to the request example. | Array of tag objects. tip Supports input of multiple sets of tag key-value objects at once. Up to 20 sets of tag key-value pairs can be input simultaneously per submission, and up to 50 tags can be bound to a single instance. | |
ChargeInfo | Yes | { "ChargeType": "PostPaid" } | Payment method. | |
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. |
MaintenanceWindow | No | Refer to the request example. | Details of the instance maintenance window. |
Parameter | Type | Required? | Example | Description |
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 |
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 |
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 | Required? | Example | Description |
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 |
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 | Example | Description |
Parameter | Type | Example | Description |
InstanceId | String | postgres-21a3333b**** | Instance ID. |
OrderId | String | Order71220115095297**** | Order ID. |