.. _vyos.rest.vyos_reset_module: ******************** vyos.rest.vyos_reset ******************** **Execute reset commands on a VyOS device via REST API.** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - Sends a ``reset`` operational command to a VyOS device via the HTTPS REST API (``/reset`` endpoint). - Useful for resetting BGP sessions, VPN tunnels, ARP caches, etc. Requirements ------------ The below requirements are needed on the host that executes this module. - VyOS 1.3+ Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
api_key
string / required
API key configured on the device.
hostname
string / required
IP address or FQDN of the VyOS device.
path
list / elements=string / required
Reset command path tokens.
E.g. ["ip", "bgp", "192.0.2.1"] to reset a BGP peer.
port
integer
Default:
443
HTTPS port for the REST API.
timeout
integer
Default:
30
Request timeout in seconds.
verify_ssl
boolean
    Choices:
  • no ←
  • yes
Validate the device's TLS certificate.

Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this module: .. raw:: html
Key Returned Description
output
string
success
Text output from the reset command (usually empty on success).



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