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.

GET/v1/network

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.

200
{
  "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
  }
}
FieldTypeAlwaysWhat it is
organisationstringYes
patient_databooleanYesWhile true, the organization stays off home-connection addresses.
patient_data_set_bystring | nullYesThe person who last changed it.
patient_data_set_atstring | nullYes
customer_cellsstring[]YesThe 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.
entitlementsNetworkFeatureEntitlement[]YesOne entry per network feature.
limitsNetworkLimitsYesThe 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

ClientCall
TypeScriptpod.network.settings()
Pythonpod.network.settings()