You can call this operation to check whether the data on the specified nodes can be migrated.

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 only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

POST /openapi/instances/[InstanceId]/validate-transfer-nodes HTTP/1.1

Request parameters

Parameter Type Required Example Description
InstanceId String Yes es-cn-xxx

The ID of the Elasticsearch instance.

nodeType String Yes WORKER

The type of nodes. Valid values: WORKER(hot nodes) and WORKER_WARM(warm nodes).

You must specify request body parameters. For more information, see Sample requests.

Response parameters

Parameter Type Example Description
RequestId String F99407AB-2FA9-489E-A259-40CF6DCC****

The ID of the request.

Result Boolean true

If you can remove the specified nodes, value true is returned.

Examples

Sample requests

POST /openapi/instances/[InstanceId]/validate-transfer-nodes HTTP/1.1
Common request header
{
  "InstanceId": "es-cn-xxx"
  "nodeType": "WORKER"
}

Request body

 Sample request body:
[
	{
		"host": "192.168. **.**",
		"port": 9300
	},
	{
		"host": "192.168. **.**",
		"port": 9300
	}
]

Sample success responses

XML format

<Result>true</Result>
<RequestId>3760F67B-691D-4663-B4E5-6783554F****</RequestId>

JSON format

{
	"Result":true,
	"RequestId":"3760F67B-691D-4663-B4E5-6783554F****"
}

Sample response description

The sample responses may contain parameters that are not described in the preceding table. These parameters are only for reference. You must make sure that your application is not strongly reliant on these parameters.

Error codes

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