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:
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | long | Yes | - |
type | string | Yes | - |
microtenant_id | long | No | - |
body | CustomerDomainList | Yes | - |
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
| Name | Type | Required | Description |
|---|---|---|---|
id | long | No | - |
modified_time | integer | No | - |
creation_time | integer | No | - |
modified_by | long | No | - |
scope_id | long | No | - |
domain | string | No | - |
association_type | string | No | - |
capture | boolean | No | - |
name | string | No | - |
Related
- CustomerDomain - Data structure definition
- Logging guide - enable verbose logs while debugging this resource