Skip to main content

Idp

Idp resource for Zscaler Private Access.

Resource operations

This resource supports the following standard methods: load(). They operate on the instance state — set properties with dot notation, then call the method with no arguments. Any other 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 Idp
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",
)

# Get a specific Idp
resource = session.zpa.Idp(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

load()​

Fetches an existing Idp by id. Only the id identifier is required; load() takes no other arguments.

Returns: Idp

Example:

resource = session.zpa.Idp(id="your-resource-id")
resource.load()
print(resource.name)

get_scim_attribute()​

Parameters:

NameTypeRequiredDescription
customer_idlongYes-
scim_attribute_idlongYes-

Returns: SCIMAttributeHeader

Example:

resource = session.zpa.Idp(id="your-resource-id")
result = resource.get_scim_attribute(customer_id=3600, scim_attribute_id=3600)
print(result)

Attributes​

NameTypeRequiredDescription
idlongNo-
modified_timeintegerNo-
creation_timeintegerNo-
modified_bylongNo-
namestringYes-
certificatesIdpCertCollectionNo-
login_urlstringNo-
idp_entity_idstringNo-
migration_detailstringNo-
descriptionstringNo-
auto_provisionintegerNo-
sign_saml_requestintegerNo-
login_name_attributestringNo-
sso_typestringCollectionNo-
domain_liststringCollectionNo-
use_custom_SP_metadatabooleanNo-
scim_enabledbooleanNo-
scim_shared_secretstringNo-
enable_scim_based_policybooleanNo-
disable_saml_based_policybooleanNo-
reauth_on_user_updatebooleanNo-
user_sp_signing_cert_idlongNo-
admin_sp_signing_cert_idlongNo-
enable_arbitrary_auth_domainsintegerNo-
iam_idp_idstringNo-
user_metadataServiceProviderNo-
admin_metadataServiceProviderNo-
one_identity_enabledbooleanNo-
scim_service_provider_endpointstringNo-
scim_shared_secret_existsbooleanNo-
force_authbooleanNo-
login_hintbooleanNo-
enabledbooleanNo-
deltastringNo-
redirect_bindingbooleanNo-
name_without_trimstringNo-
encrypt_saml_responsebooleanNo-
  • Idp - Data structure definition
  • Logging guide - enable verbose logs while debugging this resource