Skip to main content

PrivateCloudController

Private Cloud Controller resource for Zscaler Private Access.

Resource operations

This resource supports the following standard methods: load(), update(), delete(). 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 PrivateCloudController
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 PrivateCloudController
resource = session.zpa.PrivateCloudController(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

delete()​

Deletes a PrivateCloudController by id. Only the id identifier is required; delete() takes no other arguments.

Example:

resource = session.zpa.PrivateCloudController(id="your-resource-id")
resource.delete()

load()​

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

Returns: PrivateCloudController

Example:

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

restart_private_cloud_controller()​

Parameters:

NameTypeRequiredDescription
customer_idlongYes-
microtenant_idlongNo-

Example:

resource = session.zpa.PrivateCloudController(id="your-resource-id")
result = resource.restart_private_cloud_controller(customer_id=3600)
print(result)

update()​

Updates an existing PrivateCloudController. Call load() first, modify properties, then call update() — this method takes no arguments.

Properties for update:

NameTypeRequiredDescription
customer_idlongNo-
microtenant_idlongNo-
microtenant_namestringNo-
restriction_typestringNo-
descriptionstringNo-
fingerprintstringNo-
issued_cert_idlongNo-
enabledbooleanNo-
namestringYes-
ip_aclstringCollectionNo-
listen_ipsstringCollectionNo-
publish_ipsstringCollectionNo-
private_cloud_controller_versionPrivateCloudControllerVersionNo-
provisioning_key_idlongNo-
provisioning_key_namestringNo-
private_cloud_controller_group_idstringNo-
private_cloud_controller_group_namestringNo-
enrollment_certEmptyModelNo-
latitudestringNo-
longitudestringNo-
locationstringNo-
site_sp_dns_namestringNo-
expected_versionstringNo-
current_versionstringNo-
previous_versionstringNo-
last_upgrade_timelongNo-
expected_upgrade_timelongNo-
upgrade_statusstringNo-
control_channel_statusstringNo-
upgrade_attemptintegerNo-
ctrl_broker_namestringNo-
last_broker_connect_timelongNo-
last_broker_connect_time_durationstringNo-
last_broker_disconnect_timelongNo-
last_broker_disconnect_time_durationstringNo-
master_last_sync_timelongNo-
userdb_last_sync_timelongNo-
shard_last_sync_timelongNo-
private_ipstringNo-
public_ipstringNo-
platformstringNo-
runtime_OSstringNo-
application_start_timelongNo-
sarge_versionstringNo-
platform_detailstringNo-
zpn_sub_module_upgrade_listSubModuleUpgradeWrapperCollectionNo-
expected_sarge_versionstringNo-
sarge_upgrade_statusstringNo-
os_upgrade_statusstringNo-
last_sarge_upgrade_timelongNo-
last_OS_upgrade_timelongNo-
sarge_upgrade_attemptintegerNo-
platform_versionstringNo-
os_upgrade_enabledbooleanNo-
read_onlybooleanNo-
zscaler_managedbooleanNo-

Example:

resource = session.zpa.PrivateCloudController(id="your-resource-id")
resource.load()
resource.name = "Updated value"
resource.update()

Attributes​

NameTypeRequiredDescription
modified_timeintegerNo-
creation_timeintegerNo-
modified_bystringNo-
idstringNo-
microtenant_idlongNo-
microtenant_namestringNo-
restriction_typestringNo-
descriptionstringNo-
fingerprintstringNo-
issued_cert_idlongNo-
enabledbooleanNo-
namestringYes-
ip_aclstringCollectionNo-
listen_ipsstringCollectionNo-
publish_ipsstringCollectionNo-
private_cloud_controller_versionPrivateCloudControllerVersionNo-
provisioning_key_idlongNo-
provisioning_key_namestringNo-
private_cloud_controller_group_idstringNo-
private_cloud_controller_group_namestringNo-
enrollment_certEmptyModelNo-
latitudestringNo-
longitudestringNo-
locationstringNo-
site_sp_dns_namestringNo-
expected_versionstringNo-
current_versionstringNo-
previous_versionstringNo-
last_upgrade_timelongNo-
expected_upgrade_timelongNo-
upgrade_statusstringNo-
control_channel_statusstringNo-
upgrade_attemptintegerNo-
ctrl_broker_namestringNo-
last_broker_connect_timelongNo-
last_broker_connect_time_durationstringNo-
last_broker_disconnect_timelongNo-
last_broker_disconnect_time_durationstringNo-
master_last_sync_timelongNo-
userdb_last_sync_timelongNo-
shard_last_sync_timelongNo-
private_ipstringNo-
public_ipstringNo-
platformstringNo-
runtime_OSstringNo-
application_start_timelongNo-
sarge_versionstringNo-
platform_detailstringNo-
zpn_sub_module_upgrade_listSubModuleUpgradeWrapperCollectionNo-
expected_sarge_versionstringNo-
sarge_upgrade_statusstringNo-
os_upgrade_statusstringNo-
last_sarge_upgrade_timelongNo-
last_OS_upgrade_timelongNo-
sarge_upgrade_attemptintegerNo-
platform_versionstringNo-
os_upgrade_enabledbooleanNo-
read_onlybooleanNo-
zscaler_managedbooleanNo-
versionComponentLevelVersionNo-