Removes a secondary cluster from a global database network (GDN).
Operation description
You cannot remove the primary cluster from a GDN.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:RemoveDBClusterFromGDN |
delete |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the cluster in the GDN. Note
Call the DescribeGlobalDatabaseNetwork operation to view the cluster IDs in the GDN. |
pc-wz9fb5nn44u1d**** |
| GDNId |
string |
Yes |
The ID of the GDN. |
gdn-bp1fttxsrmv***** |
| Force |
boolean |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
67F2E75F-AE67-4FB2-821F-A81237EACD15 |
Examples
Success response
JSON format
{
"RequestId": "67F2E75F-AE67-4FB2-821F-A81237EACD15"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MemberRole.NotSupport | Specified member role is not support. | The specified member role is not supported. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | GDN.NotFound | Failed to found GdnInstance by name:%s | Failed to find cluster %s by GDN name. |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.