BindLeaderInstance
Associates a follower instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:BindLeaderInstance |
update |
*Instance
|
None | None |
Request syntax
POST /api/v1/instances/{instanceId}/bindReadOnly HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The instance ID. |
hgpostcn-cn-uqm3316l1004 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| body |
object |
No |
The request body. |
|
| leaderInstanceId |
string |
No |
The leader instance ID. The region ID, zone ID, and version of the follower instance must be the same as those of the leader instance. Select the leader instance ID from the list of instances returned by the ListFollowerInstances operation. |
hgpostcn-cn-uqm3316l1004 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
6FF2EDFD-3154-5C3E-8CFA-8F7E366BCF9D |
| Data |
boolean |
Indicates whether the association is successful. Valid values:
|
true |
| Success |
boolean |
Indicates whether the request is successful. This parameter 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": "6FF2EDFD-3154-5C3E-8CFA-8F7E366BCF9D",
"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.