hosting

GET /v1/hosting/locations

List the data centres a new site may be created in.

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

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

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

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

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

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

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

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

Детаљи

Every data centre a new site may be placed in: the regions of our own fleet that currently have a worker able to take the site — active, accepting deploys, not full, serving the line, in the pool its sites are placed in. ⚖️ Owner ruling 2026-09-22: only regions with real fleet capacity are offered, so the managed-range (resold) locations this endpoint also returned until then are no longer offered. The same list, with city and name key, is listHostingRegions. The answer carries no tenant scope; it is authenticated only because it describes our estate rather than being marketing copy. An empty list is a real answer, not an error: nothing is activated and no fleet worker can take the site, a managed-range location could not be pinned with the configuration present, or the line is one we do not offer a choice on. The client must then hide the picker and let the default placement apply — it must never substitute a list of its own, because creating a site in a location we have not activated is refused by the vendor after the customer has chosen, and a fleet region with no box behind it fails in placement for the same reason. code is the placement identifier (lhr, nbg1) and the suffix of the i18n key the client renders; country is ISO-3166 alpha-2 for a decorative flag. There is deliberately no display name — location names are translated like every other user-facing string, and a flag is never the accessible name.

Параметри

НазивТипОбавезноШта је ово
product_line (query)stringНеNarrow the answer to the lines a site of this product line could be placed on. A fleet region is offered only when a worker serving this line has capacity, and the…

Одговор

НазивТипОбавезноШта је ово
dataDataCentreLocation[]Да—

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

401 · 429