Read how a sandbox's outbound traffic leaves
What the sandbox asked for (`via`) and where its traffic leaves now (`route`).
Not available yet The API does not serve reading or choosing how a sandbox's outbound traffic leaves yet.
What the sandbox asked for (via) and where its traffic leaves now (route). carrying: false while a home-connection route may not carry (the account lost its entitlement, the patient-data setting is on, the proxy's login keeps failing, or the organization is held): its traffic is then refused, never sent from Pod's own addresses.
A key with the network:read scope.
Request
curl "https://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/exit" \
-H "Authorization: Bearer $POD_API_KEY"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
sandbox_id | path | string | Yes |
Answer
200. The sandbox's way out.
{
"sandbox_id": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
"via": "project",
"proxy_id": null,
"home": null,
"route": "pod",
"static_address_id": null,
"carrying": false,
"version": 0,
"updated_at": null
}| Field | Type | Always | What it is |
|---|---|---|---|
sandbox_id | string | Yes | |
via | "project" | "proxy" | "home" | Yes | What the sandbox asked for. |
proxy_id | string | null | Yes | The proxy the traffic leaves through, named or the project's default; null otherwise. |
home | HomeLease | null | Yes | The leased address, for via: home. |
route | "pod" | "static_address" | "proxy" | "home" | Yes | Where the sandbox's traffic leaves now. Treat a value you do not know as not Pod's own addresses. |
static_address_id | string | null | Yes | The project's static address the traffic leaves from, for route: static_address. |
carrying | boolean | Yes | False while the route may not carry; the sandbox's traffic is then refused, never sent from Pod's own addresses. |
version | integer | Yes | Raised by every change, a lease's renewal included. At least 0. |
updated_at | string | null | Yes |
Errors
The refusals this call is known for: forbidden, not_found. 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.exit(sandboxId) |
| Python | pod.network.exit(sandbox_id) |