Adds a read-only node to a PolarDB cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | CreateDBNodes |
The operation that you want to perform. Set the value to CreateDBNodes. |
DBClusterId | String | Yes | pc-************* |
The ID of the cluster. |
DBNode.N.TargetClass | String | No | polar.mysql.x4.medium |
The specification of the node to be added. The specification of the new node must be consistent with the specifications of the original nodes. For more information about the node specifications, see Specifications and pricing. Note
|
DBNode.N.ZoneId | String | No | cn-qingdao-c |
The zone ID of the node to be added. The zone ID of the new node must be consistent with the IDs of original nodes. You can call the DescribeRegions operation to query the IDs of zones. Note
|
ClientToken | String | No | 6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
Ensures the idempotence of requests to prevent duplicate requests from being submitted. You can use the client to generate the value, but you must make sure that the value is unique among different requests. The token is case-sensitive, and can contain a maximum of 64 ASCII characters in length. |
EndpointBindList | String | No | pe-****************,pe-**************** |
The ID of the cluster endpoint to which the new node is added. If you need to add the node to multiple endpoints at a time, separate multiple endpoint IDs with commas (,). Note
|
PlannedStartTime | String | No | 2021-01-14T09:00:00Z |
The earliest time when the scheduled task for adding the node starts to be run. The
scheduled task indicates that the task is run in the required period. Specify the
time in the Note
|
PlannedEndTime | String | No | 2021-01-14T09:30:00Z |
The latest time when the scheduled task starts to be run. Specify the time in the
Note
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DBClusterId | String | pc-*************** |
The ID of the database cluster. |
DBNodeIds | List | pi-*************** |
The ID list of the database nodes that were created. |
OrderId | String | 11111111111111 |
The ID of the order. |
RequestId | String | E053E730-5755-4AA9-AA9D-A47867****** |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/? Action=CreateDBNodes
&DBClusterId=pc-*************
&<Common request parameters>
Sample success responses
XML
format
<CreateDBNodesResponse>
<DBNodeIds>
<DBNodeId>pi-***************</DBNodeId>
<DBNodeId>pi-***************</DBNodeId>
</DBNodeIds>
<RequestId>E053E730-5755-4AA9-AA9D-A47867******</RequestId>
<DBClusterId>pc-***************</DBClusterId>
<OrderId>11111111111111</OrderId>
</CreateDBNodesResponse>
JSON
format
{
"DBNodeIds": {
"DBNodeId": [
"pi-***************",
"pi-***************"
]
},
"RequestId": "E053E730-5755-4AA9-AA9D-A47867******",
"DBClusterId": "pc-***************",
"OrderId": 11111111111111
}
Error codes
For a list of error codes, visit the API Error Center.