zscaler.ziacloud.zia_browser_control_supported_versions_info module – Gets the supported browsers and their versions
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_browser_control_supported_versions_info.
New in zscaler.ziacloud 2.1.0
Synopsis
Retrieves the list of all supported browsers and their versions for the Browser Control policy.
The API returns a flat list with no server-side filtering, so all filtering is performed locally by this module.
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. |
|
Return only the entry matching a specific browser type. If not set, all supported browsers are returned. Choices:
|
|
The client ID for OAuth2 authentication. |
|
The client secret for OAuth2 authentication. |
|
The Zscaler cloud name provisioned for your organization. Choices:
|
|
Return only browser entries whose The returned |
|
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. |
|
An optional JMESPath expression applied locally to the (already filtered) list of browser entries. Use this for advanced filtering/projection that the simple key filters cannot express. See https://jmespath.org/ for the expression syntax. Each entry exposes the keys |
|
The Sandbox cloud environment for API access. |
|
A string that contains the Sandbox API Key. |
|
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. |
|
Return only browser entries whose The returned |
Notes
Note
Check mode is supported.
All filters are applied client-side after retrieving the full list.
When
versionsorolder_versionsis set, matching entries are returned with theirversionsandolder_versionslists narrowed to ONLY the requested tokens, so the output stays focused on what was searched. A field that was not searched is returned empty.When multiple of
browser_type,versionsandolder_versionsare set, they are combined with logical AND.query(JMESPath) is applied last, to the already filtered list.
Examples
- name: Get all supported browsers and their versions
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
- name: Get supported versions for a specific browser type
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
browser_type: CHROME
# Returns the matching entries with `versions` narrowed to only the searched
# tokens, e.g. [{browser_type: CHROME, versions: [CH143], older_versions: []},
# {browser_type: FIREFOX, versions: [MF145], older_versions: []}]
- name: Find which browsers support specific current versions (focused output)
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
versions:
- CH143
- MF145
# Returns e.g. [{browser_type: CHROME, versions: [], older_versions: [CH100]}]
- name: Find which browsers list a specific older version (focused output)
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
older_versions:
- CH100
- name: Combine simple filters (CHROME entry that also has version CH143)
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
browser_type: CHROME
versions:
- CH143
# --- Advanced local filtering with JMESPath (query is applied last) ---
# Note: a trailing field selector (e.g. ".browser_type") is a JMESPath
# projection and returns ONLY that field. Omit it to return full entries.
- name: Return the full browser entries that currently support version CH143
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
query: "[?contains(versions, 'CH143')]"
- name: Return ONLY the browser type names that support version CH143
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
query: "[?contains(versions, 'CH143')].browser_type"
- name: Project a flat list of browser_type with just its current versions
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
query: "[].{type: browser_type, current: versions}"
- name: Get the full entry for a single browser type via JMESPath
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
query: "[?browser_type=='FIREFOX'] | [0]"
- name: Find browser types that still list any older versions
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
query: "[?length(older_versions) > `0`].browser_type"
# --- Using the result in a playbook ---
- name: Retrieve Chrome supported versions and reuse them
zscaler.ziacloud.zia_browser_control_supported_versions_info:
provider: '{{ provider }}'
browser_type: CHROME
register: chrome_versions
- name: Show the current Chrome versions
ansible.builtin.debug:
msg: "{{ chrome_versions.browsers[0].versions }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
A list of supported browsers and their versions, after any local filtering. Returned: always |
|
The browser type. Returned: success Sample: |
|
Earlier versions of the browser. Returned: success |
|
The current versions of the browser. Returned: success |