Skip to main content

System Batch Configure

POST 

/vyos/system/batch

Execute a batch of system configuration operations atomically.

The item_name field identifies the primary item (hostname, username, IP address, syslog facility, etc.). Each operation's value field provides one additional argument; for operations requiring two extra arguments, encode them comma-separated: "facility,level".

Available operations mirror SystemBatchBuilder public methods.

Example — change hostname::

POST /vyos/system/batch { "item_name": "new-hostname", "operations": [{"op": "set_hostname"}] }

Example — add syslog remote host facility::

POST /vyos/system/batch { "item_name": "192.168.1.100", "operations": [{"op": "set_syslog_remote_facility", "value": "all,info"}] }

Request

Responses

Successful Response