a10_slb_template_cache

Synopsis

RAM caching template

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

name

str/required

Specify cache template name

accept_reload_req

bool

Accept reload requests via cache-control directives in HTTP headers

age

int

Specify duration in seconds cached content valid, default is 3600 seconds (seconds that the cached content is valid (default 3600 seconds))

default_policy_nocache

bool

Specify default policy to be to not cache

disable_insert_age

bool

Disable insertion of age header in response served from RAM cache

disable_insert_via

bool

Disable insertion of via header in response served from RAM cache

max_cache_size

int

Specify maximum cache size in megabytes, default is 80MB (RAM cache size in megabytes (default 80MB))

min_content_size

int

Minimum size (bytes) of response that can be cached - default 512

max_content_size

int

Maximum size (bytes) of response that can be cached - default 81920 (80KB)

local_uri_policy

list

Field local_uri_policy

local_uri

str

Specify Local URI for caching (Specify URI pattern that the policy should be applied to, maximum 63 charaters)

uri_policy

list

Field uri_policy

uri

str

Specify URI for cache policy (Specify URI pattern that the policy should be applied to, maximum 63 charaters)

cache_action

str

‘cache’= Specify if certain URIs should be cached; ‘nocache’= Specify if certain URIs should not be cached;

cache_value

int

Specify seconds that content should be cached, default is age specified in cache template

invalidate

str

Specify if URI should invalidate cache entries matching pattern (pattern that would match entries to be invalidated (64 chars max))

remove_cookies

bool

Remove cookies in response and cache

replacement_policy

str

‘LFU’= LFU;

logging

str

Specify logging template (Logging Config name)

verify_host

bool

Verify request using host before sending response from RAM cache

uuid

str

uuid of the object

user_tag

str

Customized tag

sampling_enable

list

Field sampling_enable

counters1

str

‘all’= all; ‘hits’= Cache hits; ‘miss’= Cache misses; ‘bytes_served’= Bytes served from cache; ‘total_req’= Total requests received; ‘caching_req’= Total requests to cache; ‘nc_req_header’= slbTemplateCacheNcReqHeader, help nc_req_header; ‘nc_res_header’= slbTemplateCacheNcResHeader, help nc_res_header; ‘rv_success’= rv_success; ‘rv_failure’= slbTemplateCacheRvFailure, help rv_failure; ‘ims_request’= ims_request; ‘nm_response’= nm_response; ‘rsp_type_CL’= rsp_type_CL; ‘rsp_type_CE’= rsp_type_CE; ‘rsp_type_304’= rsp_type_304; ‘rsp_type_other’= rsp_type_other; ‘rsp_no_compress’= rsp_no_compress; ‘rsp_gzip’= rsp_gzip; ‘rsp_deflate’= rsp_deflate; ‘rsp_other’= rsp_other; ‘nocache_match’= nocache_match; ‘match’= match; ‘invalidate_match’= invalidate_match; ‘content_toobig’= slbTemplateCacheContentToobig, help content_toobig; ‘content_toosmall’= slbTemplateCacheContentToosmall, help content_toosmall; ‘entry_create_failures’= slbTemplateCacheEntryCreateFailures, help entry_create_failures; ‘mem_size’= mem_size; ‘entry_num’= entry_num; ‘replaced_entry’= replaced_entry; ‘aging_entry’= aging_entry; ‘cleaned_entry’= cleaned_entry; ‘rsp_type_stream’= rsp_type_stream; ‘header_save_error’= header_save_error; ‘rsp_br’= rsp_br;

packet_capture_template

str

Name of the packet capture template to be bind with this object

stats

dict

Field stats

hits

str

Cache hits

miss

str

Cache misses

bytes_served

str

Bytes served from cache

total_req

str

Total requests received

caching_req

str

Total requests to cache

nc_req_header

str

slbTemplateCacheNcReqHeader, help nc_req_header

nc_res_header

str

slbTemplateCacheNcResHeader, help nc_res_header

rv_success

str

Field rv_success

rv_failure

str

slbTemplateCacheRvFailure, help rv_failure

ims_request

str

Field ims_request

nm_response

str

Field nm_response

rsp_type_CL

str

Field rsp_type_CL

rsp_type_CE

str

Field rsp_type_CE

rsp_type_304

str

Field rsp_type_304

rsp_type_other

str

Field rsp_type_other

rsp_no_compress

str

Field rsp_no_compress

rsp_gzip

str

Field rsp_gzip

rsp_deflate

str

Field rsp_deflate

rsp_other

str

Field rsp_other

nocache_match

str

Field nocache_match

match

str

Field match

invalidate_match

str

Field invalidate_match

content_toobig

str

slbTemplateCacheContentToobig, help content_toobig

content_toosmall

str

slbTemplateCacheContentToosmall, help content_toosmall

entry_create_failures

str

slbTemplateCacheEntryCreateFailures, help entry_create_failures

mem_size

str

Field mem_size

entry_num

str

Field entry_num

replaced_entry

str

Field replaced_entry

aging_entry

str

Field aging_entry

cleaned_entry

str

Field cleaned_entry

rsp_type_stream

str

Field rsp_type_stream

header_save_error

str

Field header_save_error

rsp_br

str

Field rsp_br

name

str

Specify cache template name

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