Die Exporte des Mandanten mit Zustand
curl --request GET \
--url https://ki.muster.example/api/v1/mandanten/{id}/exports \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/exports"
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}/exports', 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}/exports",
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}/exports"
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}/exports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/exports")
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{
"beobachtung": {
"mandant": {
"id": "<string>",
"name": "<string>"
},
"canEdit": true,
"lock": "<string>",
"exports": [
{
"id": "<string>",
"preset": "grafana-cloud",
"name": "<string>",
"endpoint": "<string>",
"region": "<string>",
"scope": {
"metrics": true,
"audit": true,
"logs": true,
"traces": true
},
"state": "key-missing",
"stateText": "<string>",
"keySet": true,
"keyLabel": "<string>",
"lastTest": {
"ok": true,
"at": "<string>",
"ms": 4503599627370495,
"status": 0,
"ref": "<string>",
"text": "<string>"
},
"lastPush": {
"at": "<string>",
"ok": true,
"status": 0,
"metrics": 4503599627370495,
"audit": 4503599627370495
},
"failures": 4503599627370495,
"check": "<string>",
"custom": {
"by": "<string>",
"at": "<string>"
}
}
],
"never": "<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"
}Die Exporte des Mandanten mit Zustand
Die Exporte des Mandanten mit Zustand.
Im Chat mit «Mono Admin»: betrieb_status.
GET
/
mandanten
/
{id}
/
exports
Die Exporte des Mandanten mit Zustand
curl --request GET \
--url https://ki.muster.example/api/v1/mandanten/{id}/exports \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/exports"
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}/exports', 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}/exports",
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}/exports"
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}/exports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/exports")
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{
"beobachtung": {
"mandant": {
"id": "<string>",
"name": "<string>"
},
"canEdit": true,
"lock": "<string>",
"exports": [
{
"id": "<string>",
"preset": "grafana-cloud",
"name": "<string>",
"endpoint": "<string>",
"region": "<string>",
"scope": {
"metrics": true,
"audit": true,
"logs": true,
"traces": true
},
"state": "key-missing",
"stateText": "<string>",
"keySet": true,
"keyLabel": "<string>",
"lastTest": {
"ok": true,
"at": "<string>",
"ms": 4503599627370495,
"status": 0,
"ref": "<string>",
"text": "<string>"
},
"lastPush": {
"at": "<string>",
"ok": true,
"status": 0,
"metrics": 4503599627370495,
"audit": 4503599627370495
},
"failures": 4503599627370495,
"check": "<string>",
"custom": {
"by": "<string>",
"at": "<string>"
}
}
],
"never": "<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"
}