fortiflexvm_groups_list_info - Get list of FortiFlex groups (asset folders).
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
This module returns list of FortiFlex groups (asset folders that have FortiFlex products in them).
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.15
Parameters
----------
.. raw:: html
- username The username to authenticate. If not declared, the code will read the environment variable FORTIFLEX_ACCESS_USERNAME.type: str
- password The password to authenticate. If not declared, the code will read the environment variable FORTIFLEX_ACCESS_PASSWORD.type: str
- accountId Account ID.type: str
Examples
-------------
.. code-block:: yaml
- name: Get list of FortiFlex groups
hosts: localhost
vars:
username: ""
password: ""
tasks:
- name: Get groups list
fortinet.fortiflexvm.fortiflexvm_groups_list_info:
username: "{{ username }}"
password: "{{ password }}"
# accountId: 12345 # Optional
register: result
- name: Display response
ansible.builtin.debug:
var: result.groups
Return Values
-------------
.. raw:: html
- groups List of groups associated with the specified user.type: listreturned: always
- accountId Account ID.type: intreturned: if specified account ID in the argument
- availableTokens The number of available tokens for the FortiFlex group.type: intreturned: always
- folderPath The folder path of the FortiFlex group.type: strreturned: always
- usedTokens The number of used tokens for the FortiFlex group.type: intreturned: always
Authors
-------
- Xinwei Du (@dux-fortinet)
.. hint::
If you notice any issues in this documentation, you can create a pull request to improve it.