{ "$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-site-with-claims-schema.json", "title": "site_with_claims", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/palo-alto-networks-sites-api-openapi.yml#/components/schemas/site_with_claims", "type": "object", "properties": { "site": { "$ref": "#/$defs/site" }, "claims": { "type": "array", "items": { "$ref": "#/$defs/claim_with_resolved_history" } } }, "$defs": { "claim": { "type": "object", "required": [ "id", "tenant_id", "site_id", "serial_number", "device_role" ], "properties": { "id": { "type": "string", "format": "uuid" }, "tenant_id": { "type": "string" }, "site_id": { "type": "string", "format": "uuid" }, "serial_number": { "type": "string", "description": "Device serial number" }, "device_role": { "type": "string", "enum": [ "standalone", "primary", "secondary" ], "description": "Device role in HA configuration" }, "onboarding_rule_id": { "type": "string", "format": "uuid" }, "claimed_by": { "type": "string", "description": "User or service that claimed the device" }, "claimed_at": { "type": "string", "format": "date-time" } } }, "claim_with_resolved_history": { "type": "object", "properties": { "claim": { "$ref": "#/$defs/claim" }, "resolution_rule": { "$ref": "#/$defs/resolved_onboarding_rule" } } }, "resolution_rule": { "type": "object", "required": [ "expression" ], "properties": { "expression": { "type": "string", "description": "Expression to resolve the variable (can reference properties with ${property_name})" } } }, "resolved_onboarding_rule": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "tenant_id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "enabled": { "type": "boolean" }, "rule_type": { "type": "string" }, "site_group": { "type": "string" }, "match_criteria": { "type": "object", "additionalProperties": true }, "actions": { "type": "object", "additionalProperties": true }, "variables": { "type": "array", "items": { "$ref": "#/$defs/variable" }, "description": "Original variables with resolution expression" }, "resolved_variables": { "type": "array", "items": { "$ref": "#/$defs/resolved_variable" }, "description": "Variables resolved to their actual values" }, "resolution_errors": { "type": "array", "items": { "type": "string" }, "description": "Errors encountered during variable resolution" }, "generated_at": { "type": "string" } } }, "resolved_variable": { "type": "object", "required": [ "name", "type", "value" ], "properties": { "name": { "type": "string", "description": "Variable name" }, "type": { "type": "string", "description": "Variable type" }, "value": { "description": "Resolved value (type varies)" } } }, "site": { "type": "object", "required": [ "id", "tenant_id", "name", "site_group" ], "properties": { "id": { "type": "string", "format": "uuid", "description": "Site UUID" }, "tenant_id": { "type": "string", "description": "Tenant identifier" }, "name": { "type": "string", "description": "Site name (unique within tenant)", "maxLength": 255 }, "site_group": { "type": "string", "description": "Site group name" }, "address": { "type": "string", "description": "Physical address of the site. When a site is created with an address,\nthe system automatically fetches latitude/longitude coordinates in the\nbackground using Google Maps Geocoding API.\n" }, "latitude": { "type": [ "number", "null" ], "format": "double", "description": "Latitude coordinate. Automatically populated when site has an address.\nUsed for proximity filtering and distance calculations.\n", "minimum": -90, "maximum": 90 }, "longitude": { "type": [ "number", "null" ], "format": "double", "description": "Longitude coordinate. Automatically populated when site has an address.\nUsed for proximity filtering and distance calculations.\n", "minimum": -180, "maximum": 180 }, "property_values": { "type": "object", "additionalProperties": true, "description": "Key-value pairs of property names to values" }, "created_at": { "type": "string", "format": "date-time" }, "last_updated": { "type": "string", "format": "date-time" } } }, "variable": { "type": "object", "required": [ "name", "resolution_rule" ], "properties": { "name": { "type": "string", "description": "Variable name" }, "resolution_rule": { "$ref": "#/$defs/resolution_rule" } } } } }