Link Search Menu Expand Document
  1. Zscaler ZPA IdP API
    1. Overview
    2. References
    3. Class Methods
    4. Getting information on a ZPA IdP
    5. Listing all ZPA IdPs

Zscaler ZPA IdP API

Overview

IdPs are used in ZPA to authenticate and authorise users.

At the time of publication there are no public API methods to create, modify or delete an IdP in ZPA. You’ll need to create IdPs in the UI before you can access that data via the API using pyZscaler.

References

Class Methods

The pyZscaler IdPs Class can be accessed via zpa.idp.

The following methods are supported by pyZscaler for ZPA IdPs:

Getting information on a ZPA IdP

This section details how you get information on an IdP in ZPA using pyZscaler.

Class Methods used

  • get_idp()

Prerequisites

You’ll need the id of the IdP that you want to get information on.

Example

Print information on an IdP with an id of xyz.

from pyzscaler.zpa import ZPA

with ZPA() as zpa:
    
    # Print information on an IdP with id 
    pprint(zpa.idp.get_idp(''))

Listing all ZPA IdPs

This section details how you can list all IdPs in ZPA using pyZscaler.

Class Methods used

  • list_idps()

Example

Iterate through all IdPs and print each IdP.

from pyzscaler.zpa import ZPA

with ZPA() as zpa:
    
    # Iterate IdPs and print each one
    for idp in zpa.idp.list_idps():
        pprint(idp)