Betrieb › Datensicherung (ADR-0140 § 8): die Zeile, die Ziele, die Stände zum Wiederherstellen, die letzte Wiederherstellung
curl --request GET \
--url https://ki.muster.example/api/v1/mandanten/{id}/datensicherung \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/datensicherung', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ki.muster.example/api/v1/mandanten/{id}/datensicherung")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/datensicherung")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"runner": "node",
"line": {
"status": "ok",
"lastAt": "<string>",
"testedAt": "<string>",
"planned": true,
"reason": {
"code": "<string>",
"text": "<string>"
},
"off": {
"since": "<string>",
"by": "<string>"
}
},
"rows": [
{
"id": "<string>",
"kind": "standard",
"name": "<string>",
"region": {
"code": "<string>",
"measured": true
},
"lastGood": "<string>",
"lastTest": {
"at": "<string>",
"ok": true
},
"generations": {
"daily": 4503599627370495,
"weekly": 4503599627370495,
"monthly": 4503599627370495,
"preUpdate": 4503599627370495
},
"status": "aktuell",
"reason": {
"code": "<string>",
"text": "<string>"
},
"bytes": 4503599627370495,
"target": {
"address": "<string>",
"live": true,
"neverDelete": true,
"objectLock": "GOVERNANCE",
"publicKey": "<string>",
"hostKey": {
"fingerprint": "<string>",
"pinned": true
},
"hasKey": true,
"needs": [
"key"
],
"legacy": true,
"canDelete": true
}
}
],
"points": [
{
"file": "<string>",
"at": "<string>",
"kind": "nightly",
"bytes": 4503599627370495
}
],
"restored": {
"at": "<string>",
"pointAt": "<string>",
"by": "<string>",
"undoUntil": "<string>",
"undone": true
},
"job": {
"id": "<string>",
"kind": "now",
"state": "waiting",
"at": "<string>",
"reason": {
"code": "<string>",
"text": "<string>"
},
"pointAt": "<string>"
},
"can": {
"now": "<string>",
"test": "<string>",
"restore": "<string>",
"undo": "<string>"
},
"recoveryKey": true,
"canEdit": true,
"recoveryFingerprint": "<string>",
"shares": [
{
"id": "<string>",
"name": "<string>",
"site": "<string>"
}
],
"restoreNew": {
"mandant": "<string>",
"node": "<string>",
"hosting": "linux",
"targets": [
{
"kind": "s3",
"name": "<string>",
"address": "<string>",
"prefix": "<string>",
"pathStyle": true,
"region": "<string>",
"hostKey": "<string>"
}
]
}
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Betrieb › Datensicherung (ADR-0140 § 8): die Zeile, die Ziele, die Stände zum Wiederherstellen, die letzte Wiederherstellung
Betrieb › Datensicherung (ADR-0140 § 8): die Zeile, die Ziele, die Stände zum Wiederherstellen, die letzte Wiederherstellung.
Im Chat mit «Mono Admin»: betrieb_status.
GET
/
mandanten
/
{id}
/
datensicherung
Betrieb › Datensicherung (ADR-0140 § 8): die Zeile, die Ziele, die Stände zum Wiederherstellen, die letzte Wiederherstellung
curl --request GET \
--url https://ki.muster.example/api/v1/mandanten/{id}/datensicherung \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/datensicherung', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ki.muster.example/api/v1/mandanten/{id}/datensicherung")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/datensicherung")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"runner": "node",
"line": {
"status": "ok",
"lastAt": "<string>",
"testedAt": "<string>",
"planned": true,
"reason": {
"code": "<string>",
"text": "<string>"
},
"off": {
"since": "<string>",
"by": "<string>"
}
},
"rows": [
{
"id": "<string>",
"kind": "standard",
"name": "<string>",
"region": {
"code": "<string>",
"measured": true
},
"lastGood": "<string>",
"lastTest": {
"at": "<string>",
"ok": true
},
"generations": {
"daily": 4503599627370495,
"weekly": 4503599627370495,
"monthly": 4503599627370495,
"preUpdate": 4503599627370495
},
"status": "aktuell",
"reason": {
"code": "<string>",
"text": "<string>"
},
"bytes": 4503599627370495,
"target": {
"address": "<string>",
"live": true,
"neverDelete": true,
"objectLock": "GOVERNANCE",
"publicKey": "<string>",
"hostKey": {
"fingerprint": "<string>",
"pinned": true
},
"hasKey": true,
"needs": [
"key"
],
"legacy": true,
"canDelete": true
}
}
],
"points": [
{
"file": "<string>",
"at": "<string>",
"kind": "nightly",
"bytes": 4503599627370495
}
],
"restored": {
"at": "<string>",
"pointAt": "<string>",
"by": "<string>",
"undoUntil": "<string>",
"undone": true
},
"job": {
"id": "<string>",
"kind": "now",
"state": "waiting",
"at": "<string>",
"reason": {
"code": "<string>",
"text": "<string>"
},
"pointAt": "<string>"
},
"can": {
"now": "<string>",
"test": "<string>",
"restore": "<string>",
"undo": "<string>"
},
"recoveryKey": true,
"canEdit": true,
"recoveryFingerprint": "<string>",
"shares": [
{
"id": "<string>",
"name": "<string>",
"site": "<string>"
}
],
"restoreNew": {
"mandant": "<string>",
"node": "<string>",
"hosting": "linux",
"targets": [
{
"kind": "s3",
"name": "<string>",
"address": "<string>",
"prefix": "<string>",
"pathStyle": true,
"region": "<string>",
"hostKey": "<string>"
}
]
}
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Autorisierungen
Antwort
Erfolgreich.