Skip to main content

CurrentSessionDetails

Current Session Details resource for Zscaler Private Access V1.

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 CurrentSessionDetails
logging.getLogger('zssdk.zpa').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_current_session_details on CurrentSessionDetails
resource = session.zpa.CurrentSessionDetails()
result = resource.get_current_session_details()
print(result)

# Debug output shows HTTP request/response details

Actions​

get_current_session_details()​

Returns: CurrentSessionDetails

Example:

resource = session.zpa.CurrentSessionDetails()
result = resource.get_current_session_details()
print(result)

Attributes​

NameTypeRequiredDescription
microtenant_idlongNo-
customer_idlongNo-
microtenant_namestringNo-
customer_namestringNo-