{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ServiceConnection",
  "description": "ServiceConnection schema from Palo Alto Networks Prisma Access Configuration API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/prisma-access-api-service-connection-schema.json",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the service connection.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Name of the service connection."
    },
    "region": {
      "type": "string",
      "description": "Prisma Access compute region."
    },
    "ipsec_tunnel": {
      "type": "string",
      "description": "Name of the associated IPSec tunnel."
    },
    "subnets": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Internal subnets accessible through this connection."
    },
    "nat_pool": {
      "type": "string",
      "description": "NAT pool CIDR for source translation."
    },
    "qos_enabled": {
      "type": "boolean",
      "default": false,
      "description": "Whether QoS is enabled on this connection."
    },
    "folder": {
      "type": "string",
      "readOnly": true
    }
  },
  "required": [
    "name",
    "region",
    "ipsec_tunnel"
  ]
}
