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
- pyZscaler - Library Reference for IdPs
- Zscaler - ZPA IdPs API Reference
- Zscaler - ZPA IdPs Documentation
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)