Adds a read-only node to a PolarDB cluster.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
polardb:CreateDBNodes | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceGroupId | string | No | The ID of the resource group. | rg-************ |
DBClusterId | string | Yes | The ID of the cluster. | pc-************* |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. The token is case-sensitive. | 6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
EndpointBindList | string | No | The ID of the cluster endpoint to which the read-only node is added. If you want to add the read-only node to multiple endpoints at the same time, separate the endpoint IDs with commas (,). Note
AutoAddNewNodes to Enable , the Automatically Associate New Nodes feature is enabled. | pe-****************,pe-**************** |
PlannedStartTime | string | No | The earliest start time of the scheduled task for adding the read-only node. The scheduled task specifies that the task is run in the required period. Specify the time in the Note
2021-01-14T09:00:00Z , you can specify a point in time between 2021-01-14T09:00:00Z and 2021-01-15T09:00:00Z . | 2021-01-14T09:00:00Z |
PlannedEndTime | string | No | The latest start time for upgrading the specifications within the scheduled time period. Specify the time in the Note
PlannedStartTime but do not specify PlannedEndTime, the latest start time of the task is set to a value that is calculated by using the following formula: PlannedEndTime value + 30 minutes . For example, if you set PlannedStartTime to 2021-01-14T09:00:00Z and you do not specify PlannedEndTime, the latest start time of the task is set to 2021-01-14T09:30:00Z . | 2021-01-14T09:30:00Z |
DBNode | array<object> | Yes | The details of the read-only node. | |
object | Yes | |||
TargetClass | string | No | The specifications of the read-only node that you want to add, which must be the same as the specifications of the existing nodes. For more information, see the following topics:
Note
| polar.mysql.x4.medium |
ZoneId | string | No | The zone ID of the node that you want to add, which must be the same as the zone ID of existing nodes. You can call the DescribeRegions operation to query the IDs of zones. Note
| cn-qingdao-c |
DBNodeType | string | No | The type of the node. Valid values:
| RO |
ImciSwitch | string | No | Specifies whether to enable the In-Memory Column Index (IMCI) feature. Default value: OFF. Valid values:
Note
This parameter is invalid for a PolarDB for Oracle or PolarDB for PostgreSQL cluster.
| ON |
Response parameters
Examples
Sample success responses
JSON
format
{
"DBNodeIds": {
"DBNodeId": [
"pi-***************"
]
},
"RequestId": "E053E730-5755-4AA9-AA9D-A47867******",
"DBClusterId": "pc-***************",
"OrderId": "2148126708*****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ORDER.ARREARAGE | You must settle the overdue payments for your account before you can make a purchase. | |
400 | InvalidDBNodeNum.Malformed | The number of parameter DBNode.N is not valid. | The specified number of database nodes is invalid. |
400 | InvalidDBNode.Malformed | The specified parameter DBNode.N is not valid. | The specified DBNode.N parameter is invalid. |
400 | OperationDenied.CreateDBNodesWithStrictConsistencyOn | 3AZ cluster does not allow create db nodes. | Nodes cannot be added for multi-zone clusters. |
400 | InvalidZoneId.Malformed | The specified parameter ZoneId is not valid. | The specified ZoneId parameter is invalid. |
403 | OperationDenied.ClusterCategory | The operation is not permitted due to cluster category. | This series is not supported by the cluster. |
403 | OperationDenied.DbVersion | The operation is not permitted due to DbVersion. | This operation is not supported by the database version. |
404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-09-12 | The Error code has changed | View Change Details |
2023-06-20 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2022-01-13 | The request parameters of the API has changed | View Change Details |