a10_waf_template_http_protocol_check

Synopsis

HTTP protocol compliance check

Parameters

Parameters

Choices/Defaults

Comment

state

str/required

[‘noop’, ‘present’, ‘absent’]

State of the object to be created.

ansible_host

str/required

Host for AXAPI authentication

ansible_username

str/required

Username for AXAPI authentication

ansible_password

str/required

Password for AXAPI authentication

ansible_port

int/required

Port for AXAPI authentication

a10_device_context_id

int

[‘1-8’]

Device ID for aVCS configuration

a10_partition

str

Destination/target partition for object/command

template_name

str/required

Key to identify parent object

disable

bool

Disable all checks for HTTP protocol compliance

allowed_headers

bool

Enable allowed-headers check (default disabled)

allowed_headers_list

str

Allowed HTTP headers. Default ‘Host Referer User-Agent Accept Accept-Encoding …’ (see docs for full list) (Allowed HTTP headers (default ‘Host Referer User-Agent Accept Accept-Encoding …’ (see docs for full list)))

allowed_methods

bool

Enable allowed-methods check (default disabled)

allowed_methods_list

str

List of allowed HTTP methods. Default is ‘GET POST’. (List of HTTP methods allowed (default ‘GET POST’))

allowed_versions

bool

Enable allowed-versions check (default disabled)

allowed_versions_list

str

List of allowed HTTP versions (default ‘1.0 1.1 2’)

bad_multipart_request

bool

Check for bad multipart/form-data request body

body_without_content_type

bool

Check for Body request without Content-Type header in request

get_with_content

bool

Check for GET request with Content-Length headers in request

head_with_content

bool

Check for HEAD request with Content-Length headers in request

host_header_with_ip

bool

Check for Host header with IP address

invalid_url_encoding

bool

Check for invalid URL encoding in request

malformed_content_length

bool

Check for malformed content-length in request

malformed_header

bool

Check for malformed HTTP header

malformed_parameter

bool

Check for malformed HTTP query/POST parameter

malformed_request

bool

Check for malformed HTTP request

malformed_request_line

bool

Check for malformed HTTP request line

missing_header_value

bool

Check for missing header value in request

missing_host_header

bool

Check for missing Host header in HTTP/1.1 request

multiple_content_length

bool

Check for multiple Content-Length headers in request

post_with_0_content

bool

Check for POST request with Content-Length 0

post_without_content

bool

Check for POST request without Content-Length/Chunked Encoding headers in request

post_without_content_type

bool

Check for POST request without Content-Type header in request

non_ssl_cookie_prefix

bool

Check for Bad __Secure- or __Host- Cookie Name prefixes in non-ssl request

uuid

str

uuid of the object

Examples


Return Values

modified_values (changed, dict, )

Values modified (or potential changes if using check_mode) as a result of task operation

axapi_calls (always, list, )

Sequential list of AXAPI calls made by the task

endpoint (, str, [‘/axapi/v3/slb/virtual_server’, ‘/axapi/v3/file/ssl-cert’])

The AXAPI endpoint being accessed.

http_method (, str, [‘POST’, ‘GET’])

HTTP method being used by the primary task to interact with the AXAPI endpoint.

request_body (, complex, )

Params used to query the AXAPI

response_body (, complex, )

Response from the AXAPI

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by community.

Authors

  • A10 Networks