Enables the intelligent O&M feature for an Elasticsearch cluster.


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 for different SDKs.

Request headers

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

Request syntax

POST /openapi/diagnosis/instances/{InstanceId}/actions/open-diagnosis HTTP/1.1

Request parameters

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

The ID of the instance.

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

The client token that is used to ensure the idempotence 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.

lang String Query No en

The supported request languages. The default language is the browser request language. Valid values:

  • En: english
  • zh: Simplified Chinese
  • zt: Traditional Chinese
  • es: Spanish
  • fr: french

Response parameters

Parameter Type Example Description
Result Boolean true

Indicates whether the intelligent O&M feature is enabled. Valid values:

  • true: The call was successful.
  • false: The call failed.
RequestId String 5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1****

The ID of the request.


Sample requests

POST /openapi/diagnosis/instances/es-cn-n6w1o1x0w001c****/actions/open-diagnosis?ClientToken=5A2CFF0E-5718-45B5-9D4D-70B3FF****&lang=en HTTP/1.1

Sample success responses

JSON format

HTTP/1.1 200 OK

  "Result" : true,
  "RequestId" : "37F0EC9E-B81A-43D9-B583-9D5A8DEC****"

Error code

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