Read how a sandbox's outbound traffic leaves

What the sandbox asked for (`via`) and where its traffic leaves now (`route`).

GET/v1/sandboxes/{sandbox_id}/exit

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

NameInTypeRequiredWhat it is
sandbox_idpathstringYes

Answer

200. The sandbox's way out.

200
{
  "sandbox_id": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
  "via": "project",
  "proxy_id": null,
  "home": null,
  "route": "pod",
  "static_address_id": null,
  "carrying": false,
  "version": 0,
  "updated_at": null
}
FieldTypeAlwaysWhat it is
sandbox_idstringYes
via"project" | "proxy" | "home"YesWhat the sandbox asked for.
proxy_idstring | nullYesThe proxy the traffic leaves through, named or the project's default; null otherwise.
homeHomeLease | nullYesThe leased address, for via: home.
route"pod" | "static_address" | "proxy" | "home"YesWhere the sandbox's traffic leaves now. Treat a value you do not know as not Pod's own addresses.
static_address_idstring | nullYesThe project's static address the traffic leaves from, for route: static_address.
carryingbooleanYesFalse while the route may not carry; the sandbox's traffic is then refused, never sent from Pod's own addresses.
versionintegerYesRaised by every change, a lease's renewal included. At least 0.
updated_atstring | nullYes

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

ClientCall
TypeScriptpod.network.exit(sandboxId)
Pythonpod.network.exit(sandbox_id)