PARALLAX

fortios_monitor

Execute FortiOS API operations through native controller HTTPAPI; monitor actions report changed=false; generic results are private

Collection: fortinet.fortios

Full Name: fortinet.fortios.fortios_monitor

Controller module — runs on the local controller, not on remote hosts.

Synopsis

Execute FortiOS API operations through native controller HTTPAPI; monitor actions report changed=false; generic results are private

Parameters

NameTypeRequiredDefaultDescription
access_tokenstr
enable_logboolfalse
paramsdict
selectorstryes
vdomstrroot

Example

yaml
# Define these inventory variables: fortios_access_token, fortios_fortitoken_token.
- fortinet.fortios.fortios_monitor:
    access_token: '{{ fortios_access_token }}'
    params:
        tokens: '{{ fortios_fortitoken_token }}'
    selector: activate.user.fortitoken
    vdom: root
  name: Activate FortiToken

# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_monitor:
    access_token: '{{ fortios_access_token }}'
    params:
        event_log_message: Reboot Request From Ansible
    selector: reboot.system.os
    vdom: root
  name: Reboot This Device
Search
    ↑ ↓ move↵ openesc close