{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-structure/ztna-connector-api-subnet-rule-structure.json",
  "name": "SubnetRule",
  "description": "SubnetRule schema from Palo Alto Networks ZTNA Connector API",
  "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": "datetime"
    }
  }
}
