Mengubah kluster virtual.
Deskripsi operasi
-
You can modify the primary cluster independently.
-
You can modify the standby cluster independently.
-
You can switch between the primary and standby clusters.
You cannot modify both the primary and standby clusters in the same operation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
selectdb:ModifyVirtualCluster |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. |
selectdb-cn-7213cjv**** |
| DBClusterId |
string |
Yes |
ID kluster virtual. |
selectdb-vcg-b****-be |
| RegionId |
string |
Yes |
ID wilayah. |
cn-hangzhou |
| ActiveClusterId |
string |
No |
ID kluster utama. |
selectdb-o2yg***-be |
| StandbyClusterId |
string |
No |
ID kluster standby. |
selectdb-pu6y****-be |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
06758CAB-1204-5852-A471-29C87D5C1D0F |
| Data |
object |
The returned data. |
|
| DbInstanceId |
string |
The instance ID. |
selectdb-cn-7213cjv**** |
| DbClusterId |
string |
The cluster ID. |
selectdb-vcg-b****-be |
Contoh
Respons sukses
JSONformat
{
"RequestId": "06758CAB-1204-5852-A471-29C87D5C1D0F",
"Data": {
"DbInstanceId": "selectdb-cn-7213cjv****",
"DbClusterId": "selectdb-vcg-b****-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. | |
| 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. | |
| 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.