ConfigApplicationResp
Config Application Resp resource for Zscaler Digital Experience.
This resource supports the following standard methods: load(), 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 ConfigApplicationResp
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 ConfigApplicationResp
resource = session.zdx.ConfigApplicationResp(id="your-resource-id")
resource.load()
print(resource)
# Debug output shows HTTP request/response details
Identifiers
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier |
Actions
activate_application()
Activates a specific application by its ID.
Returns: ConfigApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp(id="your-resource-id")
result = resource.activate_application()
print(result)
activate_predefined_application()
Activates a specific predefined application by its name.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
app | string | Yes | - |
Returns: PredefinedApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp()
result = resource.activate_predefined_application(app="value")
print(result)
create_application()
Creates a new application. The type of application determines the required fields in the request body.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | No | - |
collection | Entity | No | - |
description | string | No | - |
name | string | No | - |
rum_details | RUMDetails | No | - |
type | string | Yes | - |
Returns: ConfigApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp()
result = resource.create_application(type="value")
print(result)
deactivate_application()
Deactivates a specific application by its ID.
Returns: ConfigApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp(id="your-resource-id")
result = resource.deactivate_application()
print(result)
deactivate_predefined_application()
Deactivates a specific predefined application by its name.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
app | string | Yes | - |
Returns: PredefinedApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp()
result = resource.deactivate_predefined_application(app="value")
print(result)
delete()
Deletes a custom application by its ID. Predefined applications cannot be deleted.
Deletes a ConfigApplicationResp by id. Only the id identifier is required; delete() takes no other arguments.
Example:
resource = session.zdx.ConfigApplicationResp(id="your-resource-id")
resource.delete()
delete_predefined_application()
Deletes a predefined application by its name. This is generally not allowed and will result in a 403 Forbidden error.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
app | string | Yes | - |
force | boolean | No | - |
Example:
resource = session.zdx.ConfigApplicationResp()
result = resource.delete_predefined_application(app="value")
print(result)
get_application_status()
Retrieves the current status (active or inactive) of a specific application by its ID.
Returns: StatusResponse
Example:
resource = session.zdx.ConfigApplicationResp(id="your-resource-id")
result = resource.get_application_status()
print(result)
get_predefined_application()
Retrieves detailed information for a specific predefined application by its name.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
app | string | Yes | - |
Returns: PredefinedApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp()
result = resource.get_predefined_application(app="value")
print(result)
get_predefined_application_status()
Retrieves the current status (active or inactive) of a specific predefined application by its name.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
app | string | Yes | - |
Returns: StatusResponse
Example:
resource = session.zdx.ConfigApplicationResp()
result = resource.get_predefined_application_status(app="value")
print(result)
load()
Retrieves detailed information for a specific application by its ID.
Fetches an existing ConfigApplicationResp by id. Only the id identifier is required; load() takes no other arguments.
Returns: ConfigApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp(id="your-resource-id")
resource.load()
print(resource.name)
update_application()
Updates the configuration of a specific application. The request body will vary based on the application type.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | No | - |
collection | Entity | No | - |
description | string | No | - |
name | string | No | - |
rum_details | RUMDetails | No | - |
type | string | Yes | - |
Returns: ConfigApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp(id="your-resource-id")
result = resource.update_application(type="value")
print(result)
update_application_status()
Updates the status of an application to either 'active' or 'inactive'.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | - |
Returns: ConfigApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp(id="your-resource-id")
result = resource.update_application_status(status="value")
print(result)
update_predefined_application()
Updates the configuration of a specific predefined application. The request body will vary based on the application type.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
app | string | No | - |
provider | string | No | - |
prefix | string | No | - |
max_packet_count | integer | No | - |
active | boolean | No | - |
collection | Entity | No | - |
description | string | No | - |
name | string | No | - |
rum_details | RUMDetails | No | - |
type | string | Yes | - |
Returns: PredefinedApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp()
result = resource.update_predefined_application(type="value")
print(result)
update_predefined_application_status()
Updates the status of a predefined application to either 'active' or 'inactive'.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
app | string | Yes | - |
status | string | Yes | - |
Returns: ConfigApplicationResp
Example:
resource = session.zdx.ConfigApplicationResp()
result = resource.update_predefined_application_status(app="value", status="value")
print(result)
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | No | - |
collection | EntityWrapperCollection | No | - |
deleted | boolean | No | - |
description | string | No | - |
id | long | No | - |
mod_time | integer | No | - |
monitors_count | MonitorCount | No | - |
name | string | No | - |
rum_details | RUMDetails | No | - |
type | string | No | - |
Related
- ConfigApplicationResp - Data structure definition
- Logging guide - enable verbose logs while debugging this resource