Dokumentation / System / Endpunkt
GET

/api/v1/system/logs/{stream}/{file}

Bereinigten Auszug einer technischen Protokolldatei lesen (maximal 256 KiB und 1.000 Zeilen)

Anfrage#

POSIX-Shell · curl
curl --fail-with-body --request GET \
  "$ADBR_API_URL/api/v1/system/logs/{stream}/{file}" \
  -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#

ParameterOrtPflichtBeschreibung
streampathJa
filepathJa
Vollständige Parameterschemas
OpenAPI JSON
[
  {
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "core"
          ]
        },
        {
          "type": "string",
          "enum": [
            "api"
          ]
        },
        {
          "type": "string",
          "enum": [
            "jobs"
          ]
        },
        {
          "type": "string",
          "enum": [
            "kernel"
          ]
        },
        {
          "type": "string",
          "enum": [
            "relay"
          ]
        }
      ]
    },
    "in": "path",
    "name": "stream",
    "required": true
  },
  {
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 155,
      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,150}\\.log$"
    },
    "example": "core.log",
    "in": "path",
    "name": "file",
    "required": true
  }
]

Anfragekörper#

Kein Anfragekörper deklariert.

Antworten#

200 · Standardantwort
OpenAPI JSON
{
  "description": "Default Response",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "stream",
          "file",
          "size",
          "modified_at",
          "text",
          "lines",
          "truncated"
        ],
        "properties": {
          "stream": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "core"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "api"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "jobs"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "kernel"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "relay"
                ]
              }
            ]
          },
          "file": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          },
          "modified_at": {
            "type": "integer"
          },
          "text": {
            "type": "string"
          },
          "lines": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean"
          }
        }
      }
    }
  }
}
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": "Bereinigten Auszug einer technischen Protokolldatei lesen (maximal 256 KiB und 1.000 Zeilen)",
  "tags": [
    "System"
  ],
  "parameters": [
    {
      "schema": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "core"
            ]
          },
          {
            "type": "string",
            "enum": [
              "api"
            ]
          },
          {
            "type": "string",
            "enum": [
              "jobs"
            ]
          },
          {
            "type": "string",
            "enum": [
              "kernel"
            ]
          },
          {
            "type": "string",
            "enum": [
              "relay"
            ]
          }
        ]
      },
      "in": "path",
      "name": "stream",
      "required": true
    },
    {
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 155,
        "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,150}\\.log$"
      },
      "example": "core.log",
      "in": "path",
      "name": "file",
      "required": true
    }
  ],
  "x-required-scopes": [
    "audit:read"
  ],
  "responses": {
    "200": {
      "description": "Default Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "stream",
              "file",
              "size",
              "modified_at",
              "text",
              "lines",
              "truncated"
            ],
            "properties": {
              "stream": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "core"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "api"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "jobs"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "kernel"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "relay"
                    ]
                  }
                ]
              },
              "file": {
                "type": "string"
              },
              "size": {
                "type": "integer"
              },
              "modified_at": {
                "type": "integer"
              },
              "text": {
                "type": "string"
              },
              "lines": {
                "type": "integer"
              },
              "truncated": {
                "type": "boolean"
              }
            }
          }
        }
      }
    },
    "default": {
      "description": "HTTP error envelope. The status and error.code identify the failure.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

Suche nach Headless, MCP, Cookies oder einem API-Endpunkt.

↑ ↓ NavigierenEnter ÖffnenEsc Schließen