Read the organization's network settings and what its plan allows
The patient-data setting, each network feature with whether the organization may use it and why not (`reasons`, in the order a refusal names them), and the network limits.
The patient-data setting, each network feature with whether the organization may use it and why not (reasons, in the order a refusal names them), and the network limits. The same entitlements travel to every cell in the signed standing list, so a feature refused here is refused by the cell with the error its first reason names: account_restricted (limit: standing) for an account past due or suspended, plan_required for an account that is not verified or on the free plan, and conflict (field: patient_data) for a home-connection feature while the patient-data setting is on. customer_cells names the cells inside the organization's own cloud account, the only cells that register private ranges.
A key with the network:read scope.
Request
curl "https://api.pod.mapier.ai/v1/network" \
-H "Authorization: Bearer $POD_API_KEY"Answer
200. The organization's network settings.
{
"organisation": "org_3ahrz6dmv29gqy5ckt18fp",
"patient_data": false,
"patient_data_set_by": null,
"patient_data_set_at": null,
"customer_cells": ["example"],
"entitlements": [
{
"feature": "custom_domains",
"allowed": false,
"reasons": ["standing"]
}
],
"limits": {
"max_domains": 0,
"max_static_addresses": 0,
"max_private_ranges": 0,
"max_proxies": 0,
"max_leases": 0
}
}| Field | Type | Always | What it is |
|---|---|---|---|
organisation | string | Yes | |
patient_data | boolean | Yes | While true, the organization stays off home-connection addresses. |
patient_data_set_by | string | null | Yes | The person who last changed it. |
patient_data_set_at | string | null | Yes | |
customer_cells | string[] | Yes | The cells inside the organization's own cloud account, by tag. Private ranges are registered at such a cell's endpoint; empty for an organization that has none. |
entitlements | NetworkFeatureEntitlement[] | Yes | One entry per network feature. |
limits | NetworkLimits | Yes | The organization's network limits: its own where staff set one, else the plan's. Per project for max_static_addresses (at each site) and max_proxies, unless a project has its own. |
Errors
The refusals this call is known for: forbidden. 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.settings() |
| Python | pod.network.settings() |