{
  "$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-addresses-schema.json",
  "title": "addresses",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-addresses-api-openapi.yml#/components/schemas/addresses",
  "type": "object",
  "required": [
    "id",
    "name"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The UUID of the address object",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "The name of the address object",
      "maxLength": 63
    },
    "description": {
      "type": "string",
      "maxLength": 1023,
      "description": "The description of the address object"
    },
    "tag": {
      "type": "array",
      "description": "Tags assocaited with the address object",
      "maxItems": 64,
      "items": {
        "type": "string",
        "maxLength": 127
      }
    }
  },
  "anyOf": [
    {
      "title": "address_type",
      "description": "The address object type",
      "oneOf": [
        {
          "type": "object",
          "title": "ip_netmask",
          "properties": {
            "ip_netmask": {
              "type": "string",
              "description": "IP address with or without CIDR notation"
            }
          },
          "required": [
            "ip_netmask"
          ]
        },
        {
          "type": "object",
          "title": "ip_range",
          "properties": {
            "ip_range": {
              "type": "string"
            }
          },
          "required": [
            "ip_range"
          ]
        },
        {
          "type": "object",
          "title": "ip_wildcard",
          "properties": {
            "ip_wildcard": {
              "type": "string",
              "description": "IP wildcard mask"
            }
          },
          "required": [
            "ip_wildcard"
          ]
        },
        {
          "type": "object",
          "title": "fqdn",
          "properties": {
            "fqdn": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_]([a-zA-Z0-9._-])+[a-zA-Z0-9]$",
              "minLength": 1,
              "maxLength": 255,
              "description": "Fully qualified domain name"
            }
          },
          "required": [
            "fqdn"
          ]
        }
      ]
    },
    {
      "title": "container_type",
      "description": "The type of configuration container in which the address object is defined",
      "oneOf": [
        {
          "type": "object",
          "title": "folder",
          "properties": {
            "folder": {
              "type": "string",
              "pattern": "^[a-zA-Z\\d\\-_\\. ]+$",
              "maxLength": 64,
              "description": "The folder in which the resource is defined"
            }
          },
          "required": [
            "folder"
          ]
        },
        {
          "type": "object",
          "title": "snippet",
          "properties": {
            "snippet": {
              "type": "string",
              "pattern": "^[a-zA-Z\\d\\-_\\. ]+$",
              "maxLength": 64,
              "description": "The snippet in which the resource is defined"
            }
          },
          "required": [
            "snippet"
          ]
        },
        {
          "type": "object",
          "title": "device",
          "properties": {
            "device": {
              "type": "string",
              "pattern": "^[a-zA-Z\\d\\-_\\. ]+$",
              "maxLength": 64,
              "description": "The device in which the resource is defined"
            }
          },
          "required": [
            "device"
          ]
        }
      ]
    }
  ]
}