$ ansible-doc -t module cisco.sccfm.list_access_groups
> MODULE cisco.sccfm.list_access_groups (sccfm-ansible/plugins/modules/list_access_groups.py)
List ASA access groups from your SCC Firewall Manager tenant.
Supports pagination via `limit' and `offset'.
Supports Lucene query filtering via `query'.
OPTIONS (= indicates it is required):
- config_path Optional path to the canonical SCCFM profile
configuration file.
default: null
type: path
- limit Maximum number of results to return.
default: 50
type: int
- offset Pagination offset (number of results to skip).
default: 0
type: int
- profile Named SCCFM profile configured by `sccfm-cli configure'.
default: default
type: str
- query Optional Lucene query string to filter results.
default: null
type: str
AUTHOR: Cisco SCCFM Team (@CiscoDevNet)
EXAMPLES:
# List all access groups
- name: List access groups
cisco.sccfm.list_access_groups:
profile: default
register: result
- name: Display access groups
ansible.builtin.debug:
var: result.access_groups
# Using module_defaults (recommended)
- name: List access groups with shared auth
hosts: localhost
gather_facts: false
module_defaults:
group/cisco.sccfm.all:
profile: default
tasks:
- name: List access groups
cisco.sccfm.list_access_groups:
limit: 100
RETURN VALUES:
- access_groups List of access groups returned by the API.
elements: dict
returned: success
type: list
contains:
- entity_uid UID of the device or manager.
type: str
- name Access group name.
type: str
- uid Unique identifier.
type: str
- count Total number of matching access groups.
returned: success
type: int
- limit The limit used in the request.
returned: success
type: int
- offset The offset used in the request.
returned: success
type: int