session#

The following methods allow for interaction with the ZPA Session creation / deletion endpoints.

Methods are accessible via zpa.session

class AuthenticatedSessionAPI#
__init__(api)#
create_token(client_id, client_secret)#

Creates a ZPA authentication token.

Parameters:
  • client_id (str) – The ZPA API Client ID.

  • client_secret (str) – The ZPA API Client Secret Key.

Returns:

The authenticated session information.

Return type:

dict

Examples

>>> zpa.session.create_token(client_id='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==',
...    client_secret='yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy')