.. _vyos.rest.vyos_httpapi: ************** vyos.rest.vyos ************** **HttpApi plugin for VyOS REST API** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - This HttpApi plugin provides methods to connect to VyOS devices via their HTTPS REST API. - Use with ``ansible_connection=ansible.netcommon.httpapi`` and ``ansible_network_os=vyos.rest.vyos``. - The VyOS REST API must be enabled with ``set service https api keys id ansible key YOUR_KEY``, ``set service https api rest``, then ``commit && save``. Parameters ---------- .. raw:: html
Parameter Choices/Defaults Configuration Comments
api_key
string
env:VYOS_API_KEY
var: ansible_httpapi_api_key
var: ansible_vyos_api_key
The API key configured on the VyOS device.
Set ansible_httpapi_api_key in inventory or the VYOS_API_KEY environment variable.

Status ------ Authors ~~~~~~~ - VyOS Community (@vyos) .. hint:: Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.