zscaler.zpacloud.zpa_policy_access_isolation_rule module – Create a Policy Isolation Rule
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_isolation_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. |
|
This denotes the operation type. Choices:
|
|
The value for differentiating policy types. |
|
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 Isolation Rule - Example"
zscaler.zpacloud.zpa_policy_access_isolation_rule:
provider: "{{ zpa_cloud }}"
name: "Policy Isolation Rule - Example"
description: "Policy Isolation Rule - Example"
action: "ISOLATE"
rule_order: 1
operator: "AND"
zpn_isolation_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"