hosting

POST /v1/offsite-destinations

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

Gbogbo àwọn hosting endpoints

Gbogbo àwọn ìwé àṣẹ olùgbékalẹ̀ àgbékalẹ̀

Ìfàṣẹ́pọ̀

Fi bọ́ọ̀lù (bearer token) ranṣẹ gẹ́gẹ́ bí kọ́kọ́rọ́ API. Kọ́kọ́rọ́ náà gbọ́dọ̀ ní ìyọ̀ǹda hosting.backup.manage; a ó kọ̀ ọ́ silẹ pẹlu 403, kii ṣe 404, ti kọ́kọ́rọ́ náà kò bá ní i.

Ibùdó àmì ìdánimọ̀ ilé-iṣẹ́ rẹ sí

Ibi-iwọle yii n gba org_id gẹgẹ bi aaye ninu ara JSON naa.

Id àjọ rẹ wa lórí ojú-ìwákòòkò àwọn bọ́tìnnì API nínú daṣibọọdú rẹ, lẹ́gbẹ̀ẹ́ bọ́tìnnì náà gan-an. Ó jẹ́ ìd kan náà nínú gbogbo ìpè tí o bá ṣe.

Gbiyanju rẹ

Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.

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>> }'

Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API

Àwọn kúlẹ̀kúlẹ̀

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.

Akoonu ibeere naa

OrúkọIruTí a nílòKini o jẹ
org_idstringBẹẹkọ
namestringBẹẹni
kindstring<s3, sftp>Bẹẹni
prefixstringBẹẹkọ
endpointstringBẹẹkọS3: an https:// endpoint with no path.
regionstringBẹẹkọS3: the bucket's region, or auto for Cloudflare R2.
bucketstringBẹẹkọ
access_key_idstringBẹẹkọ
secret_access_keystringBẹẹkọ
hoststringBẹẹkọSFTP: the server's host name.
portintegerBẹẹkọ
usernamestringBẹẹkọ
passwordstringBẹẹkọ
private_keystringBẹẹkọOpenSSH format.

Idahun

OrúkọIruTí a nílòKini o jẹ
idstringBẹẹni
org_idstringBẹẹni
namestringBẹẹni
kindstring<s3, sftp>Bẹẹni
endpointstringBẹẹkọ
regionstringBẹẹkọ
bucketstringBẹẹkọ
hoststringBẹẹkọ
portintegerBẹẹkọ
usernamestringBẹẹkọ
host_key_fingerprintstringBẹẹkọThe pinned SFTP host key as SHA256:…, the form ssh-keygen -lf prints.
prefixstringBẹẹni
statusstring<working, failing>Bẹẹni
last_checked_atstringBẹẹkọ
last_check_codestringBẹẹkọ
sites_usingintegerBẹẹni
created_atstringBẹẹni

Awọn aṣiṣe ti ibudo ipari yii le da pada

401 · 403 · 404 · 422