Skip to main content

CustomerDomain

Customer Domain resource for Zscaler Private Access V2.

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
from zssdk.zscore.config import Config

config = Config(api_version="v2")
import logging

# Enable debug logging for CustomerDomain
logging.getLogger('zssdk.zpa').setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)

session = zssdk.Session(
config=config,
vanity_domain="your-vanity-domain",
client_id="your-client-id",
client_secret="your-client-secret",
)

# Call add_or_update_customer_domains_for_association_type on CustomerDomain
resource = session.zpa.CustomerDomain()
result = resource.add_or_update_customer_domains_for_association_type(customer_id=3600, type="value", body=[{"id": 3600, "modified_time": 3600, "creation_time": 3600, "modified_by": 3600}])
print(result)

# Debug output shows HTTP request/response details

Actions​

add_or_update_customer_domains_for_association_type()​

Parameters:

NameTypeRequiredDescription
customer_idlongYes-
typestringYes-
microtenant_idlongNo-
bodyCustomerDomainListYes-

Example:

resource = session.zpa.CustomerDomain()
result = resource.add_or_update_customer_domains_for_association_type(customer_id=3600, type="value", body=[{"id": 3600, "modified_time": 3600, "creation_time": 3600, "modified_by": 3600}])
print(result)

Attributes​

NameTypeRequiredDescription
idlongNo-
modified_timeintegerNo-
creation_timeintegerNo-
modified_bylongNo-
scope_idlongNo-
domainstringNo-
association_typestringNo-
capturebooleanNo-
namestringNo-