hosting

PUT /v1/sites/{siteId}/cdn

Choose a site's CDN tier.

सर्व hosting एंडपॉइंट्स

प्रमाणीकरण

बेरर टोकन म्हणून API की पाठवा. की मध्ये hosting.cdn.manage परवानगी असणे आवश्यक आहे; ती नसलेली की 404 ऐवजी 403 सह नाकारली जाते.

या एंडपॉइंटला कोणतीही संस्था आयडी (organisation id) लागत नाही. तुमची की (key) आधीच ती कोणत्या संस्थेशी संबंधित आहे हे ओळखते आणि प्रतिसाद त्यानुसार मर्यादित केला जातो.

प्रयत्न करा

कोनसांस्कृतिक कंसात (<>) असलेली कोणतीही गोष्ट तुमच्या स्वतःच्या मूल्यांनी बदला आणि key प्लेसहोल्डरला तुमच्या डॅशबोर्डवरील किने बदला.

curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/cdn \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "tier": <CdnTier> }'

साइन इन केलेले आहे? तुमच्या डॅशबोर्डमधील API कन्सोल तुमची खरी संस्था आयडी आणि तुमची स्वतःची की आपोआप भरतो आणि लाइव्ह API विरुद्ध विनंती कार्यान्वित करतो जेणेकरून तुम्हाला वास्तविक प्रतिसाद पाहता येईल. एपी कन्सोलमध्ये हा एंडपॉइंट उघडा

तपशील

Mainstream lines only — a managed (footprint-free) site returns `FOOTPRINT_MANAGED`. Selecting `byo` requires an already-connected Cloudflare account, else `NO_CLOUDFLARE_CONNECTION`. The zone is created or torn down asynchronously; the response reflects the requested desired state. Requires `hosting.cdn.manage`.

पॅरामीटर्स

नावप्रकारआवश्यकहे काय आहे
siteId (path)UuidहोयSite ID (UUIDv7).
Idempotency-Key (header)stringनाहीClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

विनंती मुख्य भाग

नावप्रकारआवश्यकहे काय आहे
tierCdnTierहोय`byo` runs the site CDN on a CDN account the customer has **connected** — we hold the credential and drive it, so purge, TLS and zone state all work from the dashboard. ⛔⛔ `pass…
footprint_acknowledgedbooleanनाहीThe customer's explicit answer to "your own CDN account is a shared footprint across every site you put on it". **Required to move a Footprint-Free site to `byo`** (owner ruling…
passthrough_targetstringनाही⛔⛔ **Accepted by the schema and REFUSED by this endpoint, on every tier.** It is declared so the refusal can name what the caller did wrong rather than arriving as a generic unk…
passthrough_labelstringनाहीAccepted and ignored here for the same reason as `passthrough_target` — set it on `switchSiteCdn`, which is the operation that moves the site.

प्रतिसाद

नावप्रकारआवश्यकहे काय आहे
old_zone_removedbooleanनाहीOnly on a `switchSiteCdn` response: whether the site's **previous** zone was really deleted. ⛔ An observation, not an intention — a source account that refuses the delete does n…
nameserversstring[]नाहीOnly on a switch response, and only for a zone-owning CDN: the nameservers the destination zone is served from. ⛔ **The customer has to act on this.** Cloudflare assigns a names…
site_idUuidहोयUUIDv7 identifier — sortable by creation time (docs/02 §8).
product_linestringहोयThe site product line, which decides whether the CDN is managed.
managedbooleanहोयTrue on the footprint-free line, where the CDN is platform-owned footprint machinery the customer neither configures nor sees.
enabledbooleanहोय
tierCdnTierहोय`byo` runs the site CDN on a CDN account the customer has **connected** — we hold the credential and drive it, so purge, TLS and zone state all work from the dashboard. ⛔⛔ `pass…
providerobjectहोयDisplay name of the active CDN, or **null when managed is true** — naming the CDN in front of a footprint-free site would leak the footprint the line exists to hide (register #9…
accountCdnAccountहोयWhich CDN account serves this site, and whether its credential still works. ⛔ Always present — never omitted for "we do not know", because an absent object is read by a client a…
passthrough_targetstringनाहीWhere a `passthrough` site's traffic is pointed — the edge hostname the customer's own CDN gave them, which we publish as this domain's answer. **Empty on every other tier**, wh…
passthrough_labelstringनाहीWhat the customer calls the CDN they run themselves. ⚠️ **Unverified** — we hold no credential for that edge, so this is their claim and a client must present it as theirs rathe…
price_minorintegerहोयMonthly premium-tier price in integer minor units (§2.8).
currencystringहोयISO-4217 code the price_minor above is expressed in.
edgeCdnEdgeहोयWhich edge is **actually** in front of this site, and which of the CDN screen's controls will do anything. ⛔⛔ **`enabled` above is not the same question and the two disagree on…

ही एंडपॉइंट परत करू शकेल अशा त्रुटी

401 · 403 · 404 · 422 · 429