hosting

GET /v1/sites/{siteId}/redirects

List a site's redirects.

Bütün hosting nöqtələri

Bütün tərtibatçı sənədləri

Doğrulama

API açarını bearer token kimi göndərin. Açar sites.view icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.

Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

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

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Təfərrüatlar

The redirect rules the site serves: which domain and path is redirected, where to, and with which status. id is ours, not the vendor's — this platform mints no identifier for a redirect, so this encodes the domain/type/path triple that addresses one. It is opaque, stable across reads, and must not be stored as a key. Requires sites.view — what a site redirects is not a secret. 404 for a site with no managed hosting package.

Parametrlər

AdTipTələb olunurNədir
siteId (path)UuidBəliSite ID (UUIDv7).

Cavab

AdTipTələb olunurNədir
dataSiteRedirect[]BəliThe redirect rules on the package.
limitVendorAllowanceBəliThe effective ceiling on redirects. As with scheduled tasks, the platform publishes this capability as a boolean with no count.
permittedbooleanBəliWhether the package type includes redirects at all.
can_createbooleanBəlipermitted, and the effective ceiling has room.

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 404 · 429 · 503