AuthCredentials
Auth Credentials resource for Internet Access.
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 AuthCredentials
logging.getLogger('zssdk.zia').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_authenticated_session on AuthCredentials
resource = session.zia.AuthCredentials()
result = resource.create_authenticated_session()
print(result)
# Debug output shows HTTP request/response details
Actions
create_authenticated_session()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
include_display_preferences | boolean | No | - |
api_key | string | No | - |
password | string | No | - |
provider_name | string | No | - |
saml_response | string | No | - |
timestamp | string | No | - |
username | string | No | - |
Returns: MobileSessionInfo
Example:
resource = session.zia.AuthCredentials()
result = resource.create_authenticated_session()
print(result)
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
api_key | string | No | - |
password | string | No | - |
provider_name | string | No | - |
saml_response | string | No | - |
timestamp | string | No | - |
username | string | No | - |
Related
- AuthCredentials - Data structure definition
- Logging guide - enable verbose logs while debugging this resource