PublicAccountIdStatus
Public Account Id Status resource for Zscaler Cloud & Branch Connector.
Resource operations
This resource supports the following standard methods: load(), update(). They operate on the instance state — set properties with dot notation, then call the method with no arguments.
Quick Start
import zssdk
import logging
# Enable debug logging for PublicAccountIdStatus
logging.getLogger('zssdk.ztw').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",
)
# Call load on PublicAccountIdStatus
resource = session.ztw.PublicAccountIdStatus()
result = resource.load()
print(result)
# Debug output shows HTTP request/response details
Actions
load()
Fetches an existing PublicAccountIdStatus by id. Only the id identifier is required; load() takes no other arguments.
Returns: PublicAccountIdStatus
Example:
resource = session.ztw.PublicAccountIdStatus()
resource.load()
print(resource)
update()
Updates an existing PublicAccountIdStatus. Call load() first, modify properties, then call update() — this method takes no arguments.
Properties for update:
| Name | Type | Required | Description |
|---|---|---|---|
account_id_enabled | boolean | No | - |
sub_id_enabled | boolean | No | - |
project_id_enabled | boolean | No | - |
Returns: PublicAccountIdStatus
Example:
resource = session.ztw.PublicAccountIdStatus(id="your-resource-id")
resource.load()
# Modify resource attributes here, then call update()
resource.update()
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
account_id_enabled | boolean | No | - |
sub_id_enabled | boolean | No | - |
project_id_enabled | boolean | No | - |
Related
- PublicAccountIdStatus - Data structure definition
- Logging guide - enable verbose logs while debugging this resource