hosting
GET /v1/wordpress/overview
Count the caller's whole WordPress estate by posture.
Аутентификација
Пошаљите 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… |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
total | integer | Да | — |
installed | integer | Да | — |
core_updates | integer | Да | — |
component_updates | integer | Да | — |
current | integer | Да | — |
unknown | integer | Да | — |
not_installed | integer | Да | — |
unreachable | integer | Да | Sites whose homepage answered 4xx/5xx, or did not answer at all. |
never_collected | integer | Да | Sites nobody has ever asked. Reported separately from unknown, which also covers "we asked and the platform declined to say". |
healthy | integer | Да | Sites assessed, with no critical finding. |
unhealthy | integer | Да | Sites assessed, with at least one critical finding. |
health_unknown | integer | Да | ⛔⛔ 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_target | object | Да | — |
by_product_line | object | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 429