community.fortios.fmgr_secprof_waf module – FortiManager web application firewall security profile
Note
This module is part of the community.fortios collection (version 1.0.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 community.fortios
.
To use it in a playbook, specify: community.fortios.fmgr_secprof_waf
.
Parameters
Parameter |
Comments |
---|---|
EXPERTS ONLY! KNOWLEDGE OF FMGR JSON API IS REQUIRED! List of multiple child objects to be added. Expects a list of dictionaries. Dictionaries must use FortiManager API parameters, not the ansible ones listed below. If submitted, all other prefixed sub-parameters ARE IGNORED. This object is MUTUALLY EXCLUSIVE with its options. We expect that you know what you are doing with these list parameters, and are leveraging the JSON API Guide. WHEN IN DOUBT, USE THE SUB OPTIONS BELOW INSTEAD TO CREATE OBJECTS WITH MULTIPLE TASKS |
|
Blocked address. |
|
Enable/disable logging on blocked addresses. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Status. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Trusted address. |
|
The ADOM the configuration should belong to. Default: “root” |
|
Comment. |
|
EXPERTS ONLY! KNOWLEDGE OF FMGR JSON API IS REQUIRED! List of multiple child objects to be added. Expects a list of dictionaries. Dictionaries must use FortiManager API parameters, not the ansible ones listed below. If submitted, all other prefixed sub-parameters ARE IGNORED. This object is MUTUALLY EXCLUSIVE with its options. We expect that you know what you are doing with these list parameters, and are leveraging the JSON API Guide. WHEN IN DOUBT, USE THE SUB OPTIONS BELOW INSTEAD TO CREATE OBJECTS WITH MULTIPLE TASKS |
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Length of HTTP content in bytes (0 to 2147483647). |
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Host address. |
|
HTTP content length in request. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
HTTP header length in request. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Enable/disable hostname check. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
HTTP line length in request. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Enable/disable malformed HTTP request check. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum number of cookies in HTTP request. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum number of HTTP header line. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum number of range segments in HTTP range line. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum number of parameters in URL. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Enable/disable HTTP method check. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum length of parameter in URL, HTTP POST request or HTTP body. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
URL pattern. |
|
Enable/disable regular expression based pattern match. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum length of parameter in URL. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Enable/disable HTTP version check. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Length of HTTP header in bytes (0 to 2147483647). |
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action for a hostname constraint. choice | allow | Allow. choice | block | Block. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Length of HTTP line in bytes (0 to 2147483647). |
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum number of cookies in HTTP request (0 to 2147483647). |
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum number HTTP header lines (0 to 2147483647). |
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum number of range segments in HTTP range line (0 to 2147483647). |
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Maximum number of parameters in URL (0 to 2147483647). |
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Maximum length of parameter in URL, HTTP POST request or HTTP body in bytes (0 to 2147483647). |
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Maximum length of URL parameter in bytes (0 to 2147483647). |
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Action. choice | allow | Allow. choice | block | Block. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Enable/disable the constraint. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Enable/disable extended logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Disable/Enable external HTTP Inspection. choice | disable | Disable external inspection. choice | enable | Enable external inspection. Choices:
|
|
EXPERTS ONLY! KNOWLEDGE OF FMGR JSON API IS REQUIRED! List of multiple child objects to be added. Expects a list of dictionaries. Dictionaries must use FortiManager API parameters, not the ansible ones listed below. If submitted, all other prefixed sub-parameters ARE IGNORED. This object is MUTUALLY EXCLUSIVE with its options. We expect that you know what you are doing with these list parameters, and are leveraging the JSON API Guide. WHEN IN DOUBT, USE THE SUB OPTIONS BELOW INSTEAD TO CREATE OBJECTS WITH MULTIPLE TASKS |
|
Methods. FLAG Based Options. Specify multiple in list form. flag | delete | HTTP DELETE method. flag | get | HTTP GET method. flag | head | HTTP HEAD method. flag | options | HTTP OPTIONS method. flag | post | HTTP POST method. flag | put | HTTP PUT method. flag | trace | HTTP TRACE method. flag | others | Other HTTP methods. flag | connect | HTTP CONNECT method. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Host address. |
|
Allowed Methods. FLAG Based Options. Specify multiple in list form. flag | delete | HTTP DELETE method. flag | get | HTTP GET method. flag | head | HTTP HEAD method. flag | options | HTTP OPTIONS method. flag | post | HTTP POST method. flag | put | HTTP PUT method. flag | trace | HTTP TRACE method. flag | others | Other HTTP methods. flag | connect | HTTP CONNECT method. Choices:
|
|
URL pattern. |
|
Enable/disable regular expression based pattern match. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | low severity choice | medium | medium severity choice | high | High severity Choices:
|
|
Status. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Sets one of three modes for managing the object. Allows use of soft-adds instead of overwriting existing values Choices:
|
|
WAF Profile name. |
|
EXPERTS ONLY! KNOWLEDGE OF FMGR JSON API IS REQUIRED! List of multiple child objects to be added. Expects a list of dictionaries. Dictionaries must use FortiManager API parameters, not the ansible ones listed below. If submitted, all other prefixed sub-parameters ARE IGNORED. This object is MUTUALLY EXCLUSIVE with its options. We expect that you know what you are doing with these list parameters, and are leveraging the JSON API Guide. WHEN IN DOUBT, USE THE SUB OPTIONS BELOW INSTEAD TO CREATE OBJECTS WITH MULTIPLE TASKS |
|
The minimum number of Credit cards to detect violation. |
|
Action. choice | allow | Allow. choice | block | Block. choice | erase | Erase credit card numbers. Choices:
|
|
Case sensitivity in pattern. choice | disable | Case insensitive in pattern. choice | enable | Case sensitive in pattern. Choices:
|
|
Traffic direction. choice | request | Match HTTP request. choice | response | Match HTTP response. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Signature name. |
|
Match pattern. |
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Status. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Match HTTP target. FLAG Based Options. Specify multiple in list form. flag | arg | HTTP arguments. flag | arg-name | Names of HTTP arguments. flag | req-body | HTTP request body. flag | req-cookie | HTTP request cookies. flag | req-cookie-name | HTTP request cookie names. flag | req-filename | HTTP request file name. flag | req-header | HTTP request headers. flag | req-header-name | HTTP request header names. flag | req-raw-uri | Raw URI of HTTP request. flag | req-uri | URI of HTTP request. flag | resp-body | HTTP response body. flag | resp-hdr | HTTP response headers. flag | resp-status | HTTP response status. Choices:
|
|
Disabled signatures |
|
Disabled signature subclasses. |
|
Action. choice | allow | Allow. choice | block | Block. choice | erase | Erase credit card numbers. Choices:
|
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
|
Status. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
EXPERTS ONLY! KNOWLEDGE OF FMGR JSON API IS REQUIRED! List of multiple child objects to be added. Expects a list of dictionaries. Dictionaries must use FortiManager API parameters, not the ansible ones listed below. If submitted, all other prefixed sub-parameters ARE IGNORED. This object is MUTUALLY EXCLUSIVE with its options. We expect that you know what you are doing with these list parameters, and are leveraging the JSON API Guide. WHEN IN DOUBT, USE THE SUB OPTIONS BELOW INSTEAD TO CREATE OBJECTS WITH MULTIPLE TASKS |
|
Enable/disable match negation. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
URL pattern. |
|
Enable/disable regular expression based pattern match. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Source address. |
|
Action. choice | bypass | Allow the HTTP request, also bypass further WAF scanning. choice | permit | Allow the HTTP request, and continue further WAF scanning. choice | block | Block HTTP request. Choices:
|
|
Host address. |
|
Enable/disable logging. choice | disable | Disable setting. choice | enable | Enable setting. Choices:
|
|
Severity. choice | low | Low severity. choice | medium | Medium severity. choice | high | High severity. Choices:
|
Notes
Note
Full Documentation at https://ftnt-ansible-docs.readthedocs.io/en/latest/.
Examples
- name: DELETE Profile
community.fortios.fmgr_secprof_waf:
name: "Ansible_WAF_Profile"
comment: "Created by Ansible Module TEST"
mode: "delete"
- name: CREATE Profile
community.fortios.fmgr_secprof_waf:
name: "Ansible_WAF_Profile"
comment: "Created by Ansible Module TEST"
mode: "set"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
full API response, includes status code and message Returned: always |
Authors
Luke Weighall (@lweighall)
Andrew Welsh (@Ghilli3)
Jim Huber (@p4r4n0y1ng)