hosting

GET /v1/private-network

The organisation's private access network.

Све hosting крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.

Где се уноси ID ваше организације

Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.

Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X GET https://api.zinndigital.com/v1/private-network \
  -H "Authorization: Bearer zdk_live_…"

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

The org's dedicated egress address, the region it lives in, and every device enrolled on it. Gated on sites.view. ⛔ This is not a browsing VPN. A device reaches the customer's own estate and nothing else — the issued configuration carries no default route — so no third-party traffic ever leaves a Zinn® address. The product exists so a team can add ONE stable address to their SSH/SFTP allow-lists (/v1/ip-allow) instead of chasing changing home and mobile addresses. 404 when the organisation has not bought the product. Deliberately not an empty network: a shell would make the screen look like something they own that does nothing.

Параметри

НазивТипОбавезноШта је ово
org_id (query)stringНеNarrow to one organisation in the caller's subtree — what the dashboard's org switcher sends, and what X-Zinn-Org stands in for. ⛔ Narrow only: intersected with what the…

Одговор

НазивТипОбавезноШта је ово
idstringДа—
regionstringДаMachine code for the gateway's region, e.g. eu-nbg1.
region_labelstringДаWhat the customer sees, e.g. Germany (Nuremberg).
egress_ipstringДаThe dedicated address every device on this network connects out from — the one to add to SSH/SFTP allow-lists. It belongs to this organisation alone; a shared gateway address…
statusstring<active, suspended, closed>Даsuspended means the organisation is not currently in good standing, so devices are withheld from the gateway. ⛔ Nothing is deleted — devices resume on their own when payment…
seats_usedintegerДаDevices currently enrolled and not revoked.
can_add_devicebooleanДаWhether another device may be enrolled right now. False when the allowance is spent, the address has not landed, or the organisation is not in good standing. The screen renders…
itemsPrivateNetworkDevice[]Да—

Грешке које ова крајња тачка може вратити

401 · 403 · 404