Elastic · Schema

cat.allocation.AllocationRecord

SearchAnalyticsObservabilitySecurityVisualizationCloudMonitoring

Properties

Name Type Description
shards string Number of primary and replica shards assigned to the node.
shards.undesired object Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is used
write_load.forecast object Sum of index write load forecasts
disk.indices.forecast object Sum of shard size forecasts
disk.indices object Disk space used by the node’s shards. Does not include disk space for the translog or unassigned shards. IMPORTANT: This metric double-counts disk space for hard-linked files, such as those created wh
disk.used object Total disk space in use. Elasticsearch retrieves this metric from the node’s operating system (OS). The metric includes disk space for: Elasticsearch, including the translog and unassigned shards; the
disk.avail object Free disk space available to Elasticsearch. Elasticsearch retrieves this metric from the node’s operating system. Disk-based shard allocation uses this metric to assign shards to nodes based on availa
disk.total object Total disk space for the node, including in-use and available space.
disk.percent object Total percentage of disk space in use. Calculated as `disk.used / disk.total`.
host object Network host for the node. Set using the `network.host` setting.
ip object IP address and port for the node.
node string Name for the node. Set using the `node.name` setting.
node.role object Node roles
View JSON Schema on GitHub

JSON Schema

elastic-cat-allocation-allocation-record-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-cat-allocation-allocation-record-schema.json",
  "title": "cat.allocation.AllocationRecord",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-cat-api-openapi.yml#/components/schemas/cat.allocation.AllocationRecord",
  "type": "object",
  "properties": {
    "shards": {
      "description": "Number of primary and replica shards assigned to the node.",
      "type": "string"
    },
    "shards.undesired": {
      "description": "Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is used",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "write_load.forecast": {
      "description": "Sum of index write load forecasts",
      "oneOf": [
        {
          "$ref": "#/$defs/_spec_utils.Stringifieddouble"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "disk.indices.forecast": {
      "description": "Sum of shard size forecasts",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.ByteSize"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "disk.indices": {
      "description": "Disk space used by the node’s shards. Does not include disk space for the translog or unassigned shards.\nIMPORTANT: This metric double-counts disk space for hard-linked files, such as those created when shrinking, splitting, or cloning an index.",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.ByteSize"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "disk.used": {
      "description": "Total disk space in use.\nElasticsearch retrieves this metric from the node’s operating system (OS).\nThe metric includes disk space for: Elasticsearch, including the translog and unassigned shards; the node’s operating system; any other applications or files on the node.\nUnlike `disk.indices`, this metric does not double-count disk space for hard-linked files.",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.ByteSize"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "disk.avail": {
      "description": "Free disk space available to Elasticsearch.\nElasticsearch retrieves this metric from the node’s operating system.\nDisk-based shard allocation uses this metric to assign shards to nodes based on available disk space.",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.ByteSize"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "disk.total": {
      "description": "Total disk space for the node, including in-use and available space.",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.ByteSize"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "disk.percent": {
      "description": "Total percentage of disk space in use. Calculated as `disk.used / disk.total`.",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.Percentage"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "host": {
      "description": "Network host for the node. Set using the `network.host` setting.",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.Host"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "ip": {
      "description": "IP address and port for the node.",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.Ip"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "node": {
      "description": "Name for the node. Set using the `node.name` setting.",
      "type": "string"
    },
    "node.role": {
      "description": "Node roles",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    }
  },
  "$defs": {
    "_spec_utils.Stringifieddouble": {
      "description": "Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior\nis used to capture this behavior while keeping the semantics of the field type.\n\nDepending on the target language, code generators can keep the union or remove it and leniently parse\nstrings to the target type.",
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ]
    },
    "_types.ByteSize": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ]
    },
    "_types.Host": {
      "type": "string"
    },
    "_types.Ip": {
      "type": "string"
    },
    "_types.Percentage": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/elastic-cat-allocation-allocation-record"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.