{
  "$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-structure.json",
  "name": "ZTNAApplication",
  "description": "ZTNAApplication schema from Palo Alto Networks ZTNA Connector API",
  "type": "object",
  "properties": {
    "app_id": {
      "type": "string",
      "description": "Unique identifier of the ZTNA application."
    },
    "name": {
      "type": "string",
      "description": "Display name of the application."
    },
    "description": {
      "type": "string",
      "description": "Description of the application."
    },
    "group_id": {
      "type": "string",
      "description": "Connector group ID used to access this application."
    },
    "fqdn": {
      "type": "string",
      "description": "Fully qualified domain name of the private application."
    },
    "ports": {
      "type": "array",
      "description": "TCP/UDP ports accessible through ZTNA.",
      "items": {
        "type": "int32"
      }
    },
    "protocols": {
      "type": "array",
      "description": "Network protocols allowed for this application.",
      "items": {
        "type": "string",
        "enum": [
          "TCP",
          "UDP"
        ]
      }
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether ZTNA access for this application is enabled."
    },
    "created_at": {
      "type": "datetime"
    }
  }
}
