Deployments

post/deployments/{deployment_id}/networks

Request

  • Base URL: http://localhost/v2
  • URL: http://localhost/v2/deployments/{deployment_id}/networks
  • Auth: HTTP bearer

Path parameters

deployment_idstring required

The id of the deployment or 'default'

Request body

network_idstring required
network_kind'internal' | 'bridge' | 'macvlan' | 'ipvlanl2' | 'ipvlanl3' required
optionsobject
parent_adapterstring

Example request

{
  "ipam": {
    "ipv4": {
      "address": "172.31.0.42",
      "netmask": "255.255.0.0",
      "gateway": "172.31.0.1"
    }
  }
}

Response

Already created

Changes

No recorded changes to this operation across all 1 revision of this API.