Skip to main content

ApplianceInfo

Appliance Info resource for Zscaler Cloud & Branch Connector.

Resource operations

This resource supports the following standard methods: create(), load(), update(). 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 ApplianceInfo
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",
)

# Get a specific ApplianceInfo
resource = session.ztw.ApplianceInfo(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

compute_ip_and_port()​

Example:

resource = session.ztw.ApplianceInfo(id="your-resource-id")
result = resource.compute_ip_and_port(id=3600)
print(result)

create()​

Creates a new ApplianceInfo. Set properties on the resource instance, then call create() — this method takes no arguments.

Properties for creation:

NameTypeRequiredDescription
create_timeintegerNo-
descstringNo-
flagsintegerNo-
last_mod_timeintegerNo-
last_mod_uidEntityReferenceNo-
locationEntityReferenceNo-
model_typestringYes-
namestringYes-
prov_templateEntityReferenceNo-
serial_numberstringYes-
start_support_tunnelbooleanNo-
statusstringNo-
support_tunnel_ipstringNo-
support_tunnel_portintegerNo-
zia_support_tun_allowbooleanNo-
cloudstringNo-
deletedbooleanNo-

Returns: ApplianceInfo

Example:

resource = session.ztw.ApplianceInfo()
resource.model_type = "value"
resource.name = "example-name"
resource.serial_number = "value"
resource.create()
print(f"Created with ID: {resource.id}")

load()​

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

Returns: ApplianceInfo

Example:

resource = session.ztw.ApplianceInfo(id="your-resource-id")
resource.load()
print(resource.name)

update()​

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

Properties for update:

NameTypeRequiredDescription
create_timeintegerNo-
descstringNo-
flagsintegerNo-
last_mod_timeintegerNo-
last_mod_uidEntityReferenceNo-
locationEntityReferenceNo-
model_typestringYes-
namestringYes-
prov_templateEntityReferenceNo-
serial_numberstringYes-
start_support_tunnelbooleanNo-
statusstringNo-
support_tunnel_ipstringNo-
support_tunnel_portintegerNo-
zia_support_tun_allowbooleanNo-
cloudstringNo-
deletedbooleanNo-

Returns: ApplianceInfo

Example:

resource = session.ztw.ApplianceInfo(id="your-resource-id")
resource.load()
resource.name = "Updated value"
resource.update()

Attributes​

NameTypeRequiredDescription
create_timeintegerNo-
descstringNo-
flagsintegerNo-
idintegerYes-
last_mod_timeintegerNo-
last_mod_uidEntityReferenceNo-
locationEntityReferenceNo-
model_typestringYes-
namestringYes-
prov_templateEntityReferenceNo-
serial_numberstringYes-
start_support_tunnelbooleanNo-
statusstringNo-
support_tunnel_ipstringNo-
support_tunnel_portintegerNo-
zia_support_tun_allowbooleanNo-
cloudstringNo-
deletedbooleanNo-