zscaler.ziacloud.zia_extranet module – Manages ZIA extranet configurations
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_extranet.
New in zscaler.ziacloud 1.0.0
Synopsis
Adds, updates, or removes extranet configurations for traffic forwarding.
Extranets define DNS servers and IP pools for traffic selectors.
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 |
|---|---|
A string that contains the obfuscated API key. |
|
The client ID for OAuth2 authentication. |
|
The client secret for OAuth2 authentication. |
|
The Zscaler cloud name provisioned for your organization. Choices:
|
|
The description of the extranet. Maximum 10240 characters. |
|
DNS servers specified for the extranet. |
|
The ID for an existing DNS config (update only). |
|
The name of the DNS server. |
|
The IP address of the primary DNS server. |
|
The IP address of the secondary DNS server. |
|
Whether this DNS configuration is the designated default. Choices:
|
|
Traffic selector IP pools specified for the extranet. |
|
The ID for an existing IP pool (update only). |
|
The ending IP address of the pool. |
|
The starting IP address of the pool. |
|
The name of the IP pool. |
|
Whether this IP pool is the designated default. Choices:
|
|
The unique identifier for the extranet. Used to reference an existing extranet for update or delete. |
|
The name of the extranet. Required for create. Maximum 255 characters. |
|
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. |
|
The Sandbox cloud environment for API access. |
|
A string that contains the Sandbox API Key. |
|
Specifies the desired state of the resource. Choices:
|
|
Whether to use the legacy Zscaler API client. Choices:
|
|
A string that contains the email ID of the API admin. |
|
The vanity domain provisioned by Zscaler for OAuth2 flows. |
Notes
Note
Check mode is supported.
Use
idornameto reference an existing extranet for update/delete.
Examples
- name: Create an extranet
zscaler.ziacloud.zia_extranet:
provider: '{{ provider }}'
name: "My Extranet"
description: "Extranet for branch offices"
extranet_dns_list:
- name: "DNS Primary"
primary_dns_server: "8.8.8.8"
secondary_dns_server: "4.4.2.2"
use_as_default: true
extranet_ip_pool_list:
- name: "Pool 1"
ip_start: "192.168.200.1"
ip_end: "192.168.200.100"
use_as_default: true
- name: Update an extranet by ID
zscaler.ziacloud.zia_extranet:
provider: '{{ provider }}'
id: 12345
name: "Updated Extranet Name"
description: "Updated description"
- name: Delete an extranet
zscaler.ziacloud.zia_extranet:
provider: '{{ provider }}'
id: 12345
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The extranet resource record. Returned: on success |