Palo Alto Networks · JSON Structure

Pan Os Rest Api Service Structure

A service object defining a TCP or UDP protocol with destination port or port range.

Type: object Properties: 4
Cloud SecurityCybersecurityFirewallNetwork SecuritySASESOARThreat IntelligenceXDR

Service is a JSON Structure definition published by Palo Alto Networks, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

@name protocol description tag

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-structure/pan-os-rest-api-service-structure.json",
  "name": "Service",
  "description": "A service object defining a TCP or UDP protocol with destination port or port range.",
  "type": "object",
  "properties": {
    "@name": {
      "type": "string",
      "description": "Unique name of the service object."
    },
    "protocol": {
      "type": "object",
      "properties": {
        "tcp": {
          "type": "object",
          "properties": {
            "port": {
              "type": "string",
              "description": "TCP destination port or range (e.g., 80, 8080-8090)."
            },
            "source-port": {
              "type": "string",
              "description": "TCP source port or range."
            }
          }
        },
        "udp": {
          "type": "object",
          "properties": {
            "port": {
              "type": "string",
              "description": "UDP destination port or range (e.g., 53, 500-502)."
            },
            "source-port": {
              "type": "string",
              "description": "UDP source port or range."
            }
          }
        }
      }
    },
    "description": {
      "type": "string"
    },
    "tag": {
      "type": "object",
      "properties": {
        "member": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}