drmofu.fortiflexvm.fortiflexvm_groups_list_info (2.0.0) — module

Get list of FortiFlex groups (asset folders).

| "added in version" 1.0.0 of drmofu.fortiflexvm"

Authors: Xinwei Du (@DrMofu)

Install collection

Install with ansible-galaxy collection install drmofu.fortiflexvm:==2.0.0


Add to requirements.yml

  collections:
    - name: drmofu.fortiflexvm
      version: 2.0.0

Description

This module returns list of FortiFlex groups (asset folders that have FortiFlex products in them).

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get list of FortiFlex groups
  hosts: localhost
  collections:
    - fortinet.fortiflexvm
  vars:
    username: "<your_own_value>"
    password: "<your_own_value>"
  tasks:
    - name: Get groups list
      fortinet.fortiflexvm.fortiflexvm_groups_list_info:
        username: "{{ username }}"
        password: "{{ password }}"
      register: result

    - name: Display response
      debug:
        var: result.groups

Inputs

    
password:
    description:
    - The password to authenticate. If not declared, the code will read the environment
      variable FORTIFLEX_ACCESS_PASSWORD.
    required: false
    type: str

username:
    description:
    - The username to authenticate. If not declared, the code will read the environment
      variable FORTIFLEX_ACCESS_USERNAME.
    required: false
    type: str

Outputs

groups:
  contains:
    availableTokens:
      description: The number of available tokens for the FortiFlex group.
      returned: always
      sample: 5
      type: int
    folderPath:
      description: The folder path of the FortiFlex group.
      returned: always
      sample: My Assets/Department A/Group 1
      type: str
    usedTokens:
      description: The number of used tokens for the FortiFlex group.
      returned: always
      sample: 22
      type: int
  description: List of groups associated with the specified user.
  returned: always
  type: list