.. _vyos.rest.vyos_ping_module: ******************* vyos.rest.vyos_ping ******************* **Test reachability using ping via VyOS REST API.** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - Sends an ICMP ping via the VyOS HTTPS REST API (/show endpoint) and checks reachability. Mirrors ``vyos.vyos.vyos_ping``. Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
api_key
string / required
count
integer
Default:
5
Number of packets to send.
dest
string / required
Destination IP address or hostname.
hostname
string / required
interval
integer
Interval between pings in seconds.
port
integer
Default:
443
size
integer
Packet size in bytes.
source
string
Source interface or IP address.
state
string
    Choices:
  • present ←
  • absent
present = expect success; absent = expect failure.
timeout
integer
Default:
30
ttl
integer
Time-to-live value.
verify_ssl
boolean
    Choices:
  • no ←
  • yes

Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this module: .. raw:: html
Key Returned Description
commands
list
always
Ping command tokens sent to the API.

packet_loss
string
always
Packet loss percentage string.

packets_rx
integer
always
Packets received.

packets_tx
integer
always
Packets transmitted.

rtt
dictionary
when available
RTT statistics dict (min/avg/max/mdev).



Status ------ Authors ~~~~~~~ - VyOS Community (@vyos)