hosting
GET /v1/wordpress/sites/{siteId}
One WordPress site's stored posture, with its component listings.
認証
ベアラー トークンとして API キーを送信します。キーには sites.view 権限が付与されている必要があります。権限のないキーは 404 ではなく 403 で拒否されます。
このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。
試してみる
アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。
curl -X GET https://api.zinndigital.com/v1/wordpress/sites/{siteId} \
-H "Authorization: Bearer zdk_live_…"ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブAPIに対してリクエストが実行されるため、実際のレスポンスを確認することができます。 API コンソールでこのエンドポイントを開く
詳細
The same row `listWordPressSites` returns, plus the stored plugin, theme and administrator listings the manager's detail drawer shows. Still Postgres only — the listings are whatever the last collection stored, with `snapshot.collected_at` beside them so the age is visible. `404` for a site outside the caller's scope **and** for one that does not run WordPress — a 403 would confirm the id exists. Requires `sites.view`.
パラメータ
| 名前 | タイプ | 必須 | これがその内容です |
|---|---|---|---|
siteId (path) | Uuid | はい | Site ID (UUIDv7). |
返信
| 名前 | タイプ | 必須 | これがその内容です |
|---|---|---|---|
site_id | string | はい | — |
name | string | はい | — |
primary_domain | string | はい | — |
stack_type | string | はい | `wordpress` or `woocommerce` — a shop IS a WordPress site. |
product_line | string | はい | — |
deploy_target | string | はい | — |
status | string | はい | — |
php_version | string | はい | — |
plan_name | string | はい | The plan a customer would recognise, or `""`. Never an id. |
site_url | string | はい | — |
admin_url | string | はい | — |
update_state | WordPressUpdateState | はい | ⛔⛔ **`unknown` is a real member and must never be rendered as `current`.** *"We have not looked"* and *"you are up to date"* are different statements, and a manager that collaps… |
reachability | WordPressReachability | はい | What a **visitor** gets from the site's own homepage, from a cache-busted request. ⛔⛔ This is the only field on this surface measured over the path a human actually uses. Every… |
http_status | integer | はい | — |
http_error_code | WordPressProbeErrorCode | はい | Why the homepage request did not complete, blank when it did (whatever the status). A code rather than a sentence, because a sentence composed in the engine is English for ever… |
http_checked_at | string | はい | — |
can_install | boolean | はい | Whether software can be installed on this site's platform at all. ⛔ `false` for every managed hosting site — this platform exposes no shell and no install endpoint across its AP… |
capabilities | object | はい | What this site's platform permits, as of the last collection. |
disk | WordPressAllowance | はい | One countable resource. ⛔ **Three states, not two.** `limit: null, unlimited: false` is *no ceiling is stated*; `unlimited: true` is *the plan sells this as unlimited*, which is… |
bandwidth | WordPressAllowance | はい | One countable resource. ⛔ **Three states, not two.** `limit: null, unlimited: false` is *no ceiling is stated*; `unlimited: true` is *the plan sells this as unlimited*, which is… |
snapshot | WordPressSnapshot | はい | ⛔ **Null means nobody has ever collected this site.** A client renders that as *"not checked yet"* with a refresh action — never as zeroes, which read as "you are up to date". |
plugins | WordPressComponent[] | はい | — |
themes | WordPressComponent[] | はい | — |
admins | WordPressAdmin[] | はい | — |
このエンドポイントが返すエラー
401 · 403 · 404 · 429