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.
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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
cidr | string | Yes | An address range in canonical CIDR form, no bit set after the prefix, such as 10.20.0.0/16. |
label | string | Yes |
Answer
201. The range, registered.
{
"id": "prg_3ahrz6dmv29gqy5ckt18fpx4b",
"cidr": "example",
"label": "example",
"created_at": null,
"created_by": "example"
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
cidr | string | Yes | An address range in canonical CIDR form, no bit set after the prefix, such as 10.20.0.0/16. |
label | string | Yes | |
created_at | string | null | Yes | |
created_by | string | Yes | The 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
| Client | Call |
|---|---|
| TypeScript | pod.network.privateRanges.register({ cidr, label }) |
| Python | pod.network.private_ranges.register(cidr, label) |