仮想クラスターを変更します。
操作説明
-
プライマリクラスターを変更できます。
-
スタンバイクラスターを変更できます。
-
プライマリクラスターとスタンバイクラスターを切り替えることができます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
selectdb:ModifyVirtualCluster |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DBInstanceId |
string |
必須 |
インスタンス ID。 |
selectdb-cn-7213cjv**** |
| DBClusterId |
string |
必須 |
仮想クラスター ID。 |
selectdb-vcg-b****-be |
| RegionId |
string |
必須 |
リージョン ID。 |
cn-hangzhou |
| ActiveClusterId |
string |
任意 |
プライマリクラスター ID。 |
selectdb-o2yg***-be |
| StandbyClusterId |
string |
任意 |
スタンバイクラスター ID。 |
selectdb-pu6y****-be |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ |
||
| RequestId |
string |
リクエスト ID。 |
06758CAB-1204-5852-A471-29C87D5C1D0F |
| Data |
object |
返されるデータ。 |
|
| DbInstanceId |
string |
インスタンス ID。 |
selectdb-cn-7213cjv**** |
| DbClusterId |
string |
クラスター ID。 |
selectdb-vcg-b****-be |
例
成功レスポンス
JSONJSON
{
"RequestId": "06758CAB-1204-5852-A471-29C87D5C1D0F",
"Data": {
"DbInstanceId": "selectdb-cn-7213cjv****",
"DbClusterId": "selectdb-vcg-b****-be"
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | SystemError | A system error occurred while processing your request. | |
| 400 | ClusterNotSupport | Current instance cluster does not support this operation. | この操作は現在のクラスタステータスではサポートされていません。 |
| 400 | Forbidden | User not authorized to operate on the specified resource, or this API does not support RAM. | 日文说明1 |
| 400 | InvalidChargeType.NotSupport | The specified parameter "ChargeType" does not meet the requirements. | |
| 403 | DBClusterNotSupported | The requested operation can not be performed while the cluster is not sale. | 日文说明1 |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | 日文说明1 |
| 404 | DBInstanceLocked | The current instance lock mode does not support this operation. | 日文说明1 |
| 404 | InvalidApi.NotFound | Specified api is not found, please check your url and method. | |
| 404 | InvalidDBInstanceId.NotFound | The DBInstanceId provided does not exist in our records. | |
| 404 | InvalidParam | Invalid parameter, please check. | |
| 404 | InvalidClusterName.NotFound | The specified cluster name is not available. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。