{
  "$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-fqdn-rule-structure.json",
  "name": "FQDNRule",
  "description": "FQDNRule schema from Palo Alto Networks ZTNA Connector API",
  "type": "object",
  "properties": {
    "rule_id": {
      "type": "string",
      "description": "Unique identifier of the FQDN rule."
    },
    "name": {
      "type": "string",
      "description": "Display name of the rule."
    },
    "fqdn_pattern": {
      "type": "string",
      "description": "FQDN pattern or wildcard (e.g., *.internal.example.com) that this rule matches."
    },
    "group_id": {
      "type": "string",
      "description": "Connector group used to resolve and access matching FQDNs."
    },
    "ports": {
      "type": "array",
      "description": "Ports covered by this rule.",
      "items": {
        "type": "int32"
      }
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether this rule is active."
    },
    "created_at": {
      "type": "datetime"
    }
  }
}
