:source: fadcos_waf_http_protocol_constraint.py :orphan: .. fadcos_waf_http_protocol_constraint: fadcos_waf_http_protocol_constraint -- Configuring an HTTP Protocol Constraint policy ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. versionadded:: 1.3.0 .. contents:: :local: :depth: 1 Synopsis -------- - Configuring an HTTP Protocol Constraint policy Requirements ------------ The below requirements are needed on the host that executes this module. - ansible>=2.8 FortiADC Version Compatibility ------------------------------ .. raw:: html
v7.1.4 v7.2.2 v7.4.0
fadcos_waf_http_protocol_constraint yes yes yes

Parameters ---------- .. raw:: html

Examples -------- .. code-block:: yaml+jinja - name: hosts: all vars: connection: httpapi gather_facts: false tasks: - name: Add WAF http_protocol_constraint fadcos_waf_http_protocol_constraint: action: add name: htest1 constraint_method_override: disable illegal_host_name: disable illegal_host_name_action: alert illegal_host_name_severity: low illegal_http_version: disable illegal_http_version_action: alert illegal_http_version_severity: low illegal_multipart: disable illegal_multipart_action: alert illegal_multipart_severity: low max_body_length: 67108864 max_body_length_action: alert max_body_length_severity: low max_cookie_number: 16 max_cookie_number_action: alert max_cookie_number_severity: low max_header_length: 8192 max_header_length_action: alert max_header_length_severity: low max_header_number: 50 max_header_number_action: alert max_header_number_severity: low max_req_hdr_name_len: 1024 max_req_hdr_name_len_action: alert max_req_hdr_name_len_severity: low max_req_hdr_value_len: 4096 max_req_hdr_value_len_action: alert max_req_hdr_value_len_severity: low max_uri_length: 2048 max_uri_length_action: deny max_uri_length_severity: low max_url_param_name_len: 1024 max_url_param_name_len_action: alert max_url_param_name_len_severity: low max_url_param_value_len: 4096 max_url_param_value_len_action: alert max_url_param_value_len_severity: low - name: get WAF http_protocol_constraint fadcos_waf_http_protocol_constraint: action: get name: htest1 - name: edit WAF http_protocol_constraint fadcos_waf_http_protocol_constraint: action: edit name: htest1 max_header_number: 88 - name: delete WAF http_protocol_constraint fadcos_waf_http_protocol_constraint: action: delete name: HPC1 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 For errorcode please check FortiADC API errorcode at : https://fndn.fortinet.net/index.php?/fortiapi/981-fortiadc/ Status ------ - This module is not guaranteed to have a backwards compatible interface. Authors ------- - Joseph Chen .. hint:: If you notice any issues in this documentation, you can create a pull request to improve it at: https://github.com/fortinet-ansible-dev/ansible-galaxy-fortiadc-sphinxdoc/pulls