«Jetzt sichern», «Jetzt testen», «Wiederherstellen» auf einen Stand und «Rückgängig»; eigene Ziele einrichten, testen, ändern, entfernen; der Schlüssel eines Ziels und der Wiederherstellungsschlüssel nur im Browser (ADR-0140 §§ 2–4, 8)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/datensicherung \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "backup_now"
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung"
payload = { "action": "backup_now" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'backup_now'})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'action' => 'backup_now'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung"
payload := strings.NewReader("{\n \"action\": \"backup_now\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ki.muster.example/api/v1/mandanten/{id}/datensicherung")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"backup_now\"\n}")
.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::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"backup_now\"\n}"
response = http.request(request)
puts response.read_body{
"view": {
"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>"
}
]
}
},
"text": "<string>",
"said": {
"code": "<string>",
"vars": {}
}
}{
"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"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}«Jetzt sichern», «Jetzt testen», «Wiederherstellen» auf einen Stand und «Rückgängig»; eigene Ziele einrichten, testen, ändern, entfernen; der Schlüssel eines Ziels und der Wiederherstellungsschlüssel nur im Browser (ADR-0140 §§ 2–4, 8)
«Jetzt sichern», «Jetzt testen», «Wiederherstellen» auf einen Stand und «Rückgängig»; eigene Ziele einrichten, testen, ändern, entfernen; der Schlüssel eines Ziels und der Wiederherstellungsschlüssel nur im Browser (ADR-0140 §§ 2–4, 8).
Im Chat mit «Mono Admin»: .
POST
/
mandanten
/
{id}
/
datensicherung
«Jetzt sichern», «Jetzt testen», «Wiederherstellen» auf einen Stand und «Rückgängig»; eigene Ziele einrichten, testen, ändern, entfernen; der Schlüssel eines Ziels und der Wiederherstellungsschlüssel nur im Browser (ADR-0140 §§ 2–4, 8)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/datensicherung \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "backup_now"
}
'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung"
payload = { "action": "backup_now" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'backup_now'})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'action' => 'backup_now'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ki.muster.example/api/v1/mandanten/{id}/datensicherung"
payload := strings.NewReader("{\n \"action\": \"backup_now\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ki.muster.example/api/v1/mandanten/{id}/datensicherung")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"backup_now\"\n}")
.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::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"backup_now\"\n}"
response = http.request(request)
puts response.read_body{
"view": {
"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>"
}
]
}
},
"text": "<string>",
"said": {
"code": "<string>",
"vars": {}
}
}{
"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"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Autorisierungen
Body
application/json