system_audit¶
The following methods allow for interaction with the ZIA System Audit API endpoints.
Methods are accessible via zia.system_audit
- class SystemAuditReportAPI¶
Bases:
APIClientA Client object for the System Audit Report resources.
- get_config_audit(query_params=None)¶
Retrieves the System Audit Report.
Keyword Args:
- Returns:
Config Audit Report ZIA.
- Return type:
Tuple
Examples
List Sub Clouds with default settings:
>>> subcloud_list, zscaler_resp, err = client.zia.sub_clouds.list_sub_clouds() ... if err: ... print(f"Error listing sub clouds: {err}") ... return ... print(f"Total sub clouds found: {len(subcloud_list)}") ... for cloud in subcloud_list: ... print(cloud.as_dict())