Call the AddConnectableCluster to configure instance interconnection.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request header

This operation uses common request parameters only. For more information, see Common parameters.

Request syntax

POST /openapi/instances/[InstanceId]/connected-clusters HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
InstanceId String Yes es-cn-n6w1o1x0w001c****

The ID of the current instance.

clientToken String No 5A2CFF0E-5718-45B5-9D4D-70B3FF****

A unique token generated by the client to guarantee the idempotency of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.

RequestBody

The following parameters must be filled in the RequestBody to specify the remote instance ID that needs network interworking. It is required to be under the same VPC as the current instance.

Parameter

Type

Required

Example

Description

instanceId

String

Yes

es-cn-09k1rgid9000g****

The ID of the remote instance.

Example:


{
    "instanceId":"es-cn-09k1rgid9000g****"
}
            

Response parameters

Parameter Type Example Description
RequestId String 5A5D8E74-565C-43DC-B031-29289FA****

The ID of the request.

Result Boolean true

Return results:

  • true: configuration successful
  • false: configuration failed

Examples

Sample requests

POST /openapi/instances/es-cn-n6w1o1x0w001c****/connected-clusters HTTP/1.1
Common request parameters
{
    "instanceId":"es-cn-09k1rgid9000g****"
}

Sample success responses

JSON format

{
    "RequestId": "5A5D8E74-565C-43DC-B031-29289FA****",
    "Result": true
}

Error codes

For a list of error codes, visit the API Error Center.