临时变更配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
polardb:TempModifyDBNode |
update |
*DBCluster
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClientToken |
string |
否 |
该参数用于保证请求的幂等性。由客户端生成该参数值,保证在不同请求间该参数值的唯一性。该参数区分大小写、长度不超过 64 个 ASCII 字符。 |
6000170000591aed949d0f5******************** |
| DBClusterId |
string |
是 |
集群 ID。 |
pc-xxxxxxxxxx |
| OperationType |
string |
是 |
操作类型。取值:
|
Modify |
| ModifyType |
string |
是 |
变更类型。当前取值固定为 TempUpgrade。 |
TempUpgrade |
| DBNode |
array<object> |
是 |
升配/新增节点的信息。 |
|
|
object |
否 |
|||
| TargetClass |
string |
否 |
升配/新增节点的规格。 说明
|
polar.mysql.x4.medium |
| ZoneId |
string |
否 |
新增节点的可用区。需要与原有节点保持一致。 |
cn-hangzhou-i |
| RestoreTime |
string |
是 |
临时升配还原时间。格式为 YYYY-MM-DD hh:mm:ss。 说明
还原时间不能早于当前时间往后推 1 小时,不能晚于集群到期时间的前 1 天。 |
2021-09-23 18:16:00 |
| AutoUseCoupon |
boolean |
否 |
||
| PromotionCode |
string |
否 |
727xxxxxx934 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| DBClusterId |
string |
集群 ID。 |
pc-xxxxxxxxxxxxxxxxx |
| DBNodeIds |
array |
节点列表。 |
|
|
string |
节点列表。 说明
当 OperationType 取值为 Add 时,该参数返回值不为空;当 OperationType 取值为 Modify 时,该参数返回值为空。 |
pi-*************** |
|
| OrderId |
string |
订单 ID。 |
2035638******* |
| RequestId |
string |
请求 ID。 |
69A85BAF-1089-4CDF-A82F-0A140F****** |
示例
正常返回示例
JSON格式
{
"DBClusterId": "pc-xxxxxxxxxxxxxxxxx",
"DBNodeIds": [
"pi-***************"
],
"OrderId": "2035638*******",
"RequestId": "69A85BAF-1089-4CDF-A82F-0A140F******"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidDBType.Malformed | The Specified DBType is not valid. | 指定的数据库类型无效. |
| 400 | InvalidDBNodeNum.Malformed | The number of parameter DBNode.N is not valid. | 参数DBNode的数量无效 |
| 400 | InvalidDBNode.Malformed | The specified parameter DBNode.N is not valid. | 指定的参数DBNode.N无效。 |
| 400 | InvalidModifyType.Malformed | The specified parameter ModifyType is not valid. | 指定的参数ModifyType无效。 |
| 400 | InvalidZoneId.Malformed | The specified parameter ZoneId is not valid. | 指定的参数ZoneId无效。 |
| 400 | InvalidDBNodeClass.Malformed | The specified parameter DBNodeClass is not valid. | 指定的参数DBNodeClass无效。 |
| 403 | OperationDenied.TempAddNodeDuring | This operation is not allowed during the temporary add node of the cluster. | 临时添加节点期间不支持该操作。 |
| 404 | InvalidDBCluster.NotFound | The specified DBClusterId is not found. | 操作失败,指定的集群实例ID不存在。 |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | 指定的参数DBClusterId无效 |
| 404 | InvalidRestoreTimeExceedsExpirationTime.Malformed | The RestoreTime cannot be later than 1 day before the cluster ExpirationTime. | RestoreTime不能晚于集群ExpirationTime前1天。 |
| 404 | InvalidCurrentTimeExceedsRestoreTime.Malformed | The RestoreTime cannot be 1 hour later than the CurrentTime. | RestoreTime不能比CurrentTime晚1小时。 |
| 404 | InvalidRestoreTime.Malformed | The specified RestoreTime is not valid. | 指定的参数RestoreTime无效。 |
| 404 | InvalidOperationType.Malformed | The specified OperationType is not valid. | 指定的参数OperationType无效。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。