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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_token | str | |||
| enable_log | bool | false | ||
| params | dict | |||
| selector | str | yes | ||
| vdom | str | root |
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