Skip to main content

ServiceEdge

Service Edge resource for Zscaler Private Access V1.

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 ServiceEdge
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 ServiceEdge
resource = session.zpa.ServiceEdge(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

bulk_delete_service_edge()​

Parameters:

NameTypeRequiredDescription
customer_idlongNo-
microtenant_idlongNo-
idsint64CollectionYes-

Returns: EmptyModel

Example:

resource = session.zpa.ServiceEdge()
result = resource.bulk_delete_service_edge(ids=[3600])
print(result)

delete()​

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

Example:

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

get_service_edge_schedule()​

Parameters:

NameTypeRequiredDescription
customer_idlongYes-
microtenant_idlongNo-

Returns: ScheduledConfig

Example:

resource = session.zpa.ServiceEdge()
result = resource.get_service_edge_schedule(customer_id=3600)
print(result)

load()​

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

Returns: ServiceEdge

Example:

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

save_service_edge_schedule()​

Parameters:

NameTypeRequiredDescription
customer_idlongYes-
microtenant_idlongNo-
idlongNo-
frequency_intervalintegerNo-
frequencystringNo-
enabledbooleanNo-
delete_disabledbooleanNo-

Example:

resource = session.zpa.ServiceEdge()
result = resource.save_service_edge_schedule(customer_id=3600)
print(result)

update()​

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

Properties for update:

NameTypeRequiredDescription
customer_idlongNo-
microtenant_idlongNo-
idlongNo-
modified_timeintegerNo-
creation_timeintegerNo-
modified_bylongNo-
namestringYes-
microtenant_namestringNo-
restriction_typestringNo-
descriptionstringNo-
fingerprintstringNo-
issued_cert_idlongNo-
enabledbooleanNo-
ip_aclstringCollectionNo-
listen_ipsstringCollectionNo-
publish_ipsstringCollectionNo-
publish_ipv6booleanNo-
private_broker_versionServiceEdgeVersionNo-
provisioning_key_idlongNo-
provisioning_key_namestringNo-
service_edge_group_idstringNo-
service_edge_group_namestringNo-
enrollment_certEmptyModelNo-
latitudestringNo-
longitudestringNo-
locationstringNo-
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-
private_ipstringNo-
public_ipstringNo-
platformstringNo-
runtime_OSstringNo-
application_start_timelongNo-
sarge_versionstringNo-
platform_detailstringNo-
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-
zpn_sub_module_upgrade_listSubModuleUpgradeWrapperCollectionNo-
read_onlybooleanNo-
zscaler_managedbooleanNo-
name_without_trimstringNo-

Example:

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

update_service_edge_schedule()​

Parameters:

NameTypeRequiredDescription
customer_idlongYes-
microtenant_idlongNo-
idlongYes-
frequency_intervalintegerNo-
frequencystringNo-
enabledbooleanNo-
delete_disabledbooleanNo-

Example:

resource = session.zpa.ServiceEdge(id="your-resource-id")
result = resource.update_service_edge_schedule(customer_id=3600, id=3600)
print(result)

Attributes​

NameTypeRequiredDescription
idlongNo-
modified_timeintegerNo-
creation_timeintegerNo-
modified_bylongNo-
namestringYes-
microtenant_idlongNo-
microtenant_namestringNo-
restriction_typestringNo-
descriptionstringNo-
fingerprintstringNo-
issued_cert_idlongNo-
enabledbooleanNo-
ip_aclstringCollectionNo-
listen_ipsstringCollectionNo-
publish_ipsstringCollectionNo-
publish_ipv6booleanNo-
private_broker_versionServiceEdgeVersionNo-
provisioning_key_idlongNo-
provisioning_key_namestringNo-
service_edge_group_idstringNo-
service_edge_group_namestringNo-
enrollment_certEmptyModelNo-
latitudestringNo-
longitudestringNo-
locationstringNo-
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-
private_ipstringNo-
public_ipstringNo-
platformstringNo-
runtime_OSstringNo-
application_start_timelongNo-
sarge_versionstringNo-
platform_detailstringNo-
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-
zpn_sub_module_upgrade_listSubModuleUpgradeWrapperCollectionNo-
read_onlybooleanNo-
zscaler_managedbooleanNo-
name_without_trimstringNo-
versionComponentLevelVersionNo-