hosting

GET /v1/wordpress/overview

Count the caller's whole WordPress estate by posture.

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

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

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

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.

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

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

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

Испробајте

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

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

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

Детаљи

The manager's tiles, counted over every site in scope rather than over the current page. ⛔ A tile derived from one page would read "3 sites need attention" and mean "3 on this page", which is the reading a customer will not make. never_collected is reported separately from unknown on purpose: the first is "nobody has ever asked this site", the second also covers "we asked and the platform declined to say". Requires sites.view.

Параметри

НазивТипОбавезноШта је ово
org_id (query)stringНеNarrow to one organisation in the caller's subtree. Equivalent to the X-Zinn-Org header, which is now read centrally for every org-scoped operation — this parameter wins where…

Одговор

НазивТипОбавезноШта је ово
totalintegerДа—
installedintegerДа—
core_updatesintegerДа—
component_updatesintegerДа—
currentintegerДа—
unknownintegerДа—
not_installedintegerДа—
unreachableintegerДаSites whose homepage answered 4xx/5xx, or did not answer at all.
never_collectedintegerДаSites nobody has ever asked. Reported separately from unknown, which also covers "we asked and the platform declined to say".
healthyintegerДаSites assessed, with no critical finding.
unhealthyintegerДаSites assessed, with at least one critical finding.
health_unknownintegerДа⛔⛔ Sites we have not assessed, and the counter that makes the other two honest. healthy + unhealthy + health_unknown == total, always. Without it an estate nobody had ever…
by_deploy_targetobjectДа—
by_product_lineobjectДа—

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

401 · 403 · 429