hosting

POST /v1/offsite-destinations/{destinationId}/test

Prove the round trip again and record the answer.

ሁሉም የ hosting ማጠናቀቂያ ነጥቦች

developer ሰነዶች ሁሉ

ማረጋገጫ

የAPI ቁልፉን እንደ bearer token ይላኩ። ቁልፉ የhosting.backup.manage ፈቃድ ሊኖረው ይገባል፤ ይህ ፈቃድ የሌለው ቁልፍ በ404 ሳይሆን በ403 ውድቅ ይደረጋል።

ይህ ኤንድፖይ መክፈቻ (endpoint) የድርጅት መታወቂያ (organisation id) አይወስድም። የእርስዎ ቁልፍ (key) እሱ የሚመለከተውን ድርጅት አስቀድሞ ይለያል፣ እና ምላሹም ለዚሁ የተወሰነ ነው።

ሞክሩት

በቅንፍ ውስጥ ያለውን ማንኛውንም ነገር በራስዎ እሴቶች ይተኩ፣ እና ቁልፍ ቦታ ያዢውን ከዳሽቦርድዎ በመጣ ቁልፍ ይተኩ።

curl -X POST https://api.zinndigital.com/v1/offsite-destinations/{destinationId}/test \
  -H "Authorization: Bearer zdk_live_…"

ገብተዋል? የመቆጣጠሪያ ማዕከልዎ ውስጥ ያለው የኤፒአይ ኮንሶል ትክክለኛውን የድርጅት መታወቂያዎን እና የራስዎን ቁልፍ ይሞላል፣ እና ትክክለኛውን ምላሽ ማየት እንዲችሉ ጥያቄውን በቀጥታ ከሚሰራው ኤፒአይ ጋር ያካሂደዋል። ይህን ኤንድፖይንት በAPI ኮንሶል ውስጥ ይክፈቱ

ዝርዝሮች

Writes, reads back and deletes a test file. Always 200; the verdict is in status and last_check_code. Requires hosting.backup.manage.

መለኪያዎች

ስምዓይነትየሚያስፈልግምንነቱ
destinationId (path)stringአዎ

ምላሽ

ስምዓይነትየሚያስፈልግምንነቱ
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