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
| Name | Type | Required | Description |
|---|---|---|---|
microtenant_id | long | No | - |
customer_id | long | No | - |
microtenant_name | string | No | - |
customer_name | string | No | - |
Related
- CurrentSessionDetails - Data structure definition
- Logging guide - enable verbose logs while debugging this resource