It is time to say goodbye: This version of Elastic Cloud Enterprise has reached end-of-life (EOL) and is no longer supported.
The documentation for this version is no longer being maintained. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Search clusters
editSearch clusters
editDEPRECATED (Scheduled to be removed in the next major version): Retrieves the information for all of the instances that match the specified query.
Request
editPOST /api/v1/clusters/_search
Request body
edit(SearchRequest
) (Optional) The search query to run. When not specified, all of the clusters are matched.
Responses
edit-
200
-
(
ClustersInfo
) A list of clusters that matched the given search query. -
400
-
(
BasicFailedReply
) The search request failed. (code:search.invalid_request
)Headers
-
x-cloud-error-codes
(string
; allowed values: [search.invalid_request
]) - The error codes associated with the response
-
To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.
Request example
editcurl -XPOST https://{{hostname}}/api/v1/clusters/_search \ -H "Authorization: ApiKey $ECE_API_KEY" \ -d ' { "from" : 0, "query" : { "bool" : { "filter" : [ null ], "minimum_should_match" : 0, "must" : [ null ], "must_not" : [ null ], "should" : [ null ] }, "exists" : { "field" : "string" }, "match" : { "some_property" : { "analyzer" : "string", "minimum_should_match" : 0, "operator" : "string", "query" : "string" } }, "match_all" : {}, "match_none" : {}, "nested" : { "path" : "string", "query" : null, "score_mode" : "string" }, "prefix" : { "some_property" : { "boost" : 0.1, "value" : "string" } }, "query_string" : { "allow_leading_wildcard" : true, "analyzer" : "string", "default_field" : "string", "default_operator" : "string", "query" : "string" }, "range" : { "some_property" : { "boost" : 0.1, "format" : "string", "gt" : {}, "gte" : {}, "lt" : {}, "lte" : {}, "time_zone" : "string" } }, "term" : { "some_property" : { "value" : {} } } }, "size" : 0, "sort" : [ {} ] } '