zscaler.ziacloud.zia_virtual_service_edge_node module – Adds a virtual service edge node.
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_virtual_service_edge_node.
New in zscaler.ziacloud 1.0.0
Synopsis
Adds a virtual service edge node.
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:
|
|
Virtual Service Edge cluster name. |
|
The IP address of the default gateway to the internet. Only IPv4 addresses are supported. |
|
Specifies the deployment mode. Select either Otherwise, select only Choices:
|
|
A Boolean value that indicates whether or not a support tunnel for Zscaler Support is enabled. Choices:
|
|
The unique identifier for the Virtual Service Edge node. Used to reference an existing node for update or delete operations. |
|
Represents the Virtual Service Edge instances deployed for production purposes. Choices:
|
|
The Virtual Service Edge cluster IP address. Only IPv4 addresses are supported. |
|
A Boolean value that specifies whether to terminate IPSec traffic from the client at selected Virtual Service Edge instances for the Virtual Service Edge cluster. Choices:
|
|
The IP address of the load balancer. This field is applicable only when the deployment_mode is set to |
|
Name of the Virtual Service Edge node. |
|
A Boolean value that indicates whether or not the On-Demand Support Tunnel is enabled. Choices:
|
|
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:
|
|
Specifies the status of the Virtual Service Edge cluster. The status is set to ENABLED by default. Choices:
|
|
The Virtual Service Edge cluster subnet mask (e.g. 255.255.255.0). Only IPv4 addresses are supported. |
|
The Virtual Service Edge cluster type. For the complete list of supported types refer to the API documentation. https://help.zscaler.com/zia/service-edges#/virtualZenNodes-post |
|
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. |
|
The Virtual Service Edge SKU type. Choices:
|
Notes
Note
Check mode is supported.
Examples
- name: Create a Virtual Service Edge node with basic configuration
zscaler.ziacloud.zia_virtual_service_edge_node:
provider: '{{ provider }}'
name: "VZEN-Example-01"
status: ENABLED
ip_address: "10.0.0.100"
subnet_mask: "255.255.255.0"
default_gateway: "10.0.0.1"
type: "SMLB"
deployment_mode: STANDALONE
- name: Create a Virtual Service Edge node with cluster deployment
zscaler.ziacloud.zia_virtual_service_edge_node:
provider: '{{ provider }}'
status: ENABLED
ip_address: "10.0.0.100"
subnet_mask: "255.255.255.0"
default_gateway: "10.0.0.1"
type: "VZEN"
deployment_mode: CLUSTER
load_balancer_ip_address: "10.0.0.50"
vzen_sku_type: LARGE
ip_sec_enabled: false
- name: Update an existing Virtual Service Edge node by ID
zscaler.ziacloud.zia_virtual_service_edge_node:
provider: '{{ provider }}'
id: 123456
name: "VZEN-Updated"
status: DISABLED
- name: Delete a Virtual Service Edge node
zscaler.ziacloud.zia_virtual_service_edge_node:
provider: '{{ provider }}'
id: 123456
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The Virtual Service Edge node resource record. Returned: on success |
|
The default gateway IP address. Returned: success |
|
The unique identifier for the Virtual Service Edge node. Returned: success |
|
Whether the node is deployed for production. Returned: success |
|
The Virtual Service Edge cluster IP address. Returned: success |
|
Whether IPSec traffic termination is enabled. Returned: success |
|
Name of the Virtual Service Edge node. Returned: success |
|
The status of the Virtual Service Edge cluster. Returned: success |
|
The Virtual Service Edge cluster subnet mask. Returned: success |
|
The Virtual Service Edge cluster type. Returned: success |