AlertSnapshot
Alert Snapshot 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 AlertSnapshot
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 create_alert_snapshot on AlertSnapshot
resource = session.zdx.AlertSnapshot()
result = resource.create_alert_snapshot(name="example-name", alert_id="resource-id")
print(result)
# Debug output shows HTTP request/response details
Actions
create_alert_snapshot()
Share a ZDX Snapshot of alert details for a given alert ID.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | - |
expiry | long | No | - |
obfuscation | ObfuscationEnumCollection | No | - |
alert_id | string | Yes | - |
Returns: Snapshot
Example:
resource = session.zdx.AlertSnapshot()
result = resource.create_alert_snapshot(name="example-name", alert_id="resource-id")
print(result)
create_user_snapshot()
Share a ZDX Snapshot of user details for a given user, device and application. The 'from' timestamp must not be older than 14 days from the current time, and the duration between 'from' and 'to' must be between 15 minutes and 48 hours.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | - |
expiry | long | No | - |
obfuscation | ObfuscationEnumCollection | No | - |
user_id | long | Yes | - |
device_id | long | Yes | - |
app_id | long | Yes | - |
from | long | No | - |
to | long | No | - |
Returns: Snapshot
Example:
resource = session.zdx.AlertSnapshot()
result = resource.create_user_snapshot(name="example-name", user_id=3600, device_id=3600, app_id=3600)
print(result)
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | - |
expiry | long | No | - |
obfuscation | ObfuscationEnumCollection | No | - |
alert_id | string | Yes | - |
Related
- AlertSnapshot - Data structure definition
- Logging guide - enable verbose logs while debugging this resource