{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-networking-services/json-schema/azure-networking-services-pool-usage-schema.json",
  "title": "PoolUsage",
  "description": "IpamPool usage information.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-networking-services-ipampools-api-openapi.yml#/components/schemas/PoolUsage",
  "type": "object",
  "properties": {
    "addressPrefixes": {
      "type": "array",
      "description": "List of IP address prefixes of the resource.",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "childPools": {
      "type": "array",
      "description": "List of IpamPool that are children of this IpamPool.",
      "items": {
        "$ref": "#/$defs/ResourceBasics"
      },
      "readOnly": true,
      "x-ms-identifiers": [
        "resourceId"
      ]
    },
    "allocatedAddressPrefixes": {
      "type": "array",
      "description": "List of assigned IP address prefixes.",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "reservedAddressPrefixes": {
      "type": "array",
      "description": "List of reserved IP address prefixes. These IP addresses could be reclaimed if not assigned in the given time.",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "availableAddressPrefixes": {
      "type": "array",
      "description": "List of available IP address prefixes.",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "totalNumberOfIPAddresses": {
      "type": "string",
      "description": "Total number of IP addresses managed in the IpamPool.",
      "readOnly": true
    },
    "numberOfAllocatedIPAddresses": {
      "type": "string",
      "description": "Total number of assigned IP addresses in the IpamPool.",
      "readOnly": true
    },
    "numberOfReservedIPAddresses": {
      "type": "string",
      "description": "Total number of reserved IP addresses in the IpamPool.",
      "readOnly": true
    },
    "numberOfAvailableIPAddresses": {
      "type": "string",
      "description": "Total number of available IP addresses in the IpamPool.",
      "readOnly": true
    }
  },
  "$defs": {
    "ResourceBasics": {
      "type": "object",
      "description": "Representation of basic resource information.",
      "properties": {
        "resourceId": {
          "type": "string",
          "format": "arm-id",
          "description": "ResourceId of the Azure resource."
        },
        "addressPrefixes": {
          "type": "array",
          "description": "List of IP address prefixes of the resource.",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}