{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ZTNAApplicationRequest",
  "description": "ZTNAApplicationRequest 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-ztna-application-request-schema.json",
  "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",
      "items": {
        "type": "integer"
      },
      "description": "TCP/UDP ports to expose through ZTNA."
    },
    "protocols": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "TCP",
          "UDP"
        ]
      },
      "description": "Network protocols to allow."
    },
    "enabled": {
      "type": "boolean",
      "default": true,
      "description": "Whether to enable ZTNA access immediately after creation."
    }
  },
  "required": [
    "name",
    "group_id",
    "fqdn"
  ]
}
