Adds a read-only node to a PolarDB cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateDBNodes | The operation that you want to perform. Set the value to CreateDBNodes. |
ResourceGroupId | String | No | rg-************ | The ID of the resource group. |
DBClusterId | String | Yes | pc-************* | The ID of the cluster. |
ClientToken | String | No | 6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** | 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. |
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 to run the scheduled task for adding the node. Specify the time in the Note
|
PlannedEndTime | String | No | 2021-01-14T09:30:00Z | The latest start time to run the task. Specify the time in the Note
|
DBNode.N.TargetClass | String | No | polar.mysql.x4.medium | The specifications of the node that you want to add, which must be the same as that of existing nodes. For more information about node specifications, see the following topics:
|
DBNode.N.ZoneId | String | No | cn-qingdao-c | The zone ID of the node that you want to add, which must be the same as that of existing nodes. You can call the DescribeRegions operation to query the IDs of zones. Note
|
ImciSwitch | String | No | ON | Specifies whether to enable the In-Memory Column Index (IMCI) feature. Default value: OFF. Valid values:
Note This parameter is not supported if your cluster is a PolarDB for PostgreSQL(Compatible with Oracle) cluster or a PolarDB for PostgreSQL cluster. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DBNodeIds | Array of String | pi-*************** | The ID list of the database nodes that were created. |
RequestId | String | E053E730-5755-4AA9-AA9D-A47867****** | The ID of the request. |
DBClusterId | String | pc-*************** | The ID of the cluster. |
OrderId | String | 2148126708***** | The ID of the order. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/?Action=CreateDBNodes
&DBClusterId=pc-*************
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateDBNodesResponse>
<DBNodeIds>pi-***************</DBNodeIds>
<RequestId>E053E730-5755-4AA9-AA9D-A47867******</RequestId>
<DBClusterId>pc-***************</DBClusterId>
<OrderId>2148126708*****</OrderId>
</CreateDBNodesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DBNodeIds" : [ "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 have an overdue bill. You must pay the bill first. | The error message returned because you have an overdue bill. You must pay the bill first. |
404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The error message returned because the specified cluster ID does not exist in the current record. |
For a list of error codes, see Service error codes.