Modifies the parameters of a node and applies them to specified nodes.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDBNodesParameters | The operation that you want to perform. Set the value to ModifyDBNodesParameters. |
DBClusterId | String | Yes | pc-************** | The IDs of the clusters. |
DBNodeIds | String | Yes | pi-****************, pi-**************** | The ID of the node. You can specify multiple node IDs. Separate multiple node IDs with commas (,). |
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 | 2022-04-28T14:00:00Z | The earliest start time to run the task to modify the parameters of a node and apply them to specified nodes. The task runs within a specified period of time. Specify the time in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC. |
PlannedEndTime | String | No | 2022-04-28T14:30:00Z | The latest start time to run the task. Specify the time in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC. |
FromTimeService | Boolean | No | false | Specifies whether to immediately run the task. Valid values: false and true. Default value: false. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | EBEAA83D-1734-42E3-85E3-E25F6E****** | The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/?Action=ModifyDBNodesParameters
&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
<ModifyDBNodesParametersResponse>
<RequestId>EBEAA83D-1734-42E3-85E3-E25F6E******</RequestId>
</ModifyDBNodesParametersResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "EBEAA83D-1734-42E3-85E3-E25F6E******"
}
Error codes
HTTP status code | 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. |
404 | InvalidDBCluster.NotFound | The specified DBClusterId is not found. | The error message returned because the specified cluster ID does not exist. |
For a list of error codes, see Service error codes.