zscaler.zpacloud.zpa_policy_access_app_protection_rule module – Create a Policy App Protection Rule in the ZPA Cloud.
Note
This module is part of the zscaler.zpacloud collection (version 1.4.2).
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.zpacloud
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: zscaler.zpacloud.zpa_policy_access_app_protection_rule
.
New in zscaler.zpacloud 1.0.0
Synopsis
This module create/update/delete a Policy Isolation Rule in the ZPA Cloud.
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 |
---|---|
This is for providing the rule action. Choices:
|
|
The ZPA API client ID generated from the ZPA console. |
|
The ZPA API client secret generated from the ZPA console. |
|
The ZPA cloud provisioned for your organization. Choices:
|
|
This is for providing the set of conditions for the policy |
|
The various policy criteria. Array of attributes (e.g., objectType, lhs, rhs, name) |
|
The ID information for the Identity Provider (IdP) |
|
The key for the object type. String ID example: id |
|
|
|
|
|
The operation type. Supported values: AND, OR Choices:
|
|
The ZPA tenant ID found in the Administration Company menu in the ZPA console. |
|
This is the description of the access policy. |
|
The unique identifier of the policy rule |
|
The name of the isolation rule. |
|
Denotes the operation type These are operands used between criteria Choices:
|
|
Indicates the policy type. The following value is supported: client_forwarding |
|
A dict object containing authentication details. |
|
The ZPA API client ID generated from the ZPA console. |
|
The ZPA API client secret generated from the ZPA console. |
|
The ZPA cloud provisioned for your organization. Choices:
|
|
The ZPA tenant ID found in the Administration Company menu in the ZPA console. |
|
The policy evaluation order number of the rule. |
|
The state. Choices:
|
|
The isolation profile ID associated with the rule. |
Notes
Note
Check mode is supported.
Examples
- name: "Policy App Protection Rule - Example"
zscaler.zpacloud.zpa_policy_access_app_protection_rule:
provider: "{{ zpa_cloud }}"
name: "Policy App Protection Rule - Example"
description: "Policy App Protection Rule"
rule_order: 1
action: "INSPECT"
operator: "AND"
zpn_inspection_profile_id: "216196257331286656"
conditions:
- operator: "OR"
operands:
- object_type: "APP"
lhs: "id"
rhs: "216196257331292105"
- object_type: "APP_GROUP"
lhs: "id"
rhs: "216196257331292103"
- operator: "OR"
operands:
- name:
object_type: "CLIENT_TYPE"
lhs: "id"
rhs: "zpn_client_type_zapp"