All Products
Search
Document Center

Hologres:BindLeaderInstance

Last Updated:Jun 10, 2026

Mengikat Instans pengikut ke Instans pemimpin.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

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 ListFollowerInstances operation.

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 :

    The operation succeeded.

  • false :

    The operation failed.

true

Success

boolean

Indicates whether the API request succeeded. This parameter is independent of the binding operation result.

Valid values:

  • true :

    The request succeeded.

  • false :

    The request failed.

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.