hosting
GET /v1/sites/{siteId}/website-backups
The standard backup a site's hosting package currently holds.
प्रमाणन
बेरर टोकन के रूप में एक API कुंजी भेजें। कुंजी के पास sites.view अनुमति होनी चाहिए; इसके बिना एक कुंजी को 404 के बजाय 403 के साथ अस्वीकार कर दिया जाता है।
यह एंडपॉइंट कोई संगठन आईडी नहीं लेता है। आपकी कुंजी पहले से ही उस संगठन की पहचान करती है जिससे वह संबंधित है, और प्रतिक्रिया उसी के दायरे में है।
इसे आज़माएँ
कोणार्कित ब्रैकेट्स में दी गई किसी भी चीज़ को अपने मानों से बदलें, और की प्लेसहोलर को अपने डैशबोर्ड की एक की से बदलें।
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/website-backups \
-H "Authorization: Bearer zdk_live_…"साइन इन हैं? आपके डैशबोर्ड में मौजूद API कंसोल आपकी वास्तविक संगठन आईडी और आपकी अपनी कुंजी स्वतः भर देता है, और लाइव API के विरुद्ध अनुरोध चलाता है ताकि आप वास्तविक प्रतिक्रिया देख सकें। इस एंडपॉइंट को API कंसोल में खोलें
विवरण
The hosting platform's included on-demand backup for this site — a downloadable archive of files and databases. This is a different product from getSiteVendorSnapshots, which is the platform's paid point-in-time service, and from listSiteBackups, which is our own archive. ⛔ The platform deletes one of these after retention_hours (12 today). That is the character of the product: it is a button, not a history, and a client must render the real age rather than presenting it as durable protection. backup is null when the platform holds none — never when we failed to ask, which is an error status. ⭐ complete is not status restated: it also requires a download_url, because a job reporting completion with no archive is nothing the customer can act on. 404 for a site with no vendor hosting package, or one that is not the caller's. Requires sites.view.
पैरामीटर
| नाम | प्रकार | आवश्यक | यह क्या है |
|---|---|---|---|
siteId (path) | Uuid | हाँ | Site ID (UUIDv7). |
प्रतिक्रिया
| नाम | प्रकार | आवश्यक | यह क्या है |
|---|---|---|---|
available | boolean | हाँ | Whether this site runs on a hosting package with a standard-backup surface at all. false renders nothing rather than an empty list. |
retention_hours | integer | हाँ | How long the platform keeps one. Sent rather than hardcoded in the client so the screen can show a real expiry, and so it cannot drift if the platform changes it. |
backup | WebsiteBackup | हाँ | The current backup, or null when the platform holds none. ⛔ null never means we failed to ask — that is an error status, not an empty surface. |
त्रुटियाँ जो यह एंडपॉइंट लौटा सकता है
401 · 403 · 404 · 422 · 429 · 503