OPNexusdocs

API: variables

GET /api/hosts/{host_id}/variables#

Read

Permission hosts.read (look)

Parameters

host_id *pathstring (uuid)

Response 200

PUT /api/hosts/{host_id}/variables#

Replace

Replace this host's variables with exactly the given set.

Permission hosts.prepare (prepare)

Parameters

host_id *pathstring (uuid)

Request body VariablesUpdate

Show 2 fields
FieldTypeNotes
expected_versionstring | null
variablesmap<string, string>

Response 200

GET /api/interface-roles#

List Roles

Every interface role in use anywhere: name -> {host name: interface identifier}. Feeds the interface choice of the forms.

Permission hosts.read (look)

Response 200