RDS for PostgreSQL
Parameter | Type | Required? | Example | Description |
Parameter | Type | Required? | Example | Description |
InstanceId | String | Yes | postgres-21a3333b**** | Instance ID. |
QueryStartTime | String | No | 2023-07-31T12:00:19Z | retrieve start time. Format: yyyy-MM-ddTHH:mmZ (UTC time). t refers to the start of a specific time; z refers to the time zone offset, for example, Beijing time offset is +0800. The default value is the instance creation time, meaning the query starts from the instance creation. |
QueryEndTime | String | No | 2023-07-31T12:00:19Z | The query end time must be later than the start time, and the interval between the start and end times should be less than 31 days. Format: yyyy-MM-ddTHH:mmZ (UTC time). The default value is the request initiation time. |
Limit | Integer | No | 1000 | Records per page. The maximum is 1,000, the minimum is 1, and the default value is 500. |
Context | String | No | [1690808035000,100367578,8388608,null] | Index information, used to load more logs on page turn. Pass through the previously returned context value to retrieve subsequent log content. The default value is empty. |
Parameter | Type | Example | Description |
Parameter | Type | Example | Description |
Total | Integer | 1 | Total number of switchover logs. |
InstanceId | String | postgres-21a3333b**** | Instance ID. |
FailoverLogs | Refer to the Sample response. | Switch primary node log list. | |
Context | String | [1690808035000,100367578,8388608,null] | Index information. Use the last backup file as the index for return. Can be used as the parameter for the next request. Select when loading more. |
Parameter | Type | Example | Description |
Parameter | Type | Example | Description |
NewMasterNodeId | String | postgres-21a3333b****-0 | New primary node ID. |
OldMasterNodeId | String | postgres-21a3333b****-1 | Old primary node ID. |
FailoverType | String | System | switch type.
|
FailoverTime | String | 2020-06-18T01:40:44Z | Switch time between primary and secondary nodes. |