AppDetail
App Detail resource for Zscaler Digital Experience.
Resource operations
This resource does not support standard CRUDL methods. Each action listed below is a custom action that takes explicit keyword arguments and returns a value.
Quick Start
import zssdk
import logging
# Enable debug logging for AppDetail
logging.getLogger('zssdk.zdx').setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)
session = zssdk.Session(
vanity_domain="your-vanity-domain",
client_id="your-client-id",
client_secret="your-client-secret",
)
# Call get_application on AppDetail
resource = session.zdx.AppDetail()
result = resource.get_application(id=3600)
print(result)
# Debug output shows HTTP request/response details
Actions
get_application()
Gets the application’s ZDX score (for the last 2 hours), most impacted locations, and the total number of users impacted.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | long | Yes | - |
from | long | No | - |
to | long | No | - |
loc | long | No | - |
dept | long | No | - |
geo | string | No | - |
Returns: Application
Example:
resource = session.zdx.AppDetail()
result = resource.get_application(id=3600)
print(result)
get_app_score()
Gets the application’s ZDX score trend. If the time range is not specified, the endpoint defaults to the last 2 hours.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | long | Yes | - |
from | long | No | - |
to | long | No | - |
loc | long | No | - |
dept | long | No | - |
geo | string | No | - |
Returns: Series
Example:
resource = session.zdx.AppDetail()
result = resource.get_app_score(id=3600)
print(result)
get_app_user()
Gets user details including the device information, active geolocations, and Zscaler locations. If the time range is not specified, the endpoint defaults to the last 2 hours.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | long | Yes | - |
userid | string | Yes | - |
from | long | No | - |
to | long | No | - |
Returns: UserDetail
Example:
resource = session.zdx.AppDetail()
result = resource.get_app_user(id=3600, userid="resource-id")
print(result)
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
id | long | No | - |
name | string | No | - |
score | integer | No | - |
most_impacted_region | UserLocation | No | - |
total_users | long | No | - |
application_stats | ApplicationStats | No | - |
Related
- AppDetail - Data structure definition
- Logging guide - enable verbose logs while debugging this resource