Mengikat Instans pengikut ke Instans pemimpin.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST /api/v1/instances/{instanceId}/bindReadOnly HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
ID Instans pengikut. |
hgpostcn-cn-uqm3316l1004 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID Wilayah. |
cn-hangzhou |
| body |
object |
No |
Badan permintaan. |
|
| leaderInstanceId |
string |
No |
The ID of the leader instance. The follower and leader instances must be in the same region and zone, and have the same version. Obtain this ID by calling the |
hgpostcn-cn-uqm3316l1004 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The ID of the request. |
6FF2EDFD-3154-5C3E-8CFA-8F7E366BCF9D |
| Data |
boolean |
Indicates whether the operation succeeded. Valid values:
|
true |
| Success |
boolean |
Indicates whether the API request succeeded. This parameter is independent of the binding operation result. Valid values:
|
true |
| ErrorCode |
string |
The error code for a failed request. |
404 |
| ErrorMessage |
string |
The error message for a failed request. |
Internal server error. |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6FF2EDFD-3154-5C3E-8CFA-8F7E366BCF9D",
"Data": true,
"Success": true,
"ErrorCode": "404",
"ErrorMessage": "Internal server error.",
"HttpStatusCode": "200"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.