:source: fortios_system_automation_trigger.py
:orphan:
.. fortios_system_automation_trigger:
fortios_system_automation_trigger -- Trigger for automation stitches in Fortinet's FortiOS and FortiGate.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 2.0.0
.. contents::
:local:
:depth: 1
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.15
Tips
----
Using member operation to add an element to an existing object.
FortiOS Version Compatibility
-----------------------------
Supported Version Ranges: v6.0.0 -> v7.6.6
Parameters
----------
.. raw:: html
- 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
- member_path - Member attribute path to operate on. type: str
- member_state - Add or delete a member under specified attribute path. type: str choices: present, absent
- 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...
| Supported Version Ranges |
| system_automation_trigger |
v6.0.0 -> 7.6.6 |
- description - Description. type: str
more...
|
Supported Version Ranges |
| description |
v7.0.0 -> 7.6.6 |
- event_type - Event type. type: str choices: ioc, event-log, reboot, low-memory, high-cpu, license-near-expiry, local-cert-near-expiry, ha-failover, config-change, security-rating-summary, virus-ips-db-updated, faz-event, incoming-webhook, fabric-event, ips-logs, anomaly-logs, virus-logs, ssh-logs, webfilter-violation, traffic-violation, stitch
more...
|
Supported Version Ranges |
| event_type |
v6.0.0 -> 7.6.6 |
| [ioc] |
v6.0.0 -> 7.6.6 |
| [event-log] |
v6.0.0 -> 7.6.6 |
| [reboot] |
v6.0.0 -> 7.6.6 |
| [low-memory] |
v6.0.0 -> 7.6.6 |
| [high-cpu] |
v6.0.0 -> 7.6.6 |
| [license-near-expiry] |
v6.0.0 -> 7.6.6 |
| [local-cert-near-expiry] |
v7.2.1 -> 7.6.6 |
| [ha-failover] |
v6.0.0 -> 7.6.6 |
| [config-change] |
v6.0.0 -> 7.6.6 |
| [security-rating-summary] |
v6.0.0 -> 7.6.6 |
| [virus-ips-db-updated] |
v6.0.0 -> 7.6.6 |
| [faz-event] |
v6.2.0 -> 7.6.6 |
| [incoming-webhook] |
v6.4.0 -> 7.6.6 |
| [fabric-event] |
v7.0.0 -> 7.6.6 |
| [ips-logs] |
v7.2.0 -> 7.6.6 |
| [anomaly-logs] |
v7.2.0 -> 7.6.6 |
| [virus-logs] |
v7.2.0 -> 7.6.6 |
| [ssh-logs] |
v7.2.0 -> 7.6.6 |
| [webfilter-violation] |
v7.2.0 -> 7.6.6 |
| [traffic-violation] |
v7.2.0 -> 7.6.6 |
| [stitch] |
v7.6.1 -> 7.6.6 |
- fabric_event_name - Fabric connector event handler name. type: str
more...
|
Supported Version Ranges |
| fabric_event_name |
v7.0.0 -> 7.6.6 |
- fabric_event_severity - Fabric connector event severity. type: str
more...
|
Supported Version Ranges |
| fabric_event_severity |
v7.0.0 -> 7.6.6 |
- faz_event_name - FortiAnalyzer event handler name. type: str
more...
|
Supported Version Ranges |
| faz_event_name |
v6.2.0 -> 7.6.6 |
- faz_event_severity - FortiAnalyzer event severity. type: str
more...
|
Supported Version Ranges |
| faz_event_severity |
v6.2.0 -> 7.6.6 |
- faz_event_tags - FortiAnalyzer event tags. type: str
more...
|
Supported Version Ranges |
| faz_event_tags |
v6.2.0 -> 7.6.6 |
- fields - Customized trigger field settings. type: list member_path: fields:id
more...
| Supported Version Ranges |
| fields |
v6.2.0 -> 7.6.6 |
- id - Entry ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v6.2.0 -> 7.6.6 |
- name - Name. type: str
more...
|
Supported Version Ranges |
| name |
v6.2.0 -> 7.6.6 |
- value - Value. type: str
more...
|
Supported Version Ranges |
| value |
v6.2.0 -> 7.6.6 |
- ioc_level - IOC threat level. type: str choices: medium, high
more...
|
Supported Version Ranges |
| ioc_level |
v6.0.0 -> v7.0.7 |
v7.2.0 -> v7.2.2 |
| [medium] |
v6.0.0 -> v7.0.7 |
| [high] |
v6.0.0 -> v7.0.7 |
- license_type - License type. type: str choices: forticare-support, fortiguard-webfilter, fortiguard-antispam, fortiguard-antivirus, fortiguard-ips, fortiguard-management, forticloud, any
more...
|
Supported Version Ranges |
| license_type |
v6.0.0 -> 7.6.6 |
| [forticare-support] |
v6.0.0 -> 7.6.6 |
| [fortiguard-webfilter] |
v6.0.0 -> 7.6.6 |
| [fortiguard-antispam] |
v6.0.0 -> 7.6.6 |
| [fortiguard-antivirus] |
v6.0.0 -> 7.6.6 |
| [fortiguard-ips] |
v6.0.0 -> 7.6.6 |
| [fortiguard-management] |
v6.0.0 -> 7.6.6 |
| [forticloud] |
v6.0.0 -> 7.6.6 |
| [any] |
v6.4.0 -> 7.6.6 |
- logid - Log IDs to trigger event. type: list member_path: logid:id
more...
| Supported Version Ranges |
| logid |
v6.0.0 -> 7.6.6 |
- id - Log ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v7.0.0 -> 7.6.6 |
- name - Name. type: str required: true
more...
|
Supported Version Ranges |
| name |
v6.0.0 -> 7.6.6 |
- report_type - Security Rating report. type: str choices: posture, coverage, optimization, any, PostureReport, CoverageReport, OptimizationReport
more...
|
Supported Version Ranges |
| report_type |
v6.4.0 -> 7.6.6 |
| [posture] |
v7.0.0 -> 7.6.6 |
| [coverage] |
v7.0.0 -> 7.6.6 |
| [optimization] |
v7.0.0 -> 7.6.6 |
| [any] |
v7.0.0 -> 7.6.6 |
| [PostureReport] |
v6.4.0 -> v6.4.4 |
| [CoverageReport] |
v6.4.0 -> v6.4.4 |
| [OptimizationReport] |
v6.4.0 -> v6.4.4 |
- serial - Fabric connector serial number. type: str
more...
|
Supported Version Ranges |
| serial |
v7.0.0 -> 7.6.6 |
- stitch_name - Triggering stitch name. Source system.automation-stitch.name. type: str
more...
|
Supported Version Ranges |
| stitch_name |
v7.6.1 -> 7.6.6 |
- trigger_datetime - Trigger date and time (YYYY-MM-DD HH:MM:SS). type: str
more...
|
Supported Version Ranges |
| trigger_datetime |
v7.2.1 -> 7.6.6 |
- trigger_day - Day within a month to trigger. type: int
more...
|
Supported Version Ranges |
| trigger_day |
v6.0.0 -> 7.6.6 |
- trigger_frequency - Scheduled trigger frequency . type: str choices: hourly, daily, weekly, monthly, once
more...
|
Supported Version Ranges |
| trigger_frequency |
v6.0.0 -> 7.6.6 |
| [hourly] |
v6.0.0 -> 7.6.6 |
| [daily] |
v6.0.0 -> 7.6.6 |
| [weekly] |
v6.0.0 -> 7.6.6 |
| [monthly] |
v6.0.0 -> 7.6.6 |
| [once] |
v7.2.1 -> 7.6.6 |
- trigger_hour - Hour of the day on which to trigger (0 - 23). type: int
more...
|
Supported Version Ranges |
| trigger_hour |
v6.0.0 -> 7.6.6 |
- trigger_minute - Minute of the hour on which to trigger (0 - 59). type: int
more...
|
Supported Version Ranges |
| trigger_minute |
v6.0.0 -> 7.6.6 |
- trigger_type - Trigger type. type: str choices: event-based, scheduled
more...
|
Supported Version Ranges |
| trigger_type |
v6.0.0 -> 7.6.6 |
| [event-based] |
v6.0.0 -> 7.6.6 |
| [scheduled] |
v6.0.0 -> 7.6.6 |
- trigger_weekday - Day of week for trigger. type: str choices: sunday, monday, tuesday, wednesday, thursday, friday, saturday
more...
|
Supported Version Ranges |
| trigger_weekday |
v6.0.0 -> 7.6.6 |
| [sunday] |
v6.0.0 -> 7.6.6 |
| [monday] |
v6.0.0 -> 7.6.6 |
| [tuesday] |
v6.0.0 -> 7.6.6 |
| [wednesday] |
v6.0.0 -> 7.6.6 |
| [thursday] |
v6.0.0 -> 7.6.6 |
| [friday] |
v6.0.0 -> 7.6.6 |
| [saturday] |
v6.0.0 -> 7.6.6 |
- vdom - Virtual domain(s) that this trigger is valid for. type: list member_path: vdom:name
more...
| Supported Version Ranges |
| vdom |
v7.2.0 -> 7.6.6 |
- name - Virtual domain name. Source system.vdom.name. type: str required: true
more...
|
Supported Version Ranges |
| name |
v7.2.0 -> 7.6.6 |
Notes
-----
.. note::
- Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks
- The module supports check_mode.
Examples
--------
.. code-block:: yaml+jinja
- name: Trigger for automation stitches.
fortinet.fortios.fortios_system_automation_trigger:
vdom: "{{ vdom }}"
state: "present"
access_token: ""
system_automation_trigger:
description: ""
event_type: "ioc"
fabric_event_name: ""
fabric_event_severity: ""
faz_event_name: ""
faz_event_severity: ""
faz_event_tags: ""
fields:
-
id: "11"
name: "default_name_12"
value: ""
ioc_level: "medium"
license_type: "forticare-support"
logid:
-
id: "17"
name: "default_name_18"
report_type: "posture"
serial: ""
stitch_name: " (source system.automation-stitch.name)"
trigger_datetime: ""
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)"
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:
.. raw:: html
- 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
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Link Zheng (@chillancezen)
- Jie Xue (@JieX19)
- Hongbin Lu (@fgtdev-hblu)
- Frank Shen (@frankshen01)
- Miguel Angel Munoz (@mamunozgonzalez)
- Nicolas Thomas (@thomnico)
.. hint::
If you notice any issues in this documentation, you can create a pull request to improve it.