createOrgService
Create an organization service definition with the match criteria used by gateway and SSR policies, such as applications, URLs, hostnames, subnets, or custom protocol and port rules.
Services can be user in the service policies to allow or deny traffic matching the service or to apply specific inspection settings or steering rules.
Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.
Format:
Authorization: Token {apitoken}
Notes:
- An API token generated for a specific admin has the same privileges as that admin
- An API token is automatically removed if it is not used for more than 90 days
- SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.
In: header
Path Parameters
uuidRequest Body
application/json
Traffic service definition for applications or destinations used by gateway and SSR policies
Custom IPv4 or IPv6 subnets matched by this service when type==custom
Categories of applications matched by this service when type==app_categories
Application subcategories matched by this service when type==app_categories
Application identifiers matched by this service when type==apps
0 means unlimited, value from 0 to 107374182
0 <= value <= 10737418200 means unlimited, value from 0 to 107374182
0 <= value <= 1073741820Free-form description of the service definition
QoS DSCP value used for custom SSR traffic classification
Failover behavior for traffic matched by this service. enum: non_revertible, none, revertible.
"revertible"Value in
- "non_revertible"
- "none"
- "revertible"
Domain hostnames matched by this custom service for web filtering
Maximum jitter threshold used for SSR uplink selection when traffic_type==custom
Maximum latency threshold used for SSR uplink selection when traffic_type==custom
Maximum packet loss threshold used for SSR uplink selection when traffic_type==custom
Display name of the service definition
0 means unlimited, value from 0 to 107374182
0 <= value <= 10737418200 means unlimited, value from 0 to 107374182
0 <= value <= 1073741820Whether to enable measure SLE
falseProtocol and port match rules used when type==custom
Whether SSR relaxes TCP state enforcement for this service
falseTraffic class applied when traffic_type==custom. enum: best_effort, high, low, medium.
"best_effort"Value in
- "best_effort"
- "high"
- "low"
- "medium"
values from List Traffic Types
"data_best_effort"Matching mode that determines which app, URL, or custom fields are used. enum: app_categories, apps, custom, urls.
"custom"Value in
- "app_categories"
- "apps"
- "custom"
- "urls"
URL patterns matched by this service when type==urls
Response Body
curl -X POST "https://example.com/api/v1/orgs/000000ab-00ab-00ab-00ab-0000000000ab/services" \ -H "Content-Type: application/json" \ -d '{ "addresses": [ "0.0.0.0/0" ], "app_key": "string", "name": "string", "network_id": "d6797cf4-42b9-4cad-8591-9dd91c3f0fc3", "specs": [ { "port_range": "8080,8443", "protocol": "any" } ], "subnet": "string", "type": "custom" }'{ "addresses": [ "string" ], "app_categories": [ "string" ], "apps": [ "string" ], "created_time": 0, "dscp": 0, "failover_policy": "revertible", "hostnames": [ "string" ], "id": "497f6eca-6276-5004-bfeb-53cbbbba6f16", "max_jitter": 0, "max_latency": 0, "max_loss": 0, "modified_time": 0, "name": "string", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "sle_enabled": false, "specs": [ { "port_range": "0", "protocol": "any" } ], "traffic_class": "best_effort", "traffic_type": "data_best_effort", "type": "custom", "vpn_name": "addresses"}listOrgServices GET
List organization service definitions. Services describe applications, application categories, URLs, hostnames, subnets, or custom protocol and port match criteria used by gateway and SSR policies.
getOrgService GET
Return an organization service definition, including its matching mode, match values, traffic classification, and optional SSR path-selection thresholds.