{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/couchbase/main/json-schema/couchbase-pool-details-schema.json",
  "title": "PoolDetails",
  "description": "Detailed information about the default pool",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/couchbase-cluster-api-openapi.yml#/components/schemas/PoolDetails",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the pool"
    },
    "clusterName": {
      "type": "string",
      "description": "Human-readable cluster name"
    },
    "nodes": {
      "type": "array",
      "description": "List of nodes in the cluster",
      "items": {
        "$ref": "#/$defs/Node"
      }
    },
    "storageTotals": {
      "type": "object",
      "description": "Aggregate storage statistics",
      "properties": {
        "ram": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer",
              "description": "Total RAM in bytes"
            },
            "used": {
              "type": "integer",
              "description": "Used RAM in bytes"
            }
          }
        },
        "hdd": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer",
              "description": "Total disk space in bytes"
            },
            "used": {
              "type": "integer",
              "description": "Used disk space in bytes"
            }
          }
        }
      }
    },
    "rebalanceStatus": {
      "type": "string",
      "description": "Current rebalance status"
    }
  },
  "$defs": {
    "Node": {
      "type": "object",
      "description": "Information about a cluster node",
      "properties": {
        "hostname": {
          "type": "string",
          "description": "Node hostname and port"
        },
        "status": {
          "type": "string",
          "description": "Node status",
          "enum": [
            "healthy",
            "unhealthy",
            "warmup"
          ]
        },
        "clusterMembership": {
          "type": "string",
          "description": "Cluster membership status",
          "enum": [
            "active",
            "inactiveAdded",
            "inactiveFailed"
          ]
        },
        "services": {
          "type": "array",
          "description": "List of services running on the node",
          "items": {
            "type": "string",
            "enum": [
              "kv",
              "n1ql",
              "index",
              "fts",
              "cbas",
              "eventing",
              "backup"
            ]
          }
        },
        "os": {
          "type": "string",
          "description": "Operating system of the node"
        },
        "version": {
          "type": "string",
          "description": "Couchbase Server version on the node"
        },
        "memoryTotal": {
          "type": "integer",
          "description": "Total memory on the node in bytes"
        },
        "memoryFree": {
          "type": "integer",
          "description": "Free memory on the node in bytes"
        }
      }
    }
  }
}