zscaler.ziacloud.zia_casb_dlp_rules module – Manages CASB DLP rules
Note
This module is part of the zscaler.ziacloud collection (version 2.2.3).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install zscaler.ziacloud.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: zscaler.ziacloud.zia_casb_dlp_rules.
New in zscaler.ziacloud 1.0.0
Synopsis
Adds, updates, or removes SaaS Security Data at Rest Scanning DLP rules.
Requirements
The below requirements are needed on the host that executes this module.
Zscaler SDK Python can be obtained from PyPI https://pypi.org/project/zscaler-sdk-python/
Parameters
Parameter |
Comments |
|---|---|
The configured action for the policy rule. Choices:
|
|
A string that contains the obfuscated API key. |
|
Notification template for DLP email alerts. Provide as dict with |
|
A user who inspects their buckets for sensitive data. When you choose a user, their buckets are available in the Buckets field. |
|
List of bucket IDs for the Zscaler service to inspect for sensitive data. |
|
Email label associated with the rule. Provide as dict with |
|
Quarantine tombstone template. Provide as dict with |
|
The client ID for OAuth2 authentication. |
|
The client secret for OAuth2 authentication. |
|
The Zscaler cloud name provisioned for your organization. Choices:
|
|
List of cloud application tenant IDs for which the rule is applied. |
|
Collaboration scope for the rule. |
|
List of components for which the rule is applied. Zscaler service inspects these components for sensitive data. |
|
The location for the content that the Zscaler service inspects for sensitive data. Choices:
|
|
List of domain profile IDs that are mandatory in the criteria. |
|
List of department IDs for which the rule is applied. |
|
An admin editable text-based description of the rule. |
|
List of DLP engine IDs to which the DLP policy rule must be applied. |
|
The domain for the external organization sharing the channel. Only applicable when content_location is |
|
List of recipient profile IDs for which the rule is applied. |
|
Administrative state of the rule. If Choices:
|
|
List of entity group IDs that are part of the rule criteria. |
|
List of domain profile IDs excluded from the criteria for the rule. |
|
Email address of the external auditor to whom the DLP email alerts are sent. |
|
File types for which the rule is applied. If not set, applied across all file types. |
|
List of group IDs for which the rule is applied. |
|
The unique identifier for the CASB DLP rule. Used to reference an existing rule for update or delete. |
|
If true, criteria_domain_profiles is included as part of the criteria, else excluded. Choices:
|
|
If true, email_recipient_profiles is included as part of the criteria, else excluded. Choices:
|
|
If true, entity_groups is included as part of the criteria, else excluded. Choices:
|
|
List of domain profile IDs included in the criteria for the rule. |
|
List of rule label IDs associated with the rule. |
|
Rule name. |
|
List of object type IDs for which the rule is applied. |
|
Order of rule execution with respect to other SaaS Security Data at Rest Scanning DLP rules. |
|
A string that contains the password for the API admin. |
|
The private key for JWT-based OAuth2 authentication. |
|
A dict containing authentication credentials. |
|
Obfuscated API key. |
|
OAuth2 client ID. |
|
OAuth2 client secret. |
|
Zscaler cloud name. Choices:
|
|
Password for the API admin. |
|
Private key for OAuth2 JWT. |
|
Sandbox Cloud environment. |
|
Sandbox API Key. |
|
Whether to use the legacy Zscaler API client. Choices:
|
|
Email ID of the API admin. |
|
Vanity domain for OAuth2. |
|
Location where all the quarantined files are moved and necessary actions are taken. |
|
Admin rank assigned to this rule. Mandatory when admin rank-based access restriction is enabled. |
|
Details of the DLP Incident Receiver, Provide as dict with |
|
Specifies if the email recipient is internal or external. |
|
Redaction profile in the criteria. Provide as dict with |
|
The Sandbox cloud environment for API access. |
|
A string that contains the Sandbox API Key. |
|
The severity level of the incidents that match the policy rule. Choices:
|
|
Specifies the desired state of the resource. Choices:
|
|
Tag applied to the rule. Provide as dict with |
|
The type of SaaS Security Data at Rest Scanning DLP rule. Choices:
|
|
Whether to use the legacy Zscaler API client. Choices:
|
|
A string that contains the email ID of the API admin. |
|
List of user IDs for which the rule is applied. |
|
The vanity domain provisioned by Zscaler for OAuth2 flows. |
|
Specifies whether to delete an old version of the watermarked file. Choices:
|
|
Watermark profile applied to the rule. Provide as dict with |
|
If true, Content Matching is set to None. Choices:
|
|
Zscaler Incident Receiver details. Provide as dict with |
Notes
Note
Check mode is supported.
typeandnameare required for create.typewithidornamefor update/delete.
Examples
- name: Create a CASB DLP rule
zscaler.ziacloud.zia_casb_dlp_rules:
provider: '{{ provider }}'
name: "My DLP Rule"
type: OFLCASB_DLP_ITSM
order: 1
description: "Rule created by Ansible"
action: OFLCASB_DLP_REPORT_INCIDENT
severity: RULE_SEVERITY_HIGH
components:
- COMPONENT_ITSM_OBJECTS
- COMPONENT_ITSM_ATTACHMENTS
collaboration_scope:
- ANY
file_types:
- FTCATEGORY_APPX
- FTCATEGORY_SQL
- name: Update a CASB DLP rule by ID
zscaler.ziacloud.zia_casb_dlp_rules:
provider: '{{ provider }}'
id: 1070199
type: OFLCASB_DLP_ITSM
name: "Updated Rule Name"
order: 1
- name: Delete a CASB DLP rule
zscaler.ziacloud.zia_casb_dlp_rules:
provider: '{{ provider }}'
id: 1070199
type: OFLCASB_DLP_ITSM
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The CASB DLP rule resource record. Returned: on success |