ConfigAudit
Config Audit resource for Zscaler Internet Access.
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 ConfigAudit
logging.getLogger('zssdk.zia').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",
)
# Call export_pac_with_static_ip on ConfigAudit
resource = session.zia.ConfigAudit()
result = resource.export_pac_with_static_ip(stream=False)
print(result)
# Debug output shows HTTP request/response details
Actions
export_pac_with_static_ip()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | - |
stream | boolean | No | Pass False to buffer the streamed response in memory and return it as bytes; defaults to True, which returns a StreamingBody for chunked reads. |
Example:
resource = session.zia.ConfigAudit()
result = resource.export_pac_with_static_ip(stream=False)
print(result)
get_gre_tunnel_audit()
Returns: GreTunnelAudit
Example:
resource = session.zia.ConfigAudit()
result = resource.get_gre_tunnel_audit()
print(result)
get_ip_visibility()
Returns: IpVisibilityAudit
Example:
resource = session.zia.ConfigAudit()
result = resource.get_ip_visibility()
print(result)
get_pac_file_audit()
Returns: PacFileAudit
Example:
resource = session.zia.ConfigAudit()
result = resource.get_pac_file_audit()
print(result)
load()
Fetches an existing ConfigAudit by id. Only the id identifier is required; load() takes no other arguments.
Returns: ConfigAudit
Example:
resource = session.zia.ConfigAudit()
resource.load()
print(resource.auth_frequency_grade)
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
auth_frequency | AuthFrequency | Yes | - |
auth_frequency_grade | string | Yes | - |
auth_frequency_recommended_configuration | string | Yes | - |
data_present | boolean | Yes | - |
gre_tunnel_grade | string | Yes | - |
gre_tunnel_recommended_configuration | string | Yes | - |
high_availability_grade | string | Yes | - |
ip_visibility_grade | string | Yes | - |
ip_visibility_recommended_configuration | string | Yes | - |
office365_flag | boolean | Yes | - |
office365_grade | string | No | - |
office365_recommended_configuration | string | Yes | - |
other_grade | string | Yes | - |
overall_grade | string | Yes | - |
pac_file_grade | string | Yes | - |
pac_file_recommended_configuration | string | Yes | - |
pac_file_size_recommended_configuration | string | Yes | - |
pacfile_size_grade | string | Yes | - |
report_timestamp | long | Yes | - |
user_performance_grade | string | Yes | - |
Related
- ConfigAudit - Data structure definition
- Logging guide - enable verbose logs while debugging this resource