fortios_system_automation_trigger – Trigger for automation stitches in Fortinet’s FortiOS and FortiGate.¶
New in version 2.10.
Synopsis¶
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify system feature and automation_trigger category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0
Requirements¶
The below requirements are needed on the host that executes this module.
- ansible>=2.9.0
FortiOS Version Compatibility¶
v6.0.0 |
v6.0.5 |
v6.0.11 |
v6.2.0 |
v6.2.3 |
v6.2.5 |
v6.2.7 |
v6.4.0 |
v6.4.1 |
v6.4.4 |
v7.0.0 |
|
fortios_system_automation_trigger | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
Parameters¶
- access_token - Token-based authentication. Generated from GUI of Fortigate. type: str required: False
- enable_log - Enable/Disable logging for task. type: bool required: False default: False
- vdom - Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit. type: str default: root
- state - Indicates whether to create or remove the object. type: str required: True choices: present, absent
- system_automation_trigger - Trigger for automation stitches. type: dict more...
- description - Description. type: str more...
- event_type - Event type. type: str choices: ioc, event-log, reboot, low-memory, high-cpu, license-near-expiry, ha-failover, config-change, security-rating-summary, virus-ips-db-updated, faz-event, incoming-webhook, fabric-event more...
- fabric_event_name - Fabric connector event handler name. type: str more...
- fabric_event_severity - Fabric connector event severity. type: str more...
- faz_event_name - FortiAnalyzer event handler name. type: str more...
- faz_event_severity - FortiAnalyzer event severity. type: str more...
- faz_event_tags - FortiAnalyzer event tags. type: str more...
- fields - Customized trigger field settings. type: list more...
- id - Entry ID. type: int required: True more...
- name - Name. type: str more...
- value - Value. type: str more...
- ioc_level - IOC threat level. type: str choices: medium, high more...
- license_type - License type. type: str choices: forticare-support, fortiguard-webfilter, fortiguard-antispam, fortiguard-antivirus, fortiguard-ips, fortiguard-management, forticloud, any more...
- logid - Log ID to trigger event. type: int more...
- name - Name. type: str required: True more...
- report_type - Security Rating report. type: str choices: PostureReport, CoverageReport, OptimizationReport, posture, coverage, optimization, any more...
- serial - Fabric connector serial number. type: str more...
- trigger_day - Day within a month to trigger. type: int more...
- trigger_frequency - Scheduled trigger frequency . type: str choices: hourly, daily, weekly, monthly more...
- trigger_hour - Hour of the day on which to trigger (0 - 23). type: int more...
- trigger_minute - Minute of the hour on which to trigger (0 - 59, 60 to randomize). type: int more...
- trigger_type - Trigger type. type: str choices: event-based, scheduled more...
- trigger_weekday - Day of week for trigger. type: str choices: sunday, monday, tuesday, wednesday, thursday, friday, saturday more...
Examples¶
- hosts: fortigates
collections:
- fortinet.fortios
connection: httpapi
vars:
vdom: "root"
ansible_httpapi_use_ssl: yes
ansible_httpapi_validate_certs: no
ansible_httpapi_port: 443
tasks:
- name: Trigger for automation stitches.
fortios_system_automation_trigger:
vdom: "{{ vdom }}"
state: "present"
access_token: "<your_own_value>"
system_automation_trigger:
description: "<your_own_value>"
event_type: "ioc"
fabric_event_name: "<your_own_value>"
fabric_event_severity: "<your_own_value>"
faz_event_name: "<your_own_value>"
faz_event_severity: "<your_own_value>"
faz_event_tags: "<your_own_value>"
fields:
-
id: "11"
name: "default_name_12"
value: "<your_own_value>"
ioc_level: "medium"
license_type: "forticare-support"
logid: "16"
name: "default_name_17"
report_type: "PostureReport"
serial: "<your_own_value>"
trigger_day: "20"
trigger_frequency: "hourly"
trigger_hour: "22"
trigger_minute: "23"
trigger_type: "event-based"
trigger_weekday: "sunday"
Return Values¶
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
- build - Build number of the fortigate image returned: always type: str sample: 1547
- http_method - Last method used to provision the content into FortiGate returned: always type: str sample: PUT
- http_status - Last result given by FortiGate on last operation applied returned: always type: str sample: 200
- mkey - Master key (id) used in the last call to FortiGate returned: success type: str sample: id
- name - Name of the table used to fulfill the request returned: always type: str sample: urlfilter
- path - Path of the table used to fulfill the request returned: always type: str sample: webfilter
- revision - Internal revision number returned: always type: str sample: 17.0.2.10658
- serial - Serial number of the unit returned: always type: str sample: FGVMEVYYQT3AB5352
- status - Indication of the operation's result returned: always type: str sample: success
- vdom - Virtual domain used returned: always type: str sample: root
- version - Version of the FortiGate returned: always type: str sample: v5.6.3