Queries the indexes for health diagnosis performed on an Elasticsearch cluster.
Debugging
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:
|
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.