Modifies cluster parameters and applies them to specified nodes.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDBClusterAndNodesParameters |
The operation that you want to perform. Set the value to ModifyDBClusterAndNodesParameters. |
DBClusterId | String | Yes | pc-**************** |
The ID of the cluster. |
DBNodeIds | String | No | pi-****************,pi-**********, |
The ID of the node. You can set this parameter to modify the parameters of a specified node or of the cluster. Separate multiple node IDs with commas (,). Note If this parameter is empty, the cluster parameters are modified.
|
Parameters | String | No | {"wait_timeout":"86","innodb_old_blocks_time":"10"} |
The JSON string for the parameter and its value. |
ParameterGroupId | String | No | pcpg-************** |
The ID of the parameter template. |
PlannedStartTime | String | No | 2021-01-14T09:00:00Z |
The earliest time to upgrade the specifications within the scheduled time period.
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
|
FromTimeService | Boolean | No | false |
Specifies an immediate or scheduled task to modify parameters and restart the cluster. Default value: false. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 9B7BFB11-C077-4FE3-B051-F69CEB****** |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/?Action=ModifyDBClusterAndNodesParameters
&DBClusterId=pc-****************
&DBNodeIds=pi-****************,pi-**********,
&Parameters={"wait_timeout":"86","innodb_old_blocks_time":"10"}
&ParameterGroupId=pcpg-**************
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyDBClusterAndNodesParametersResponse>
<RequestId>9B7BFB11-C077-4FE3-B051-F69CEB******</RequestId>
</ModifyDBClusterAndNodesParametersResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "9B7BFB11-C077-4FE3-B051-F69CEB******"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameters.Format | Specified parameters is not valid. | The error message returned because a specified parameter is invalid. |
400 | InvalidDBType.Malformed | The Specified DBType is not valid. | The error message returned because the specified database type is invalid. |
400 | ParamCollationServerNotValid | This param collation_server is not valid. | The error message returned because the specified collation_server is invalid. |
400 | MinorVersionNotSupport | Custins minor version does not support current action. | The error message returned because the operation is not supported while the cluster is of the current minor version. Update the minor version to the latest. |
400 | ScheduleTaskExist | The specified dbCluster already has a scheduled task. | The error message returned because the specified instance already has a scheduled task. |
404 | InvalidDBCluster.NotFound | The specified DBClusterId is not found. | The error message returned because the specified cluster ID does not exist. |
404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The error message returned because the specified DBClusterId does not exist in the current record. |
For a list of error codes, visit the API Error Center.