{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-ippool-request-schema.json",
  "title": "IPPoolRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-ip-pool-api-openapi.yml#/components/schemas/IPPoolRequest",
  "type": "object",
  "required": [
    "ipProvider"
  ],
  "properties": {
    "ipBlocks": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/IPBlockEntry"
      }
    },
    "ipProvider": {
      "$ref": "#/$defs/IPProvider"
    }
  },
  "$defs": {
    "IPBlockEntry": {
      "type": "object",
      "required": [
        "cidr"
      ],
      "properties": {
        "edgeLocation": {
          "type": "string"
        },
        "cidr": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "type": {
          "$ref": "#/$defs/IPBlockType"
        }
      }
    },
    "IPBlockType": {
      "type": "string",
      "enum": [
        "PRIMARY",
        "SECONDARY"
      ]
    },
    "IPProvider": {
      "type": "string",
      "enum": [
        "SP",
        "PANW"
      ]
    }
  }
}