hosting

POST /v1/offsite-destinations

Add a place to send backups to, after proving we can write, read and delete there.

सभी hosting एंडपॉइंट्स

सभी डेवलपर दस्तावेज़

प्रमाणन

बेरर टोकन के रूप में एक API कुंजी भेजें। कुंजी के पास hosting.backup.manage अनुमति होनी चाहिए; इसके बिना एक कुंजी को 404 के बजाय 403 के साथ अस्वीकार कर दिया जाता है।

जहां आपकी संगठन आईडी आती है

यह एंडपॉइंट JSON बॉडी में एक फ़ील्ड के रूप में org_id लेता है।

आपकी ऑर्गनाइजेशन आईडी आपके डैशबोर्ड पर एपीआई कीज़ स्क्रीन पर, की के ठीक बगल में मौजूद है। यह आपके द्वारा की जाने वाली हर कॉल में समान आईडी होती है।

इसे आज़माएँ

कोणार्कित ब्रैकेट्स में दी गई किसी भी चीज़ को अपने मानों से बदलें, और की प्लेसहोलर को अपने डैशबोर्ड की एक की से बदलें।

curl -X POST https://api.zinndigital.com/v1/offsite-destinations \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "kind": <string<s3, sftp>> }'

साइन इन हैं? आपके डैशबोर्ड में मौजूद API कंसोल आपकी वास्तविक संगठन आईडी और आपकी अपनी कुंजी स्वतः भर देता है, और लाइव API के विरुद्ध अनुरोध चलाता है ताकि आप वास्तविक प्रतिक्रिया देख सकें। इस एंडपॉइंट को API कंसोल में खोलें

विवरण

The destination is saved only after a real round trip: a small test file is written, read back byte for byte and deleted. For SFTP the server's host key is read without authenticating and pinned; every later connection must present it. Addresses must be on the public internet and S3 endpoints must be https://. Credentials are write-only and go straight to our secret store with a fresh encryption key; every archive is encrypted (AES-256-CTR with HMAC-SHA256) before it leaves us. Refusals are 422 with a machine code in details[0].code. Requires hosting.backup.manage.

अनुरोध बॉडी

नामप्रकारआवश्यकयह क्या है
org_idstringनहीं
namestringहाँ
kindstring<s3, sftp>हाँ
prefixstringनहीं
endpointstringनहींS3: an https:// endpoint with no path.
regionstringनहींS3: the bucket's region, or auto for Cloudflare R2.
bucketstringनहीं
access_key_idstringनहीं
secret_access_keystringनहीं
hoststringनहींSFTP: the server's host name.
portintegerनहीं
usernamestringनहीं
passwordstringनहीं
private_keystringनहींOpenSSH format.

प्रतिक्रिया

नामप्रकारआवश्यकयह क्या है
idstringहाँ
org_idstringहाँ
namestringहाँ
kindstring<s3, sftp>हाँ
endpointstringनहीं
regionstringनहीं
bucketstringनहीं
hoststringनहीं
portintegerनहीं
usernamestringनहीं
host_key_fingerprintstringनहींThe pinned SFTP host key as SHA256:…, the form ssh-keygen -lf prints.
prefixstringहाँ
statusstring<working, failing>हाँ
last_checked_atstringनहीं
last_check_codestringनहीं
sites_usingintegerहाँ
created_atstringहाँ

त्रुटियाँ जो यह एंडपॉइंट लौटा सकता है

401 · 403 · 404 · 422