How to query current cluster shard allocation setting

I may be doing something stupid. I'm sure I've queried under older versions but can't seem to query through the API or console to determine current cluster shard allocation setting - is anybody able to assist please?

I can enable and disable with a PUT but if I try the console with the following: -
GET _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable"
}
}

I get error: -
{
"error": "Incorrect HTTP method for uri [/_cluster/settings?pretty] and method [POST], allowed: [PUT, GET]",
"status": 405
}

You can't run:

GET _cluster/settings
{
 "persistent": {
  "cluster.routing.allocation.enable"
 }
}

You can run:

GET _cluster/settings

What is happening behind the scene of the Dev Console is that anytime you are providing a body with the GET http verb, the verb is transformed to POST.
Because browsers don't really support GET with body.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.