hosting

GET /v1/sites/{siteId}/ssl

Get a site's certificates and HTTPS enforcement.

すべての hosting エンドポイント

すべての開発者向けドキュメント

認証

ベアラー トークンとして API キーを送信します。キーには sites.view 権限が付与されている必要があります。権限のないキーは 404 ではなく 403 で拒否されます。

このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。

試してみる

アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。

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

ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブAPIに対してリクエストが実行されるため、実際のレスポンスを確認することができます。 API コンソールでこのエンドポイントを開く

詳細

What is actually protecting the site today: the certificates its hosting package holds, and whether plain HTTP is redirected to HTTPS. The free_ssl entitlement has been sold on these packages from the start and, until this resource existed, was read by nothing — a customer paying for a certificate had no surface on which to see whether one had ever been issued. available says whether the package type exposes certificates at all, and the two *_permitted flags say the same thing per action, so the client can explain "your plan does not include this" instead of offering a control whose request would come back refused. An absent vendor capability is a refusal, never an assumption that it is probably on. A site that does not run on a vendor hosting package has no such resource and returns 404, exactly as an out-of-scope or unknown id does — the same policy as getSiteHosting. Requires sites.view.

パラメータ

名前タイプ必須これがその内容です
siteId (path)UuidはいSite ID (UUIDv7).

返信

名前タイプ必須これがその内容です
availablebooleanはいWhether the package type exposes a certificate surface at all. False renders an explanation rather than an empty list, so "nothing has been issued yet" and "not part of this plan"…
certificatesSiteSslCertificate[]はいThe certificates installed on the package.
force_httpsbooleanはいWhether plain HTTP is redirected to HTTPS, or null when the package does not report the setting. Null is a third state the client must render as unknown: an unchecked toggle would…
free_ssl_permittedbooleanはいWhether this package type permits requesting the free certificate. An absent vendor capability means refused, never "probably on" — the refusal is ours, in our words, before…
force_ssl_permittedbooleanはいWhether this package type permits changing HTTPS enforcement.
external_ssl_permittedbooleanはいWhether this package type permits installing a certificate the customer obtained elsewhere (installSiteExternalSsl). Reported separately from free_ssl_permitted because they…

このエンドポイントが返すエラー

401 · 403 · 404 · 429 · 503