Take a static outbound address for a project
A fixed public address the project's sandboxes at that site leave from, for allowlists on the other end.
A fixed public address the project's sandboxes at that site leave from, for allowlists on the other end. It is outbound only; inbound traffic still reaches a sandbox through its port addresses and domains. A sandbox following its project (setSandboxExit via: project) leaves from it unless the project has a default proxy. The address stays the project's across sleep, wake and moves. Needs the static_addresses entitlement; max_static_addresses counts them per project and site. A site the cell does not run at is invalid on site.
A key with the network:write scope.
Request
curl -X POST "https://api.pod.mapier.ai/v1/static-addresses" \
-H "Authorization: Bearer $POD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"site":"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 |
|---|---|---|---|
site | string | Yes | A site the cell runs at; the catalog's regions names them. |
project | string | No | The key's own project by default, and the only one it may name. A person must name one. |
Answer
201. The address, assigned.
{
"id": "sip_3ahrz6dmv29gqy5ckt18fpx4b",
"address": "example",
"site": "example",
"project_id": "prj_3ahrz6dmv29gqy5ckt18fp",
"state": "assigned",
"assigned_at": null,
"cooling_until": null
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
address | string | Yes | The public IPv4 or IPv6 address. |
site | string | Yes | A site the cell runs at; the catalog's regions names them. |
project_id | string | Yes | |
state | "assigned" | "cooling" | Yes | Treat a value you do not know as not assigned. |
assigned_at | string | null | Yes | |
cooling_until | string | null | Yes |
Errors
The refusals this call is known for: invalid, forbidden, plan_required, account_restricted, quota_exceeded. 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.staticAddresses.create({ site }) |
| Python | pod.network.static_addresses.create(site) |