compute

POST /v1/compute/networks

Create a private network from a server.

All compute endpoints

All developer docs

Authentication

Send an API key as a bearer token. The key must carry the sites.restart permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/compute/networks \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "ip_range": <string>, "server_id": <Uuid> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

The network is created in the server's region and the server joins it. Ranges must be a private IPv4 block between a /8 and a /24, outside 10.42.0.0/16 and 10.43.0.0/16. No charge. Requires sites.restart.

Request body

NameTypeRequiredWhat it is
namestringYes
ip_rangestringYesA private IPv4 block, like 10.10.0.0/16.
server_idUuidYesUUIDv7 identifier — sortable by creation time (docs/02 §8).

Response

NameTypeRequiredWhat it is
idUuidYesUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringYes
ip_rangestringYes
network_zonestringYes
statusstring<pending, active, deleted, failed>Yes
cluster_idstringYesThe cluster that owns this network, or blank.
membersobject[]Yes
created_atstringYes

Errors this endpoint can return

401 · 403 · 404 · 422 · 429 · 503