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
/networksAuthorizations
AuthorizationstringrequiredAuthorization header carrying a workspace API key, as “Bearer kbn_live_…”. The X-Api-Key header is accepted equivalently.
Bodyapplication/json
namestringrequiredName of the network.
roleenum<string>Role the network plays.
Available options: local, wireless, storage, vpn, data_center, edge, public, management, dmz, iot, intercommunication
ipAddressstringrequiredBase address of the network.
subnetstringrequiredSubnet in CIDR notation, for example `/24`.
descriptionstringFree-text description of the network.
vlanIdstringVLAN the network is carried on.
Response200 · application/json
The network was created.
idstring<uuid>requiredIdentifier of the newly created network.