:source: fmgr_wanprof_system_virtualwanlink_healthcheck.py
:orphan:
.. _fmgr_wanprof_system_virtualwanlink_healthcheck:
fmgr_wanprof_system_virtualwanlink_healthcheck -- SD-WAN status checking or health checking.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 2.0.0
.. warning::
Starting in version 3.0.0, all input arguments will be named using the underscore naming convention (snake_case).
- Argument name before 3.0.0: ``var-name``, ``var name``, ``var.name``
- New argument name starting in 3.0.0: ``var_name``
FortiManager Ansible v2.4+ supports both previous argument name and new underscore name.
You will receive deprecation warnings if you keep using the previous argument name.
You can ignore the warning by setting deprecation_warnings=False in ansible.cfg.
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module is able to configure a FortiManager device.
- Examples include all parameters and values need to be adjusted to data sources before usage.
- Tested with FortiManager v7.x.
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible-core>=2.16.0
FortiManager Version Compatibility
----------------------------------
.. raw:: html
Supported Version Ranges: v6.0.0 -> v7.6.2
Parameters
----------
.. raw:: html
- access_token -The token to access FortiManager without using username and password. type: str required: false
- bypass_validation - Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters. type: bool required: false default: False
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- forticloud_access_token - Access token of forticloud managed API users, this option is available with FortiManager later than 6.4.0. type: str required: false
- proposed_method - The overridden method for the underlying Json RPC request. type: str required: false choices: set, update, add
- rc_succeeded - The rc codes list with which the conditions to succeed will be overriden. type: list required: false
- rc_failed - The rc codes list with which the conditions to fail will be overriden. type: list required: false
- state - The directive to create, update or delete an object type: str required: true choices: present, absent
- workspace_locking_adom - Acquire the workspace lock if FortiManager is running in workspace mode. type: str required: false choices: global, custom adom including root
- workspace_locking_timeout - The maximum time in seconds to wait for other users to release workspace lock. type: integer required: false default: 300
- adom - The parameter in requested url type: str required: true
- wanprof - The parameter in requested url type: str required: true
- wanprof_system_virtualwanlink_healthcheck - SD-WAN status checking or health checking. type: dict
- _dynamic_server (Alias name: _dynamic-server) Dynamic server. type: str
more...
Supported Version Ranges: v6.0.0 -> v6.4.15
- addr_mode (Alias name: addr-mode) Address mode (ipv4 or ipv6). type: str choices: [ipv4, ipv6]
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- failtime Number of failures before server is considered lost (1 - 3600, default = 5). type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- http_agent (Alias name: http-agent) String in the http-agent field in the http header. type: str
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- http_get (Alias name: http-get) Url used to communicate with the server if the protocol if the protocol is http. type: str
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- http_match (Alias name: http-match) Response string expected from the server if the protocol is http. type: str
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- interval Status check interval, or the time between attempting to connect to the server (1 - 3600 sec, default = 5). type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- members Member sequence number list. type: list or str
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- name Status check or health check name. type: str
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- packet_size (Alias name: packet-size) Packet size of a twamp test session, type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- password Twamp controller password in authentication mode type: list
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- port Port number used to communicate with the server over the selected protocol. type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- protocol Protocol used to determine if the fortigate can communicate with the server. type: str choices: [ping, tcp-echo, udp-echo, http, twamp, ping6, dns]
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- recoverytime Number of successful responses received before server is considered recovered (1 - 3600, default = 5). type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- security_mode (Alias name: security-mode) Twamp controller security mode. type: str choices: [none, authentication]
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- server Ip address or fqdn name of the server. type: list
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- sla Sla. type: list
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- id Sla id. type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- jitter_threshold (Alias name: jitter-threshold) Jitter for sla to make decision in milliseconds. type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- latency_threshold (Alias name: latency-threshold) Latency for sla to make decision in milliseconds. type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- link_cost_factor (Alias name: link-cost-factor) Criteria on which to base link selection. type: list choices: [latency, jitter, packet-loss]
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- packetloss_threshold (Alias name: packetloss-threshold) Packet loss for sla to make decision in percentage. type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- threshold_alert_jitter (Alias name: threshold-alert-jitter) Alert threshold for jitter (ms, default = 0). type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- threshold_alert_latency (Alias name: threshold-alert-latency) Alert threshold for latency (ms, default = 0). type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- threshold_alert_packetloss (Alias name: threshold-alert-packetloss) Alert threshold for packet loss (percentage, default = 0). type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- threshold_warning_jitter (Alias name: threshold-warning-jitter) Warning threshold for jitter (ms, default = 0). type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- threshold_warning_latency (Alias name: threshold-warning-latency) Warning threshold for latency (ms, default = 0). type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- threshold_warning_packetloss (Alias name: threshold-warning-packetloss) Warning threshold for packet loss (percentage, default = 0). type: int
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- update_cascade_interface (Alias name: update-cascade-interface) Enable/disable update cascade interface. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- update_static_route (Alias name: update-static-route) Enable/disable updating the static route. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.0.0 -> v7.6.2
- internet_service_id (Alias name: internet-service-id) Internet service id. type: str
more...
Supported Version Ranges: v6.2.0 -> v7.2.0
- probe_packets (Alias name: probe-packets) Enable/disable transmission of probe packets. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.2.0 -> v7.6.2
- sla_fail_log_period (Alias name: sla-fail-log-period) Time interval in seconds that sla fail log messages will be generated (0 - 3600, default = 0). type: int
more...
Supported Version Ranges: v6.2.0 -> v7.6.2
- sla_pass_log_period (Alias name: sla-pass-log-period) Time interval in seconds that sla pass log messages will be generated (0 - 3600, default = 0). type: int
more...
Supported Version Ranges: v6.2.0 -> v7.6.2
- timeout How long to wait before not receiving a reply from the server to consider the connetion attempt a failure (1 - 255 sec, default = 1). type: int
more...
Supported Version Ranges: v6.2.0 -> v6.4.15
- ha_priority (Alias name: ha-priority) Ha election priority (1 - 50). type: int
more...
Supported Version Ranges: v6.2.2 -> v7.6.2
- diffservcode Differentiated services code point (dscp) in the ip header of the probe packet. type: str
more...
Supported Version Ranges: v6.2.5 -> v7.6.2
- probe_timeout (Alias name: probe-timeout) Time to wait before a probe packet is considered lost (500 - 5000 msec, default = 500). type: int
more...
Supported Version Ranges: v6.2.5 -> v7.6.2
- dns_request_domain (Alias name: dns-request-domain) Fully qualified domain name to resolve for the dns probe. type: str
more...
Supported Version Ranges: v6.4.0 -> v6.4.0
- probe_count (Alias name: probe-count) Number of most recent probes that should be used to calculate latency and jitter (5 - 30, default = 30). type: int
more...
Supported Version Ranges: v6.4.0 -> v6.4.0
- system_dns (Alias name: system-dns) Enable/disable system dns as the probe server. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.4.0 -> v6.4.0
Notes
-----
.. note::
- Running in workspace locking mode is supported in this FortiManager module, the top level parameters workspace_locking_adom and workspace_locking_timeout help do the work.
- To create or update an object, use state: present directive.
- To delete an object, use state: absent directive
- Normally, running one module can fail when a non-zero rc is returned. you can also override the conditions to fail or succeed with parameters rc_failed and rc_succeeded
Examples
--------
.. code-block:: yaml+jinja
- name: Example playbook (generated based on argument schema)
hosts: fortimanagers
connection: httpapi
gather_facts: false
tasks:
- name: SD-WAN status checking or health checking.
fortinet.fortimanager.fmgr_wanprof_system_virtualwanlink_healthcheck:
# workspace_locking_adom:
adom:
wanprof:
state: present #
wanprof_system_virtualwanlink_healthcheck:
name: "your value" # Required variable, string
# _dynamic_server:
# addr_mode:
# failtime:
# http_agent:
# http_get:
# http_match:
# interval:
# members:
# packet_size:
# password:
# port:
# protocol:
# recoverytime:
# security_mode:
# server:
# sla:
# - id:
# jitter_threshold:
# latency_threshold:
# link_cost_factor: ["latency", "jitter", "packet-loss"]
# packetloss_threshold:
# threshold_alert_jitter:
# threshold_alert_latency:
# threshold_alert_packetloss:
# threshold_warning_jitter:
# threshold_warning_latency:
# threshold_warning_packetloss:
# update_cascade_interface:
# update_static_route:
# internet_service_id:
# probe_packets:
# sla_fail_log_period:
# sla_pass_log_period:
# timeout:
# ha_priority:
# diffservcode:
# probe_timeout:
# dns_request_domain:
# probe_count:
# system_dns:
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
- meta - The result of the request.returned: always type: dict
- request_url - The full url requested. returned: always type: str sample: /sys/login/user
- response_code - The status of api request. returned: always type: int sample: 0
- response_data - The data body of the api response. returned: optional type: list or dict
- response_message - The descriptive message of the api response. returned: always type: str sample: OK
- system_information - The information of the target system. returned: always type: dict
- rc - The status the request. returned: always type: int sample: 0
- version_check_warning - Warning if the parameters used in the playbook are not supported by the current FortiManager version. returned: if at least one parameter not supported by the current FortiManager version type: list
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Xinwei Du (@dux-fortinet)
- Xing Li (@lix-fortinet)
- Jie Xue (@JieX19)
- Link Zheng (@chillancezen)
- Frank Shen (@fshen01)
- Hongbin Lu (@fgtdev-hblu)