hosting

GET /v1/sites/{siteId}/cdn/targets

Where this site's CDN could be served from.

Усі кінцеві точки hosting

Уся документація для розробників

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл hosting.cdn.manage; ключ без нього відхиляється з кодом 403, а не 404.

Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/targets \
  -H "Authorization: Bearer zdk_live_…"

Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API

Деталі

Every destination this site's CDN could move to: Zinn®'s own pool, one row per CDN account you have connected, and passthrough (an edge you run yourself). ⛔⛔ This operation exists because a customer could not see their own accounts at all. A connected CDN account is a provider-account row scoped to your organisation, and until this endpoint the only route that read that table was a staff one — so a customer who connected two Cloudflare accounts could see neither, and the (now deprecated) switchSiteCdn's body was a boolean that cannot name one of two. The account you connect on the Connections page is listed too, as one own row. ⛔ An unusable target is LISTED, with its reason, never hidden. "My account is not in the list" and "my account is in the list and says the token was revoked" send you to two different places, and only the second is true. reason is a machine key so the client renders the sentence in your language. ⭐ changes_nameservers is the field to render before the customer clicks. A zone-owning CDN assigns nameservers per account, so a move between two accounts on the same vendor still changes the delegation your registrar must point at. Advisory and read-only: a target listed as available may still fail at swap time because a credential was revoked in between, and the swap says so. Requires hosting.cdn.manage.

Параметри

НазваТипОбов'язковеЩо це таке
siteId (path)UuidТакSite ID (UUIDv7).

Відповідь

НазваТипОбов'язковеЩо це таке
dataCdnTarget[]Так

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 429