Detaches a read-only instance from its primary instance.
Try it now
Test
RAM authorization
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 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 |
The response schema. |
||
| RequestId |
string |
The ID of the request. |
288D934D-3F25-5BA6-9B50-7ABB3017A134 |
| Data |
boolean |
Whether the instance was successfully detached. Valid values:
|
true |
| Success |
boolean |
Indicates whether the API call was successful. This does not indicate the outcome of the detach operation. 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.