zscaler.zpacloud.zpa_service_edge_controller module – Manages Service Edge Controllers in the ZPA Cloud.
Note
This module is part of the zscaler.zpacloud collection (version 1.4.2).
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_service_edge_controller
.
New in zscaler.zpacloud 1.0.0
Synopsis
This module Update/delete an Service Edge Controller in the ZPA Cloud.
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 |
---|---|
The ZPA API client ID generated from the ZPA console. |
|
The ZPA API client secret generated from the ZPA console. |
|
The ZPA cloud provisioned for your organization. Choices:
|
|
The ZPA tenant ID found in the Administration Company menu in the ZPA console. |
|
The description of the Service Edge Controller |
|
Whether this Service Edge Controller is enabled or not. Choices:
|
|
The unique identifier of the Service Edge Controller. |
|
The unique identifiers of the bulk delete resources. |
|
Name of the Service Edge Controller. |
|
A dict object containing authentication details. |
|
The ZPA API client ID generated from the ZPA console. |
|
The ZPA API client secret generated from the ZPA console. |
|
The ZPA cloud provisioned for your organization. Choices:
|
|
The ZPA tenant ID found in the Administration Company menu in the ZPA console. |
|
The state. Choices:
|
Notes
Note
Check mode is supported.
Examples
- name: Gather information about all Service Edges
zscaler.zpacloud.zpa_service_edge_controller_info:
register: result
- name: Extract Service Edge Controller IDs
set_fact:
service_edge_ids: "{{ result.pses | map(attribute='id') | list }}"
- name: Bulk delete Service Edge Controllers
zscaler.zpacloud.zpa_service_edge_controller:
ids: "{{ service_edge_ids }}"
- name: Update Service Edge Controller Description
zscaler.zpacloud.zpa_service_edge_controller:
name: 'ServiceEdgeController01'
description: 'Update Service Edge Controller 01'
register: result