Networks

Create a network

Declare a new network. The address is saved as the network address (`10.0.0.5` with `/24` becomes `10.0.0.0`), and the servers whose primary interface sits in the range without a network join it. A range that overlaps another network, archived ones included, is rejected with a 409 (`network_overlap`). An unknown `role` or `subnet` is rejected with a 422, as is an address that is not a valid IPv4 network (`invalid_network_address`).

Required scope networks:add

post/networks

Authorizations

Authorizationstringrequired

Authorization header carrying a workspace API key, as “Bearer kbn_live_…”. The X-Api-Key header is accepted equivalently.

Bodyapplication/json

namestringrequired

Name of the network.

roleenum<string>

Role the network plays.

Available options: local, wireless, storage, vpn, data_center, edge, public, management, dmz, iot, intercommunication

ipAddressstringrequired

Base address of the network.

subnetstringrequired

Subnet in CIDR notation, for example `/24`.

descriptionstring

Free-text description of the network.

vlanIdstring

VLAN the network is carried on.

Response200 · application/json

The network was created.

idstring<uuid>required

Identifier of the newly created network.