zscaler.ziacloud.zia_traffic_forwarding_gre_tunnels module – GRE tunnel information
Note
This module is part of the zscaler.ziacloud collection (version 1.3.1).
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_traffic_forwarding_gre_tunnels
.
New in zscaler.ziacloud 1.0.0
Synopsis
GRE tunnel information
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 Zscaler cloud name was provisioned for your organization. Choices:
|
|
Additional information about this GRE tunnel |
|
Unique identifier of the static IP address that is associated to a GRE tunnel |
|
The start of the internal IP address in /29 CIDR range. |
|
This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null Choices:
|
|
A string that contains the password for the API admin. |
|
The primary destination data center and virtual IP address (VIP) of the GRE tunnel |
|
A dict object containing connection details. This is optional; credentials can also be provided directly at the top level. |
|
A string that contains the obfuscated API key. |
|
The Zscaler cloud name was provisioned for your organization. Choices:
|
|
A string that contains the password for the API admin. |
|
A string that contains the Sandbox API Key. |
|
A string that contains the email ID of the API admin. |
|
A string that contains the Sandbox API Key. |
|
The secondary destination data center and virtual IP address (VIP) of the GRE tunnel |
|
The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN. This IP address must be provisioned within the Zscaler service using the /staticIP endpoint. |
|
Specifies the desired state of the resource. Choices:
|
|
Restrict the data center virtual IP addresses (VIPs) only to those part of the subcloud |
|
A string that contains the email ID of the API admin. |
|
Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address. Choices:
|
Notes
Note
Check mode is supported.
Examples
- name: Create/Update/Delete GRE Numbered Tunnel.
zscaler.ziacloud.zia_traffic_forwarding_gre_tunnels:
provider: '{{ provider }}'
source_ip: "1.1.1.1"
comment: "Created with Ansible"
ip_unnumbered: false
within_country: false
- name: Create/Update/Delete GRE Unnumbered Tunnel.
zscaler.ziacloud.zia_traffic_forwarding_gre_tunnels:
provider: '{{ provider }}'
source_ip: "1.1.1.1"
comment: "Created with Ansible"
ip_unnumbered: true
within_country: true
primary_dest_vip:
- id:
virtual_ip:
secondary_dest_vip:
- id:
virtual_ip: