Skip to main content

ConfigDevice

Config Device resource for Zscaler Digital Experience.

Resource operations

This resource supports the following standard methods: load(). 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 ConfigDevice
logging.getLogger('zssdk.zdx').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 ConfigDevice
resource = session.zdx.ConfigDevice(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

get_device_count()​

Parameters:

NameTypeRequiredDescription
searchstringNo-
statusstringNo-

Returns: CountResponse

Example:

resource = session.zdx.ConfigDevice()
result = resource.get_device_count()
print(result)

load()​

Gets information for a specific device by its ID.

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

Returns: ConfigDevice

Example:

resource = session.zdx.ConfigDevice(id="your-resource-id")
resource.load()
print(resource.name)

Attributes​

NameTypeRequiredDescription
activebooleanNo-
idlongNo-
logged_in_userEntityResponseNo-
modelstringNo-
namestringYes-
osstringNo-
os_typestringNo-
supportedbooleanNo-
vendorstringNo-
versionstringNo-
zcc_versionstringNo-
zdx_versionstringNo-
zia_discovered_namestringNo-