.. _vyos.rest.vyos_image_module: ******************** vyos.rest.vyos_image ******************** **Manage VyOS system images via the REST API.** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - Adds or removes VyOS system images using the HTTPS REST API (``/image`` endpoint). - Use *state=present* to download and install an image from a URL. - Use *state=absent* to delete an installed image by name. 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.
name
string
Version name of the image to remove (e.g. 1.4-rolling-202401010000).
Required when state=absent.
port
integer
Default:
443
HTTPS port for the REST API.
state
string / required
    Choices:
  • present
  • absent
{'present': 'Download and install the image from url.'}
{'absent': 'Delete the image specified by name.'}
timeout
integer
Default:
300
Request timeout in seconds. Image downloads can take several minutes; increase this value accordingly.
url
string
HTTP(S) URL of the VyOS .iso file to install.
Required when state=present.
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 image add/delete operation.



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