All Products
Search
Document Center

Elasticsearch:ListDiagnoseIndices

更新時間:Sep 21, 2023

Queries the indexes for health diagnosis performed on an Elasticsearch cluster.

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 headers

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

Request syntax

GET /openapi/diagnosis/instances/{InstanceId}/indices HTTP/1.1

Request parameters

Element

Type

Position

Required

Example

Description

InstanceId String Path Yes es-cn-n6w1o1x0w001c****

The instance ID.

lang String Query No en

The language configuration. The default is the browser language. Multiple languages are supported:

  • en: English
  • zh: simplified Chinese
  • zt: traditional Chinese
  • es: Spanish
  • fr: French

Response parameters

Element

Type

Example

Description

RequestId String F05ED12E-140A-4ACB-B059-3A508A69F2E1

The request ID.

Result Array of String ["my_index_aliws", "aliyun-index-test","filebeat-6.7.0-2020.11.15", "filebeat-6.7.0-2020.12.27"]

The list of diagnostic indexes.

Examples

Sample requests

GET /openapi/diagnosis/instances/es-cn-n6w1o1x0w001c****/indices HTTP/1.1
Common request parameters

Sample success responses

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Result" : [ "my_index_aliws", "aliyun-index-test", "filebeat-6.7.0-2020.11.15", "filebeat-6.7.0-2020.12.27" ],
  "RequestId" : "F05ED12E-140A-4ACB-B059-3A508A69F2E1"
}

Error code

For a list of error codes, see Service error codes.