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
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier |
Actions
get_device_count()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
search | string | No | - |
status | string | No | - |
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
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | No | - |
id | long | No | - |
logged_in_user | EntityResponse | No | - |
model | string | No | - |
name | string | Yes | - |
os | string | No | - |
os_type | string | No | - |
supported | boolean | No | - |
vendor | string | No | - |
version | string | No | - |
zcc_version | string | No | - |
zdx_version | string | No | - |
zia_discovered_name | string | No | - |
Related
- ConfigDevice - Data structure definition
- Logging guide - enable verbose logs while debugging this resource