{
  "cluster.state": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-state",
      "description": "Get the cluster state"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_cluster/state",
          "methods": [
            "GET"
          ]
        },
        {
          "path": "/_cluster/state/{metric}",
          "methods": [
            "GET"
          ],
          "parts": {
            "metric": {
              "type": "list",
              "options": [
                "_all",
                "blocks",
                "customs",
                "metadata",
                "nodes",
                "routing_table",
                "routing_nodes",
                "master_node",
                "version"
              ],
              "description": "Limit the information returned to the specified metrics"
            }
          }
        },
        {
          "path": "/_cluster/state/{metric}/{index}",
          "methods": [
            "GET"
          ],
          "parts": {
            "index": {
              "type": "list",
              "description": "A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices"
            },
            "metric": {
              "type": "list",
              "options": [
                "_all",
                "blocks",
                "customs",
                "metadata",
                "nodes",
                "routing_table",
                "routing_nodes",
                "master_node",
                "version"
              ],
              "description": "Limit the information returned to the specified metrics"
            }
          }
        }
      ]
    },
    "params": {
      "local": {
        "deprecated": {
          "version": "9.0.0",
          "description": "This parameter has no effect, is now deprecated, and will be removed in a future version."
        },
        "type": "boolean",
        "default": false,
        "description": "Return local information, do not retrieve the state from master node (default: false)"
      },
      "master_timeout": {
        "type": "time",
        "default": "30s",
        "description": "Timeout for waiting for new cluster state in case it is blocked"
      },
      "flat_settings": {
        "type": "boolean",
        "default": false,
        "description": "Return settings in flat format (default: false)"
      },
      "wait_for_metadata_version": {
        "type": "long",
        "description": "Wait for the metadata version to be equal or greater than the specified metadata version"
      },
      "wait_for_timeout": {
        "type": "time",
        "description": "The maximum time to wait for wait_for_metadata_version before timing out"
      },
      "ignore_unavailable": {
        "type": "boolean",
        "default": false,
        "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
      },
      "allow_no_indices": {
        "type": "boolean",
        "default": true,
        "description": "Whether to allow (1) wildcard index expressions that match no indices and (2) requests where the final resolved set is empty."
      },
      "expand_wildcards": {
        "type": "list",
        "options": [
          "open",
          "closed",
          "hidden",
          "none",
          "all"
        ],
        "default": "open",
        "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
      }
    }
  }
}
