Note
This module is part of the fortinet.fortios collection (version 2.4.0).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install fortinet.fortios. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: fortinet.fortios.fortios_system_automation_trigger.
New in fortinet.fortios 2.0.0
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
access_token string | Token-based authentication. Generated from GUI of Fortigate. |
enable_log boolean | Enable/Disable logging for task. Choices:
|
member_path string | Member attribute path to operate on. Delimited by a slash character if there are more than one attribute. Parameter marked with member_path is legitimate for doing member operation. |
member_state string | Add or delete a member under specified attribute path. When member_state is specified, the state option is ignored. Choices:
|
state string / required | Indicates whether to create or remove the object. Choices:
|
system_automation_trigger dictionary | Trigger for automation stitches. |
|
description string |
Description. |
|
event_type string |
Event type. Choices:
|
|
fabric_event_name string |
Fabric connector event handler name. |
|
fabric_event_severity string |
Fabric connector event severity. |
|
faz_event_name string |
FortiAnalyzer event handler name. |
|
faz_event_severity string |
FortiAnalyzer event severity. |
|
faz_event_tags string |
FortiAnalyzer event tags. |
|
fields list / elements=dictionary |
Customized trigger field settings. |
|
id integer / required |
Entry ID. see <a href=’#notes’>Notes</a>. |
|
name string |
Name. |
|
value string |
Value. |
|
ioc_level string |
IOC threat level. Choices:
|
|
license_type string |
License type. Choices:
|
|
logid list / elements=dictionary |
Log IDs to trigger event. |
|
id integer / required |
Log ID. see <a href=’#notes’>Notes</a>. |
|
name string / required |
Name. |
|
report_type string |
Security Rating report. Choices:
|
|
serial string |
Fabric connector serial number. |
|
stitch_name string |
Triggering stitch name. Source system.automation-stitch.name. |
|
trigger_datetime string |
Trigger date and time (YYYY-MM-DD HH:MM:SS). |
|
trigger_day integer |
Day within a month to trigger. |
|
trigger_frequency string |
Scheduled trigger frequency . Choices:
|
|
trigger_hour integer |
Hour of the day on which to trigger (0 - 23). |
|
trigger_minute integer |
Minute of the hour on which to trigger (0 - 59). |
|
trigger_type string |
Trigger type. Choices:
|
|
trigger_weekday string |
Day of week for trigger. Choices:
|
|
vdom list / elements=dictionary |
Virtual domain(s) that this trigger is valid for. |
|
name string / required |
Virtual domain name. Source system.vdom.name. |
vdom string | 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. Default: |
Note
- name: Trigger for automation stitches.
fortinet.fortios.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:
-
id: "17"
name: "default_name_18"
report_type: "posture"
serial: "<your_own_value>"
stitch_name: "<your_own_value> (source system.automation-stitch.name)"
trigger_datetime: "<your_own_value>"
trigger_day: "1"
trigger_frequency: "hourly"
trigger_hour: "0"
trigger_minute: "0"
trigger_type: "event-based"
trigger_weekday: "sunday"
vdom:
-
name: "default_name_30 (source system.vdom.name)"
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
build string | Build number of the fortigate image Returned: always Sample: |
http_method string | Last method used to provision the content into FortiGate Returned: always Sample: |
http_status string | Last result given by FortiGate on last operation applied Returned: always Sample: |
mkey string | Master key (id) used in the last call to FortiGate Returned: success Sample: |
name string | Name of the table used to fulfill the request Returned: always Sample: |
path string | Path of the table used to fulfill the request Returned: always Sample: |
revision string | Internal revision number Returned: always Sample: |
serial string | Serial number of the unit Returned: always Sample: |
status string | Indication of the operation’s result Returned: always Sample: |
vdom string | Virtual domain used Returned: always Sample: |
version string | Version of the FortiGate Returned: always Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/fortinet/fortios/fortios_system_automation_trigger_module.html