Proxies HTTP POST request to the cluster
editProxies HTTP POST request to the cluster
editThis endpoint is deprecated and scheduled to be removed in the next major version. Use proxy POST
request to resource instead.
Proxies HTTP POST request to the cluster. Requires that HTTP header X-Management-Request be specified. This endpoint is for management use and does not provide high performance.
Request
editPOST /api/v1/clusters/elasticsearch/{cluster_id}/proxy/{elasticsearch_path}
Path parameters
editName | Type | Required | Description |
---|---|---|---|
|
|
Y |
Identifier for the Elasticsearch cluster |
|
|
Y |
The URL part to proxy to the Elasticsearch cluster. Example: _search or _cat/indices?v&h=i,tm&s=tm:desc |
Headers
editName | Type | Required | Description |
---|---|---|---|
|
|
Y |
X-Management-Request header value. Needs to be set to true |
Request body
edit(string
) The JSON payload to proxy to the Elasticsearch cluster
Responses
edit-
200
-
The request has been processed successfully through the proxy
-
404
-
The cluster specified by {cluster_id} cannot be found (code: 'clusters.cluster_not_found')
Request example
editcurl -XPOST https://{{hostname}}/api/v1/clusters/elasticsearch/{cluster_id}/proxy/{elasticsearch_path} \ -H "Authorization: ApiKey $ECE_API_KEY" \ -H X-Management-Request: string