-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathzpa_pra_console_controller_info.yml
62 lines (54 loc) · 1.93 KB
/
zpa_pra_console_controller_info.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
# zpa_pra_console_controller_info.yml - Get details (ID and/or Name) of a PRA Console resource.
#
# Description
# ===========
#
# Quick example of how to use the 'zpa_pra_console_controller_info' module to retrieve a PRA Console details from the ZPA Cloud.
#
# This playbook requires proper API credentials to be passed statically or via environment variables connection
# to the ZPA Cloud 'client_id', 'client_secret', customer_id and 'cloud'. These may be defined as host variables
# (see `host_vars/zpa_cloud.yml` for an example) or extra vars.
#
# Modules Used
# ============
#
# zpa_pra_console_controller_info - https://zscaler.github.io/zpacloud-ansible/modules/zpa_pra_console_controller_info_module.html
#
# Usage
# =====
#
# $ ansible-playbook zpa_pra_console_controller_info.yml
- name: Gather PRA Console Details
hosts: localhost
connection: local
vars:
zpa_cloud:
client_id: "{{ client_id }}"
client_secret: "{{ client_secret | default(omit) }}"
customer_id: "{{ customer_id | default(omit) }}"
cloud: "{{ cloud | default(omit) }}"
tasks:
- name: Get Detail Information of All PRA Consoles
zscaler.zpacloud.zpa_pra_console_controller_info:
provider: "{{ zpa_cloud }}"
register: pra_consoles
- name: All PRA Consoles
ansible.builtin.debug:
msg: "{{ pra_consoles }}"
- name: Gather Details of a Specific PRA Consoles by Name
zscaler.zpacloud.zpa_pra_console_controller_info:
provider: "{{ zpa_cloud }}"
name: PRA_Console01
register: console_name
- name: PRA Console By Name
ansible.builtin.debug:
msg: "{{ console_name }}"
- name: Gather Details of a Specific PRA Consoleby ID
zscaler.zpacloud.zpa_pra_console_controller_info:
provider: "{{ zpa_cloud }}"
id: "216196257331282583"
register: console_id
- name: PRA Console By ID
ansible.builtin.debug:
msg: "{{ console_id }}"