Register a range of your own private network in your own cell

In a cell inside the customer's own cloud account, sandboxes may reach a range of the customer's private network that is registered here and that a policy grants; either alone opens nothing.

POST/v1/private-ranges

In a cell inside the customer's own cloud account, sandboxes may reach a range of the customer's private network that is registered here and that a policy grants; either alone opens nothing. Only the cell's owner organization registers, with network:write; Pod's own cells answer not_supported. The range is canonical CIDR wholly inside 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 or fc00::/7. The cell's own networks, its storage and key endpoints, the metadata addresses and the sandbox's own network can never be registered (invalid on cidr); a range overlapping one already registered is conflict. max_private_ranges counts them. Slots take the new range within seconds.

A key with the network:write scope.

Request

curl -X POST "https://api.pod.mapier.ai/v1/private-ranges" \
  -H "Authorization: Bearer $POD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cidr":"example","label":"example"}'

Parameters

NameInTypeRequiredWhat it is
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
cidrstringYesAn address range in canonical CIDR form, no bit set after the prefix, such as 10.20.0.0/16.
labelstringYes

Answer

201. The range, registered.

201
{
  "id": "prg_3ahrz6dmv29gqy5ckt18fpx4b",
  "cidr": "example",
  "label": "example",
  "created_at": null,
  "created_by": "example"
}
FieldTypeAlwaysWhat it is
idstringYes
cidrstringYesAn address range in canonical CIDR form, no bit set after the prefix, such as 10.20.0.0/16.
labelstringYes
created_atstring | nullYes
created_bystringYesThe person or key that registered it.

Errors

The refusals this call is known for: invalid, forbidden, account_restricted, conflict, quota_exceeded, not_supported. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.network.privateRanges.register({ cidr, label })
Pythonpod.network.private_ranges.register(cidr, label)