GET
/api/v1/audit/export
Audit-Log als CSV oder JSONL exportieren (Filter wie bei der Liste)
Anfrage#
POSIX-Shell · curl
curl --fail-with-body --request GET \
"$ADBR_API_URL/api/v1/audit/export" \
-H "Authorization: Bearer $ADBR_API_TOKEN"Verwende lokale Adresse und Token aus API & MCP. Ersetze Pfadplatzhalter wie {id} durch tatsächliche IDs.
Authentifizierung und Rechte#
Authentifizierung: Bearer-Token
Scopes: audit:read
Alle aufgeführten Scopes sind erforderlich; admin erfüllt Scope-Prüfungen. Kontorechte, Anfrageinhalt, Tresorzustand und Ressourcenrechte können weitere Voraussetzungen setzen.
Parameter#
| Parameter | Ort | Pflicht | Beschreibung |
|---|---|---|---|
category | query | Nein | |
from | query | Nein | |
to | query | Nein | |
action | query | Nein | |
source | query | Nein | |
actor_type | query | Nein | |
entity_id | query | Nein | |
entity_no | query | Nein | |
result | query | Nein | |
search | query | Nein | |
request_id | query | Nein | |
format | query | Ja |
Vollständige Parameterschemas
OpenAPI JSON
[
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"account"
]
},
{
"type": "string",
"enum": [
"profile"
]
},
{
"type": "string",
"enum": [
"startup"
]
},
{
"type": "string",
"enum": [
"proxy"
]
},
{
"type": "string",
"enum": [
"team"
]
}
]
},
"in": "query",
"name": "category",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 0
},
"in": "query",
"name": "from",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 0
},
"in": "query",
"name": "to",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 100
},
"in": "query",
"name": "action",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 20
},
"in": "query",
"name": "source",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 20
},
"in": "query",
"name": "actor_type",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 64
},
"in": "query",
"name": "entity_id",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 1
},
"in": "query",
"name": "entity_no",
"required": false
},
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"ok"
]
},
{
"type": "string",
"enum": [
"denied"
]
},
{
"type": "string",
"enum": [
"error"
]
}
]
},
"in": "query",
"name": "result",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 200
},
"in": "query",
"name": "search",
"required": false
},
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"in": "query",
"name": "request_id",
"required": false
},
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"csv"
]
},
{
"type": "string",
"enum": [
"jsonl"
]
}
]
},
"in": "query",
"name": "format",
"required": true
}
]Anfragekörper#
Kein Anfragekörper deklariert.
Antworten#
200 · Standardantwort
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"file_name",
"count",
"content_base64"
],
"properties": {
"file_name": {
"type": "string"
},
"count": {
"type": "integer"
},
"content_base64": {
"type": "string"
}
}
}
}
}
}default · HTTP-Fehlerhülle. Status und error.code bezeichnen den Fehler.
OpenAPI JSON
{
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}Allgemeine Authentifizierungs- und Transportfehler können zusätzlich zu den dokumentierten Antworten auftreten.
OpenAPI-Definition#
Vollständige Operationsdefinition
OpenAPI JSON
{
"summary": "Audit-Log als CSV oder JSONL exportieren (Filter wie bei der Liste)",
"tags": [
"Audit-Log"
],
"parameters": [
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"account"
]
},
{
"type": "string",
"enum": [
"profile"
]
},
{
"type": "string",
"enum": [
"startup"
]
},
{
"type": "string",
"enum": [
"proxy"
]
},
{
"type": "string",
"enum": [
"team"
]
}
]
},
"in": "query",
"name": "category",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 0
},
"in": "query",
"name": "from",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 0
},
"in": "query",
"name": "to",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 100
},
"in": "query",
"name": "action",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 20
},
"in": "query",
"name": "source",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 20
},
"in": "query",
"name": "actor_type",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 64
},
"in": "query",
"name": "entity_id",
"required": false
},
{
"schema": {
"type": "integer",
"minimum": 1
},
"in": "query",
"name": "entity_no",
"required": false
},
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"ok"
]
},
{
"type": "string",
"enum": [
"denied"
]
},
{
"type": "string",
"enum": [
"error"
]
}
]
},
"in": "query",
"name": "result",
"required": false
},
{
"schema": {
"type": "string",
"maxLength": 200
},
"in": "query",
"name": "search",
"required": false
},
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"in": "query",
"name": "request_id",
"required": false
},
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"csv"
]
},
{
"type": "string",
"enum": [
"jsonl"
]
}
]
},
"in": "query",
"name": "format",
"required": true
}
],
"x-required-scopes": [
"audit:read"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"file_name",
"count",
"content_base64"
],
"properties": {
"file_name": {
"type": "string"
},
"count": {
"type": "integer"
},
"content_base64": {
"type": "string"
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}