UnBindLeaderInstance
Dissociates a primary instance from a secondary instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:UnBindLeaderInstance |
update |
*Instance
|
None | None |
Request syntax
POST /api/v1/instances/{instanceId}/unBindReadOnly HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The ID of the read-only secondary instance. |
hgpostcn-cn-7212z8edx001 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
288D934D-3F25-5BA6-9B50-7ABB3017A134 |
| Data |
boolean |
Indicates whether the dissociation was successful. Valid values:
|
true |
| Success |
boolean |
Indicates whether the request is successful. This is independent of the business result. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
404 |
| ErrorMessage |
string |
The error message. |
Internal server error. |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"RequestId": "288D934D-3F25-5BA6-9B50-7ABB3017A134",
"Data": true,
"Success": true,
"ErrorCode": "404",
"ErrorMessage": "Internal server error.",
"HttpStatusCode": "200"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.