Changes the node specifications of a PolarDB cluster.
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:ModifyDBNodeClass | WRITE |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | The ID of the cluster. | pc-************* |
ModifyType | string | Yes | The type of the configuration change. Valid values:
| Upgrade |
DBNodeTargetClass | string | Yes | The specifications of all nodes. For more information, see Specifications of computing nodes. | polar.mysql.x4.large |
ClientToken | string | No | 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 ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. The token is case-sensitive. | 6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
PlannedStartTime | string | No | The earliest time to upgrade the specifications within the scheduled time period. Specify the time in the Note
ModifyType is set to Upgrade .2021-01-14T09:00:00Z , you can specify a point in the time range from 2021-01-14T09:00:00Z to 2021-01-15T09:00:00Z . | 2021-01-14T09:00:00Z |
PlannedEndTime | string | No | The latest start time to run the task. Specify the time in the Note
PlannedStartTime parameter but do not specify a value for the PlannedEndTime parameter, the latest start time of the task is set to a value that is calculated by the value of the PlannedEndTime parameter + 30 minutes by default. For example, if you set the PlannedStartTime parameter to 2021-01-14T09:00:00Z and you do not specify the PlannedEndTime parameter, the latest start time of the task is set to 2021-01-14T09:30:00Z . | 2021-01-14T09:30:00Z |
SubCategory | string | No | The category of the cluster. Valid values:
| normal_general |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "685F028C-4FCD-407D-A559-072D63******",
"DBClusterId": "pc-*************",
"OrderId": "2035629******"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ORDER.ARREARAGE | You must settle the overdue payments for your account before you can make a purchase. | |
400 | InsufficientResourceCapacity | The resource is insufficient. | Insufficient resources. |
403 | OperationDenied.RoEqualSpec | must exist at least ro class equal with rw | The number of read-only nodes must be equal to or greater than that of primary nodes. |
403 | OperationDenied.DBClusterStatus | The operation is not permitted due to status of cluster. | The PolarDB cluster does not support this operation in the current state. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-09-13 | The error codes of the API operation change. | see changesets | ||||||||||
| ||||||||||||
2023-09-12 | The error codes of the API operation change.,The input parameters of the API operation change. | see changesets | ||||||||||
| ||||||||||||
2023-06-12 | The error codes of the API operation change. | see changesets | ||||||||||
|