InspectionProfile
Inspection Profile resource for Zscaler Private Access V1.
This resource supports the following standard methods: create(), load(), update(), 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 InspectionProfile
logging.getLogger('zssdk.zpa').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 InspectionProfile
resource = session.zpa.InspectionProfile(id="your-resource-id")
resource.load()
print(resource)
# Debug output shows HTTP request/response details
Identifiers
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier |
Actions
associate_all_predefined_controls()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | long | Yes | - |
version | string | Yes | - |
Example:
resource = session.zpa.InspectionProfile(id="your-resource-id")
result = resource.associate_all_predefined_controls(customer_id=3600, version="value")
print(result)
create()
Creates a new InspectionProfile. Set properties on the resource instance, then call create() — this method takes no arguments.
Properties for creation:
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | long | No | - |
id | long | No | - |
modified_time | integer | No | - |
creation_time | integer | No | - |
modified_by | long | No | - |
name | string | Yes | - |
description | string | No | - |
paranoia_level | integer | Yes | - |
global_control_actions | stringCollection | No | - |
zs_defined_control_choice | string | No | - |
predefined_controls_version | string | No | - |
predefined_controls | InspectionPredefinedControlWrapperCollection | No | - |
predefined_api_controls | InspectionPredefinedControlWrapperCollection | No | - |
custom_controls | InspectionCustomControlWrapperCollection | No | - |
threatlabz_controls | InspectionZSDefinedControlWrapperCollection | No | - |
websocket_controls | InspectionControlBaseEntityWrapperCollection | No | - |
controls_info | InspectionProfileControlsInfoResourceWrapperCollection | No | - |
incarnation_number | integer | No | - |
check_control_deployment_status | boolean | No | - |
predefined_ADP_controls | InspectionPredefinedControlWrapperCollection | No | - |
exceptions_version | integer | No | - |
api_profile | boolean | No | - |
api_discovery_enabled | boolean | No | - |
name_without_trim | string | No | - |
has_recommended_owasp_controls | boolean | No | - |
has_recommended_threatlabz_controls | boolean | No | - |
Example:
resource = session.zpa.InspectionProfile()
resource.name = "example-name"
resource.paranoia_level = 3600
resource.create()
print(f"Created with ID: {resource.id}")
de_associate_all_predefined_controls()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | long | Yes | - |
Example:
resource = session.zpa.InspectionProfile(id="your-resource-id")
result = resource.de_associate_all_predefined_controls(customer_id=3600)
print(result)
delete()
Deletes a InspectionProfile by id. Only the id identifier is required; delete() takes no other arguments.
Example:
resource = session.zpa.InspectionProfile(id="your-resource-id")
resource.delete()
dissociate_all_predefined_controls()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | long | Yes | - |
Example:
resource = session.zpa.InspectionProfile(id="your-resource-id")
result = resource.dissociate_all_predefined_controls(customer_id=3600)
print(result)
load()
Fetches an existing InspectionProfile by id. Only the id identifier is required; load() takes no other arguments.
Returns: InspectionProfile
Example:
resource = session.zpa.InspectionProfile(id="your-resource-id")
resource.load()
print(resource.name)
update()
Updates an existing InspectionProfile. Call load() first, modify properties, then call update() — this method takes no arguments.
Properties for update:
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | long | No | - |
id | long | No | - |
modified_time | integer | No | - |
creation_time | integer | No | - |
modified_by | long | No | - |
name | string | Yes | - |
description | string | No | - |
paranoia_level | integer | Yes | - |
global_control_actions | stringCollection | No | - |
zs_defined_control_choice | string | No | - |
predefined_controls_version | string | No | - |
predefined_controls | InspectionPredefinedControlWrapperCollection | No | - |
predefined_api_controls | InspectionPredefinedControlWrapperCollection | No | - |
custom_controls | InspectionCustomControlWrapperCollection | No | - |
threatlabz_controls | InspectionZSDefinedControlWrapperCollection | No | - |
websocket_controls | InspectionControlBaseEntityWrapperCollection | No | - |
controls_info | InspectionProfileControlsInfoResourceWrapperCollection | No | - |
incarnation_number | integer | No | - |
check_control_deployment_status | boolean | No | - |
predefined_ADP_controls | InspectionPredefinedControlWrapperCollection | No | - |
exceptions_version | integer | No | - |
api_profile | boolean | No | - |
api_discovery_enabled | boolean | No | - |
name_without_trim | string | No | - |
has_recommended_owasp_controls | boolean | No | - |
has_recommended_threatlabz_controls | boolean | No | - |
Example:
resource = session.zpa.InspectionProfile(id="your-resource-id")
resource.load()
resource.name = "Updated value"
resource.update()
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
id | long | No | - |
modified_time | integer | No | - |
creation_time | integer | No | - |
modified_by | long | No | - |
name | string | Yes | - |
description | string | No | - |
paranoia_level | integer | Yes | - |
global_control_actions | stringCollection | No | - |
zs_defined_control_choice | string | No | - |
predefined_controls_version | string | No | - |
predefined_controls | InspectionPredefinedControlWrapperCollection | No | - |
predefined_api_controls | InspectionPredefinedControlWrapperCollection | No | - |
custom_controls | InspectionCustomControlWrapperCollection | No | - |
threatlabz_controls | InspectionZSDefinedControlWrapperCollection | No | - |
websocket_controls | InspectionControlBaseEntityWrapperCollection | No | - |
controls_info | InspectionProfileControlsInfoResourceWrapperCollection | No | - |
incarnation_number | integer | No | - |
check_control_deployment_status | boolean | No | - |
predefined_ADP_controls | InspectionPredefinedControlWrapperCollection | No | - |
exceptions_version | integer | No | - |
api_profile | boolean | No | - |
api_discovery_enabled | boolean | No | - |
name_without_trim | string | No | - |
has_recommended_owasp_controls | boolean | No | - |
has_recommended_threatlabz_controls | boolean | No | - |
Related
- InspectionProfile - Data structure definition
- Logging guide - enable verbose logs while debugging this resource