zscaler.ziacloud.zia_traffic_forwarding_gre_tunnel_info module – Gets the GRE tunnel information for the specified ID
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_tunnel_info
.
New in zscaler.ziacloud 1.0.0
Synopsis
Gets the GRE tunnel information for the specified ID.
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:
|
|
Unique identifier of the static IP address that is associated to a GRE tunnel |
|
A string that contains the password for the API admin. |
|
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 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. |
|
A string that contains the email ID of the API admin. |
Notes
Note
Check mode is not supported.
Examples
- name: Retrieve Details of All GRE Tunnels.
zscaler.ziacloud.zia_traffic_forwarding_gre_tunnel_info:
provider: '{{ provider }}'
- name: Retrieve Details of Specific GRE Tunnel By Source IP Address.
zscaler.ziacloud.zia_traffic_forwarding_gre_tunnel_info:
provider: '{{ provider }}'
source_ip: 1.1.1.1
- name: Retrieve Details of Specific GRE Tunnel By ID.
zscaler.ziacloud.zia_traffic_forwarding_gre_tunnel_info:
provider: '{{ provider }}'
id: 82709
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
A list of GRE tunnel configurations retrieved from the ZIA platform. Returned: always |
|
User-provided comments about the GRE tunnel. Returned: always Sample: |
|
The unique identifier for the GRE tunnel. Returned: always Sample: |
|
Internal IP range configured for the GRE tunnel. Returned: always Sample: |
|
Flag indicating if the tunnel uses unnumbered IP. Returned: always Sample: |
|
Unix timestamp of when the GRE tunnel configuration was last modified. Returned: always Sample: |
|
Details of the user who last modified the GRE tunnel configuration. Returned: always |
|
Unique identifier of the user. Returned: always Sample: |
|
Name of the user. Returned: always Sample: |
|
Primary destination virtual IP configuration for the GRE tunnel. Returned: always |
|
City of the primary destination. Returned: always Sample: |
|
Country code of the primary destination. Returned: always Sample: |
|
Datacenter where the primary VIP is located. Returned: always Sample: |
|
Unique identifier of the primary destination. Returned: always Sample: |
|
Latitude of the primary destination. Returned: always Sample: |
|
Longitude of the primary destination. Returned: always Sample: |
|
Virtual IP address of the primary destination. Returned: always Sample: |
|
Secondary destination virtual IP configuration for the GRE tunnel. Returned: always |
|
City of the secondary destination. Returned: always Sample: |
|
Country code of the secondary destination. Returned: always Sample: |
|
Datacenter where the secondary VIP is located. Returned: always Sample: |
|
Unique identifier of the secondary destination. Returned: always Sample: |
|
Latitude of the secondary destination. Returned: always Sample: |
|
Longitude of the secondary destination. Returned: always Sample: |
|
Virtual IP address of the secondary destination. Returned: always Sample: |
|
The source IP address used by the GRE tunnel. Returned: always Sample: |