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 सह नाकारली जाते.

जिथे तुमचा ऑर्गनायझेशन आयडी (organization id) जाईल

हा एंडपॉइंट JSON बॉडीमधील फील्ड म्हणून org_id घेतो.

तुमची संस्था आयडी (organisation id) तुमच्या डॅशबोर्डवरील API की स्क्रीनवर, की च्या बाजूला आहे. तुम्ही केलेल्या प्रत्येक कॉलमधील तोच आयडी असतो.

प्रयत्न करा

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

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 विरुद्ध विनंती कार्यान्वित करतो जेणेकरून तुम्हाला वास्तविक प्रतिसाद पाहता येईल. एपी कन्सोलमध्ये हा एंडपॉइंट उघडा

तपशील

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