Zscaler Digital Experience (ZDX) Tools¶
The Zscaler Digital Experience (ZDX) tools provide functionality for monitoring and analyzing digital experience metrics, applications, and user activities.
Available Tools¶
Tool Name |
Description |
|---|---|
|
Discover ZDX departments or locations |
|
Discover ZDX devices using various filters |
|
List all active applications configured in ZDX |
|
Get an application’s ZDX score or score trend |
|
Retrieve ZDX metrics for an application (PFT, DNS, availability) |
|
List users/devices for an app or details for a specific user |
|
List software inventory or users/devices for a software key |
|
List ongoing alerts, get alert details, or list affected devices |
|
List historical alert rules (ended alerts) |
|
Retrieve deep trace information for troubleshooting device connectivity issues |
Tool Categories¶
Category |
Tools |
|---|---|
Application Monitoring |
Application metrics, scores, user analysis |
Device Management |
Active device monitoring, administration |
Alert Management |
Historical and current alert management |
Software Inventory |
Software inventory tracking |
Deep Trace Analysis |
Network path analysis and troubleshooting |
Tool Details¶
zdx_list_applications¶
List all active applications configured in ZDX.
Parameters:
- param page:
Specifies the page offset
- type page:
Optional[int]
- param page_size:
Specifies the page size
- type page_size:
Optional[int]
- param search:
The search string used to partially match
- type search:
Optional[str]
- param service:
The service to use (default: “zdx”)
- type service:
str
Returns: - List of application dictionaries
Example: .. code-block:: python
applications = zdx_list_applications(page=1, page_size=50)
zdx_get_application_metric¶
Retrieve ZDX metrics for an application (PFT, DNS, availability).
Parameters:
- param app_id:
The application ID
- type app_id:
str
- param metric_type:
Type of metric to retrieve
- type metric_type:
str
- param service:
The service to use (default: “zdx”)
- type service:
str
Returns: - Dictionary with application metrics
Example: .. code-block:: python
metrics = zdx_get_application_metric(app_id=”12345”, metric_type=”pft”)
zdx_active_devices¶
Discover ZDX devices using various filters.
Parameters:
- param page:
Specifies the page offset
- type page:
Optional[int]
- param page_size:
Specifies the page size
- type page_size:
Optional[int]
- param search:
The search string used to partially match
- type search:
Optional[str]
- param service:
The service to use (default: “zdx”)
- type service:
str
Returns: - List of device dictionaries
Example: .. code-block:: python
devices = zdx_active_devices(page=1, page_size=100)
zdx_list_alerts¶
List ongoing alerts, get alert details, or list affected devices.
Parameters:
- param action:
The action to perform (e.g., “read”, “read_alert”, “read_affected_devices”)
- type action:
str
- param alert_id:
The ID of the alert for “read_alert” and “read_affected_devices” actions
- type alert_id:
str, optional
- param service:
The service to use (default: “zdx”)
- type service:
str
Returns: - Dictionary with alert information or list of alerts
Example: .. code-block:: python
alerts = zdx_list_alerts(action=”list”)
For complete documentation of all ZDX tools, see the individual tool pages.
Authentication¶
ZDX tools authenticate through OneAPI (OAuth2 client credentials). Required environment variables:
ZSCALER_CLIENT_ID
ZSCALER_CLIENT_SECRET
ZSCALER_VANITY_DOMAIN
ZSCALER_CLOUD
Common Use Cases¶
Performance Monitoring: Track application performance and user experience
Device Management: Monitor and manage endpoint devices
Alert Management: Respond to performance and security alerts
Troubleshooting: Analyze network paths and performance issues
Error Handling¶
All ZDX 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.