Skip to main content

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:

NameTypeRequiredDescription
namestringYes-
expirylongNo-
obfuscationObfuscationEnumCollectionNo-
alert_idstringYes-

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:

NameTypeRequiredDescription
namestringYes-
expirylongNo-
obfuscationObfuscationEnumCollectionNo-
user_idlongYes-
device_idlongYes-
app_idlongYes-
fromlongNo-
tolongNo-

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​

NameTypeRequiredDescription
namestringYes-
expirylongNo-
obfuscationObfuscationEnumCollectionNo-
alert_idstringYes-