{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SubnetRule",
  "description": "SubnetRule schema from Palo Alto Networks ZTNA Connector API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/ztna-connector-api-subnet-rule-schema.json",
  "type": "object",
  "properties": {
    "rule_id": {
      "type": "string",
      "description": "Unique identifier of the subnet rule."
    },
    "name": {
      "type": "string",
      "description": "Display name of the rule."
    },
    "subnet": {
      "type": "string",
      "description": "CIDR notation subnet this rule covers (e.g., 10.0.0.0/8)."
    },
    "group_id": {
      "type": "string",
      "description": "Connector group used to route traffic to this subnet."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether this rule is active."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
