臨時變更配置。
調試
您可以在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無效。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。