For the complete documentation index, see llms.txt. This page is also available as Markdown.

Creating a network

Create a network with PUT /networks/{networkId}.

Requires write access (see Prerequisites).

Network request body properties

Property
Value type
Required
Description
Example value

connectivity.type

string

Required

public for an internet-connected network, private for a Layer 2 segment that carries traffic between your own machines only. A private network you create is isolated: it has no gateway and does not route to the internet or to your other networks.

public

fabric

string

Required

Fabric slug from GET /fabrics.

montreal-a

name

string

Optional

A label for the network, up to 100 characters. Not unique. You can change or clear it later, see Renaming a network.

web tier

addressing.source

string

Optional

provider (default): i3D.net supplies the address space. none: no prefixes are created, you get a bare Layer 2 segment (private networks only).

provider

addressing.prefixes

array

See description

The initial prefixes. Each entry states either {"family": 4, "size": 24} (i3D.net selects the subnet) or, on a private network, {"cidr": "10.20.30.0/24"} (the exact subnet from your own address plan; see Choosing the private subnet yourself). Required for public networks. Optional for private networks: when omitted, exactly one IPv4 /24 is created. The largest block you can request is a /24 (a size of 24 or higher).

[{"family": 4, "size": 24}]

retention

string

Optional

Lifecycle of the network. Networks you create are always persistent; omit the field. Declaring ephemeral is rejected.

persistent

contractId

string

See description

The contract the network's prefixes are billed under. Required unless addressing.source is none (then it must be omitted).

PD-2026-000481

Example request

PUT /networks/{networkId}

Request body for a public network with one IPv4 /24:

{
  "connectivity": { "type": "public" },
  "fabric": "montreal-a",
  "name": "web tier",
  "addressing": {
    "source": "provider",
    "prefixes": [
      { "family": 4, "size": 24 }
    ]
  },
  "contractId": "PD-2026-000481"
}

Request body for a private network with one derived /24 (no prefixes needed):

Request body for a private network on a subnet you choose:

Choosing the private subnet yourself

On a private network you can state the exact subnet of an initial prefix with cidr instead of family and size. i3D.net still allocates and records it; the network reaches active with exactly that subnet, so it fits the address plan you already use elsewhere. Rules:

  • Each entry in addressing.prefixes states either cidr or family + size, never both. Entries of one request may mix the two forms.

  • IPv4 subnets must be inside 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16, with a mask between /24 and /29. IPv6 subnets must be inside fd00::/8, with a mask between /48 and /64.

  • The value must be the network address (10.20.30.0/24, not 10.20.30.5/24).

  • Two prefixes in one request must not overlap each other.

  • Public networks never take a cidr: i3D.net selects public subnets.

A request that breaks one of these rules is refused with 422 (error code E020001) and nothing is created. A subnet that is already in use on one of your private networks is not refused up front: the create is accepted and the network then settles in state failed (see Network lifecycle and states); pick another subnet and create the network again with a new UUID. A replay of the same UUID with a different cidr is a 409 (error code E020003).

Response

If the request is accepted, you receive 202 Accepted with the network in state provisioning and a link to the operation that provisions it.

The vlanId is not in this response yet: it appears once the network has been provisioned.

Retries and idempotency

The same UUID with a different body is refused with 409 (error code E020003). PUT only ever creates; it never replaces an existing network. To create another network, use a new UUID.

Poll the network until it is active; see Network lifecycle and states. Then list its prefixes for the subnet, gateway and VLAN.

Last updated

Was this helpful?