{
  "$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-ztna-application-request-structure.json",
  "name": "ZTNAApplicationRequest",
  "description": "ZTNAApplicationRequest schema from Palo Alto Networks ZTNA Connector API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Display name for the ZTNA application."
    },
    "description": {
      "type": "string",
      "description": "Optional description of the application."
    },
    "group_id": {
      "type": "string",
      "description": "Connector group ID to use for accessing the application."
    },
    "fqdn": {
      "type": "string",
      "description": "Fully qualified domain name of the private application."
    },
    "ports": {
      "type": "array",
      "description": "TCP/UDP ports to expose through ZTNA.",
      "items": {
        "type": "int32"
      }
    },
    "protocols": {
      "type": "array",
      "description": "Network protocols to allow.",
      "items": {
        "type": "string",
        "enum": [
          "TCP",
          "UDP"
        ]
      }
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether to enable ZTNA access immediately after creation.",
      "default": true
    }
  },
  "required": [
    "name",
    "group_id",
    "fqdn"
  ]
}
