Langsung ke konten utama
GET
/
sites
/
{siteId}
/
backups
/
{fromFilename}
/
diff
/
{toFilename}
Bandingkan Dua Cadangan
curl --request GET \
  --url https://api.altostrat.io/sites/{siteId}/backups/{fromFilename}/diff/{toFilename} \
  --header 'Authorization: Bearer <token>'
"--- 1732481400.rsc\n+++ 1732567800.rsc\n@@ -10,1 +10,1 @@\n-/ip dhcp-client\n-add interface=ether1 disabled=no\n+/ip dhcp-client\n+add interface=ether1 disabled=yes"

Authorizations

Authorization
string
header
required

Token bearer diperlukan untuk semua permintaan API. Dapatkan token melalui API Autentikasi Altostrat.

Headers

X-Highlight
boolean

Atur ke true untuk menerima output diff dengan penyorotan sintaks sebagai fragmen HTML (text/html).

X-Download
boolean

Atur ke true untuk mengunduh diff sebagai file .diff (application/octet-stream).

Path Parameters

siteId
string<uuid>
required

Pengidentifikasi unik untuk situs tersebut.

Example:

"a1b2c3d4-e5f6-7890-1234-567890abcdef"

fromFilename
string
required

File cadangan yang lebih lama untuk digunakan sebagai dasar perbandingan.

Example:

"1732481400.rsc"

toFilename
string
required

File cadangan yang lebih baru untuk dibandingkan dengan file dasar.

Example:

"1732567800.rsc"

Response

Diff terpadu dari dua file cadangan. Standarnya adalah text/plain.

The response is of type string.

Example:

"--- 1732481400.rsc\n+++ 1732567800.rsc\n@@ -10,1 +10,1 @@\n-/ip dhcp-client\n-add interface=ether1 disabled=no\n+/ip dhcp-client\n+add interface=ether1 disabled=yes"