仮想クラスターを作成します。
操作説明
この操作は、ゾーン冗長ストレージを使用するインスタンスでのみ利用可能です。次の条件を満たす必要があります:
-
インスタンスのマイナーエンジンバージョンが 4.0.7 以降であること。
-
プライマリクラスターとスタンバイクラスターが異なるゾーンにあること。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
selectdb:CreateVirtualCluster |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DBInstanceId |
string |
必須 |
インスタンス ID。 |
selectdb-cn-7213cjv**** |
| RegionId |
string |
必須 |
リージョン ID。 |
cn-hangzhou |
| ClusterName |
string |
必須 |
クラスターの名前。名前は英字で始まる必要があり、長さは 64 文字までです。英字 (大文字と小文字は区別されません)、数字、アンダースコア (_) を使用できます。2 つ以上連続するアンダースコアは使用できません。クラスター名は、同じインスタンス内で一意である必要があります。 |
vcg_demo |
| ActiveClusterId |
string |
必須 |
プライマリクラスターの ID。 |
selectdb-cn-7213cjv**** -be |
| StandbyClusterId |
string |
必須 |
スタンバイクラスターの ID。 |
selectdb-26a3cjv**** -be |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエスト ID。 |
5ED62C81-9948-5612-81E1-EA3853752306 |
| Data |
object |
返されるデータ。 |
|
| DbInstanceId |
string |
インスタンス ID。 |
selectdb-cn-7213cjv**** |
| DbClusterId |
string |
クラスター ID。 |
selectdb-cn-7213cjv2ez-be |
例
成功レスポンス
JSONJSON
{
"RequestId": "5ED62C81-9948-5612-81E1-EA3853752306",
"Data": {
"DbInstanceId": "selectdb-cn-7213cjv****",
"DbClusterId": "selectdb-cn-7213cjv2ez-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. | |
| 400 | InvalidDBName.Duplicate | Specified DB name already exists in the This instance. | |
| 400 | InvalidClusterName.Format | Specified ClusterName is not valid. It can not be empty string. | |
| 400 | MinorVersionNotSupport | The instance version does not support the current operation. | |
| 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 |
| 403 | OperationDenied.VirtualClusterBound | The operation is not permitted due to it has been bound to a virtual cluster. | |
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。