Skip to main content

ApplyNetworkSettingsRequest

interfacestring

Interface to reconfigure. Required when any of method, address, prefix, gateway or dns is set.

Possible values: non-empty

methodNetworkAddressMethod

Required when any of interface, address, prefix, gateway or dns is set — the managed ifupdown stanza is always rewritten in full.

Possible values: [dhcp, static]

addressstring

Static address without prefix. Required when method is static.

prefixinteger

Prefix length for a static address. Required when method is static.

Possible values: >= 0 and <= 128

gatewaystring

Default gateway. Empty string clears a previously set gateway.

dnsstring[]

DNS nameservers. Empty array clears them.

allowAllSourcesboolean

Set the access-scope toggle. Omitted leaves it unchanged.

listenPortinteger

Persist a new listen port for the next daemon start. Omitted leaves it unchanged.

Possible values: >= 1 and <= 65535

ApplyNetworkSettingsRequest
{
"interface": "string",
"method": "dhcp",
"address": "string",
"prefix": 0,
"gateway": "string",
"dns": [
"string"
],
"allowAllSources": true,
"listenPort": 0
}