zscaler.zpacloud.zpa_application_segment_inspection module – Create an AppProtection application segment in the ZPA Cloud.
Note
This module is part of the zscaler.zpacloud collection (version 2.0.0).
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_inspection
.
New in zscaler.zpacloud 1.0.0
Synopsis
This module will create/update/delete an AppProtection 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 if Active Directory Inspection is enabled or not for the application. This allows the application segment’s traffic to be inspected by Active Directory (AD) Protection. By default, this field is set to false. Choices:
|
|
Indicates whether users can bypass ZPA to access applications. Choices:
|
|
The client ID for OAuth2 authentication. Required for OneAPI client authentication when use_legacy_client=false. |
|
The client secret for OAuth2 authentication. Used for OneAPI client authentication when use_legacy_client=false and not using private_key. |
|
The ZPA cloud provisioned for your organization. Used for OneAPI client authentication when use_legacy_client=false. Choices:
|
|
List of applications e.g., inspection or Browser Access |
|
List of applications to be configured |
|
Whether the options are enabled for the Browser Access application or not Choices:
|
|
This denotes the operation type Choices:
|
|
Port for the inspection application |
|
Protocol for the inspection application Choices:
|
|
The unique identifier of the Browser Access certificate. |
|
The description of the application |
|
The domain of the application |
|
Whether the application is enabled Choices:
|
|
The name of the application |
|
Whether the use of untrusted certificates is enabled or disabled for the Browser Access application Choices:
|
|
The ZPA tenant ID found in the Administration Company menu in the ZPA console. Used for OneAPI client authentication when use_legacy_client=false. |
|
The description of the application resource. |
|
The list of domains and IPs. The maximum limit for domains or IPs is 2,000 applications per application segment The maximum limit for domains or IPs for the whole customer is 6,000 applications. |
|
Whether Double Encryption is enabled or disabled for the app. Choices:
|
|
Whether this application resource is enabled or not. Choices:
|
|
If set to true, performs a DNS check to find an A or AAAA record for this application. 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:
|
|
The unique identifier of the application resource. |
|
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:
|
|
The unique identifier of the Microtenant for the ZPA tenant |
|
The name of the application resource. |
|
Indicates if passive health checks are enabled on the application.. Choices:
|
|
The private key for JWT-based OAuth2 authentication. Used for OneAPI client authentication when use_legacy_client=false and not using client_secret. |
|
A dict containing authentication credentials. |
|
The client ID for OAuth2 authentication. Required for OneAPI client authentication when use_legacy_client=false. |
|
The client secret for OAuth2 authentication. Used for OneAPI client authentication when use_legacy_client=false and not using private_key. |
|
The ZPA cloud provisioned for your organization. Used for OneAPI client authentication when use_legacy_client=false. Choices:
|
|
The ZPA tenant ID found in the Administration Company menu in the ZPA console. Used for OneAPI client authentication when use_legacy_client=false. |
|
The ZPA Microtenant ID found in the Administration Company menu in the ZPA console. Used for OneAPI client authentication when use_legacy_client=false. |
|
The private key for JWT-based OAuth2 authentication. Used for OneAPI client authentication when use_legacy_client=false and not using client_secret. |
|
Whether to use the legacy Zscaler API client. When true, uses zpa_client_id/zpa_client_secret/zpa_customer_id/zpa_cloud for authentication. When false (default), uses client_id/client_secret/private_key with vanity_domain for OAuth2 authentication. Choices:
|
|
The vanity domain provisioned by Zscaler for OAuth2 flows. Required for OneAPI client authentication when use_legacy_client=false. |
|
The ZPA API client ID generated from the ZPA console. Required for legacy client authentication when use_legacy_client=true. |
|
The ZPA API client secret generated from the ZPA console. Required for legacy client authentication when use_legacy_client=true. |
|
The ZPA cloud provisioned for your organization. Required for legacy client authentication when use_legacy_client=true. Choices:
|
|
The ZPA tenant ID found in the Administration Company menu in the ZPA console. Required for legacy client authentication when use_legacy_client=true. |
|
The ZPA Microtenant ID found in the Administration Company menu in the ZPA console. Used for legacy client authentication when use_legacy_client=true. |
|
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. |
|
Specifies the desired state of the resource. 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:
|
|
Whether to use the legacy Zscaler API client. When true, uses zpa_client_id/zpa_client_secret/zpa_customer_id/zpa_cloud for authentication. When false (default), uses client_id/client_secret/private_key with vanity_domain for OAuth2 authentication. Choices:
|
|
The vanity domain provisioned by Zscaler for OAuth2 flows. Required for OneAPI client authentication when use_legacy_client=false. |
|
The ZPA API client ID generated from the ZPA console. Required for legacy client authentication when use_legacy_client=true. |
|
The ZPA API client secret generated from the ZPA console. Required for legacy client authentication when use_legacy_client=true. |
|
The ZPA cloud provisioned for your organization. Required for legacy client authentication when use_legacy_client=true. Choices:
|
|
The ZPA tenant ID found in the Administration Company menu in the ZPA console. Required for legacy client authentication when use_legacy_client=true. |
|
The ZPA Microtenant ID found in the Administration Company menu in the ZPA console. Used for legacy client authentication when use_legacy_client=true. |
Notes
Note
Check mode is supported.
Examples
- name: Create/Update/Delete an application segment.
zscaler.zpacloud.zpa_application_segment_inspection:
provider: "{{ zpa_cloud }}"
name: Example Application Segment
description: Example Application Segment
enabled: true
health_reporting: ON_ACCESS
bypass_type: NEVER
is_cname_enabled: true
tcp_port_range:
- from: "80"
to: "80"
domain_names:
- crm.example.com
segment_group_id: "216196257331291896"
server_group_ids:
- "216196257331291969"