Zscaler Private Access (ZPA) Tools¶
The Zscaler Private Access (ZPA) tools provide comprehensive functionality for managing private access policies, applications, and user access controls.
Available Tools¶
Tool Name |
Description |
|---|---|
|
CRUD handler for ZPA Access Policy Rules |
|
CRUD handler for ZPA App Connector Groups |
|
CRUD handler for ZPA Inspection Policy Rules |
|
Tool for listing and searching ZPA App Protection Profiles (Inspection Profiles) |
|
Tool to retrieve ZPA application segments by type |
|
CRUD handler for ZPA Application Segments |
|
Tool for managing ZPA Application Servers |
|
Tool for managing ZPA Browser Access (BA) Certificates |
|
Get-only tool for retrieving ZPA Enrollment Certificates |
|
CRUD handler for ZPA Client Forwarding Policy Rules |
|
CRUD handler for ZPA Isolation Policy Rules |
|
Tool for retrieving ZPA Cloud Browser Isolation (CBI) profiles |
|
Tool for retrieving ZPA Posture Profiles |
|
Tool for managing ZPA Privileged Remote Access (PRA) Credentials |
|
Tool for managing ZPA Privileged Remote Access (PRA) Portals |
|
Tool for managing ZPA Provisioning Keys |
|
Tool for querying ZPA SAML Attributes |
|
Tool for managing ZPA SCIM Attributes |
|
Tool for retrieving ZPA SCIM groups under a given Identity Provider (IdP) |
|
Tool for managing Segment Groups |
|
CRUD handler for ZPA Server Groups |
|
CRUD handler for ZPA Service Edge Groups |
|
CRUD handler for ZPA Timeout Policy Rules |
|
Tool for retrieving ZPA Trusted Networks |
Tool Categories¶
Category |
Tools |
|---|---|
Application Management |
Application segments, server groups, app connector groups |
User Management |
User groups, identity providers, SAML attributes |
Access Control |
Access policies, isolation profiles, provisioning keys |
Network Configuration |
Service edge groups, machine groups, segment groups |
Security Features |
Certificate management, SCIM integration |
Tool Details¶
zpa_application_segments¶
CRUD handler for ZPA Application Segments.
Parameters:
- param action:
The action to perform (e.g., “read”, “create”, “update”, “delete”)
- type action:
str
- param segment_id:
The ID of the segment for “read”, “update”, “delete” actions
- type segment_id:
str, optional
- param service:
The service to use (default: “zpa”)
- type service:
str
Returns: - Dictionary with segment information or list of segments
Example: .. code-block:: python
segments = zpa_application_segments(action=”list”)
zpa_server_groups¶
CRUD handler for ZPA Server Groups.
Parameters:
- param action:
The action to perform (e.g., “read”, “create”, “update”, “delete”)
- type action:
str
- param group_id:
The ID of the group for “read”, “update”, “delete” actions
- type group_id:
str, optional
- param service:
The service to use (default: “zpa”)
- type service:
str
Returns: - Dictionary with group information or list of groups
Example: .. code-block:: python
groups = zpa_server_groups(action=”list”)
zpa_access_policy¶
CRUD handler for ZPA Access Policy Rules.
Parameters:
- param action:
The action to perform (e.g., “read”, “create”, “update”, “delete”)
- type action:
str
- param policy_id:
The ID of the policy for “read”, “update”, “delete” actions
- type policy_id:
str, optional
- param service:
The service to use (default: “zpa”)
- type service:
str
Returns: - Dictionary with policy information or list of policies
Example: .. code-block:: python
policies = zpa_access_policy(action=”list”)
zpa_provisioning_key¶
Tool for managing ZPA Provisioning Keys.
Parameters:
- param action:
The action to perform (e.g., “read”, “create”, “update”, “delete”)
- type action:
str
- param key_id:
The ID of the key for “read”, “update”, “delete” actions
- type key_id:
str, optional
- param service:
The service to use (default: “zpa”)
- type service:
str
Returns: - Dictionary with key information or list of keys
Example: .. code-block:: python
keys = zpa_provisioning_key(action=”list”)
For complete documentation of all ZPA tools, see the individual tool pages.
Authentication¶
ZPA tools authenticate through OneAPI (OAuth2 client credentials). Required environment variables:
ZSCALER_CLIENT_ID
ZSCALER_CLIENT_SECRET
ZSCALER_VANITY_DOMAIN
ZSCALER_CLOUD
ZSCALER_CUSTOMER_ID
Common Use Cases¶
Application Access: Configure private access to applications
User Management: Manage user groups and identity providers
Network Security: Configure app connectors and service edges
Access Policies: Define who can access which applications
Error Handling¶
All ZPA tools include comprehensive error handling:
Authentication errors: Invalid credentials or expired tokens
Permission errors: Insufficient privileges for the requested operation
Validation errors: Invalid parameters or malformed requests
Rate limiting: Automatic retry with exponential backoff
For detailed error information, check the tool response for error messages and status codes.