zscaler.zpacloud.zpa_application_segment_pra module – Create an PRA application segment 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_application_segment_pra
.
New in zscaler.zpacloud 1.0.0
Synopsis
This module will create/update/delete an Privileged Remote Access application segment
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 |
---|---|
Indicates whether users can bypass ZPA to access applications. 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:
|
|
Configuration of common applications, e.g., inspection or Browser Access. |
|
Detailed configuration for each application. |
|
This denotes the operation type. Choices:
|
|
Port for the application. |
|
Protocol for the application. Choices:
|
|
The security type of the connection. Choices:
|
|
The description of the application. |
|
The domain of the application. |
|
Whether the application is enabled. Choices:
|
|
The name of the application. |
|
The ZPA tenant ID found in the Administration Company menu in the ZPA console. |
|
Description of the application. |
|
List of domains and IPs. |
|
Whether Double Encryption is enabled or disabled for the app. Choices:
|
|
Whether this application is enabled or not. Choices:
|
|
health check type. |
|
Whether health reporting for the app is Continuous or On Access. Supported values are NONE, ON_ACCESS, CONTINUOUS Choices:
|
|
Indicates the ICMP access type. Choices:
|
|
ID of the application. |
|
Indicates if Inspect Traffic with ZIA is enabled for the application When enabled, this leverages a single posture for securing internet/SaaS and private applications and applies Data Loss Prevention policies to the application segment you are creating Choices:
|
|
Whether Source IP Anchoring for use with ZIA, is enabled or disabled for the app. Choices:
|
|
Indicates if the Zscaler Client Connector (formerly Zscaler App or Z App) receives CNAME DNS records from the connectors. Choices:
|
|
Indicates whether or not the disaster recovery configuration is incomplete Choices:
|
|
Name of the application. |
|
passive health enabled. Choices:
|
|
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. |
|
ID of the segment group. |
|
Whether the App Connector is closest to the application (True) or closest to the user (False). Choices:
|
|
ID of the server group. |
|
The state. Choices:
|
|
Indicates whether TCP communication sockets are enabled or disabled. Choices:
|
|
List of tcp port range pairs, e.g. [22, 22] for port 22-22, [80, 100] for 80-100. |
|
List of valid TCP ports. The application segment API supports multiple TCP and UDP port ranges. |
|
List of valid TCP ports. The application segment API supports multiple TCP and UDP port ranges. |
|
The list of TCP port ranges used to access the application |
|
List of udp port range pairs, e.g. [‘35000’, ‘35000’] for port 35000. |
|
List of valid UDP ports. The application segment API supports multiple TCP and UDP port ranges. |
|
List of valid UDP ports. The application segment API supports multiple TCP and UDP port ranges. |
|
The list of UDP port ranges used to access the application |
|
Whether or not the application resource is designated for disaster recovery Choices:
|
Notes
Note
Check mode is supported.
Examples
- name: Create an Application Segment PRA
zscaler.zpacloud.zpa_application_segment_pra:
provider: "{{ zpa_cloud }}"
name: Ansible_Application_Segment_PRA
description: Ansible_Application_Segment_PRA
enabled: true
is_cname_enabled: true
tcp_keep_alive: true
passive_health_enabled: true
select_connector_close_to_app: false
health_check_type: "DEFAULT"
health_reporting: "ON_ACCESS"
bypass_type: "NEVER"
icmp_access_type: false
tcp_port_range:
- from: "22"
to: "22"
- from: "3389"
to: "3389"
domain_names:
- ssh_pra.example.com
- rdp_pra.example.com
segment_group_id: "216196257331368720"
server_group_ids:
- "216196257331368722"
common_apps_dto:
apps_config:
- name: "ssh_pra"
description: "Description for common app"
domain: ssh_pra.example.com
application_port: "22"
application_protocol: "SSH"
enabled: true
app_types:
- "SECURE_REMOTE_ACCESS"
- name: "rdp_pra"
description: "Description for common app"
domain: rdp_pra.example.com
application_port: "3389"
application_protocol: "RDP"
connection_security: "ANY"
enabled: true
app_types:
- "SECURE_REMOTE_ACCESS"