Modifies the parameters of a specified PolarDB cluster or applies existing parameter templates to a specified cluster.
Operation description
PolarDB supports the parameter template feature to centrally manage clusters. You can configure a number of parameters at a time by using a parameter template and apply the template to a PolarDB cluster. For more information, see Use a parameter template.
**
**Only PolarDB for MySQL clusters support parameter templates.
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:ModifyDBClusterParameters | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | The ID of the cluster. Note
You can call the DescribeDBClusters operation to query information about all clusters that are deployed in a specified region, such as the cluster ID.
| pc-************** |
Parameters | string | No | The JSON string that consists of parameters and values. The parameter values are strings, for example, Note
| {"wait_timeout":"86","innodb_old_blocks_time":"10"} |
ParameterGroupId | string | No | The ID of the parameter template. Note
| pcpg-************** |
PlannedStartTime | string | No | The earliest time to upgrade the specifications within the scheduled time period. Specify the time in the Note
| 2022-04-28T14:00:00Z |
PlannedEndTime | string | No | The latest start time to run the task. Specify the time in the Note
| 2022-04-28T14:30:00Z |
FromTimeService | boolean | No | Specifies an immediate or scheduled task to modify parameters and restart the cluster. Valid values:
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C5D526E5-91B5-48B8-B980-FE07FF******"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameters.Format | Specified parameters is not valid. | The specified parameters are invalid. |
400 | InvalidParameters.Format | The specified parameters are invalid. | The specified parameters are invalid. |
400 | MinorVersionNotSupport | Custins minor version does not support current action. | The current minor version does not support this feature. Please update to the latest version. |
400 | ParamDynamicException | Conflicting parameters: %s | Please check if there are any identical prompts for the instance kernel parameters and the current modified parameters: %s |
404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
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 | see changesets | ||||||||
| ||||||||||
2023-06-13 | The Error code has changed | see changesets | ||||||||
| ||||||||||
2023-06-13 | The Error code has changed | see changesets | ||||||||
| ||||||||||
2022-11-24 | The Error code has changed | see changesets | ||||||||
| ||||||||||
2021-03-08 | The Error code has changed | see changesets | ||||||||
| ||||||||||
2021-03-08 | The request parameters of the API has changed | see changesets | ||||||||
|