Membuat cluster virtual.
Deskripsi operasi
Operasi ini hanya didukung untuk instance yang menggunakan penyimpanan zone-redundant. Kondisi berikut juga harus dipenuhi:
-
Versi engine minor instance adalah 4.0.7 atau yang lebih baru.
-
Cluster utama dan cadangan berada di zona yang berbeda.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
selectdb:CreateVirtualCluster |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instance. |
selectdb-cn-7213cjv**** |
| RegionId |
string |
Yes |
ID region. |
cn-hangzhou |
| ClusterName |
string |
Yes |
Nama cluster. Nama harus diawali dengan huruf dan memiliki panjang hingga 64 karakter. Nama dapat berisi huruf (tidak peka huruf besar/kecil), angka, dan garis bawah (_). Nama tidak boleh berisi dua atau lebih garis bawah berturut-turut. Nama cluster harus unik dalam instance. |
vcg_demo |
| ActiveClusterId |
string |
Yes |
ID cluster utama. |
selectdb-cn-7213cjv**** -be |
| StandbyClusterId |
string |
Yes |
ID cluster cadangan. |
selectdb-26a3cjv**** -be |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| RequestId |
string |
ID permintaan. |
5ED62C81-9948-5612-81E1-EA3853752306 |
| Data |
object |
Data yang dikembalikan. |
|
| DbInstanceId |
string |
ID instance. |
selectdb-cn-7213cjv**** |
| DbClusterId |
string |
ID cluster. |
selectdb-cn-7213cjv2ez-be |
Contoh
Respons sukses
JSONformat
{
"RequestId": "5ED62C81-9948-5612-81E1-EA3853752306",
"Data": {
"DbInstanceId": "selectdb-cn-7213cjv****",
"DbClusterId": "selectdb-cn-7213cjv2ez-be"
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. | |
| 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. | |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | |
| 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. | |
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.