user_swg_sessions_deauth - User monitor

Added in version 1.1.0.

Synopsis

User monitor.

Use API “/monitor-api/v1/user/swg/sessions/deauth”.

Requirements

The below requirements are needed on the host that executes this module.

  • ansible>=2.17.0

Parameters

  • force_behavior Specify this option to force the method to use to interact with the resource.type: strchoices: ['none', 'read', 'create', 'update', 'delete']default: none
  • bypass_validation Bypass validation of the module.type: booldefault: False
  • params The parameters of the module.[Required]type: dict
    • usernames type: listelements: str
    • session_ids type: listelements: str

Examples

- name: Deauth user SWG sessions
  hosts: fortisase
  gather_facts: false
  tasks:
    - name: Deauth user SWG sessions
      fortinet.fortisase.user_swg_sessions_deauth:
        params:
          usernames:
            - "employee@company.com"
            - "user@company.com"
          session_ids:
            - "Ottawa - Canada-demo@demo.com-0"
            - "San Jose - USA-demo@demo.com-1"

Return Values

  • http_code type: intreturned: always
  • response type: rawreturned: always

Authors

  • Xinwei Du (@dux-fortinet)