> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Datenbankstatus abrufen

> Ruft alle Statusinformationen einer einzelnen Datenbank ab.

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  Der API-Schlüssel für Ihr Konto. Sie finden ihn in Ihren [Kontoeinstellungen](https://squarecloud.app/de/account/security).
</ParamField>

### Parameter

<ParamField path="database_id" type="string" placeholder="Database ID" required>
  Die ID der Datenbank.
</ParamField>

<ParamField path="rawData" type="boolean" placeholder="true or false">
  Wenn Sie Rohdaten möchten. Bei True werden die Werte in Bytes zurückgegeben.
</ParamField>

### Antwort

<ResponseField name="status" type="string">
  Gibt an, ob der Aufruf erfolgreich war. `success` bei Erfolg, `error` andernfalls.
</ResponseField>

<ResponseField name="response" type="object">
  Der Inhalt der Antwort.

  <Expandable title="Objekt umschalten">
    <ResponseField name="cpu" type="string">
      Die aktuelle CPU-Auslastung in Prozent.
    </ResponseField>

    <ResponseField name="ram" type="string">
      Die aktuelle RAM-Auslastung
    </ResponseField>

    <ResponseField name="running" type="boolean">
      Der boolesche Wert, ob sie läuft.
    </ResponseField>

    <ResponseField name="storage" type="string">
      Der aktuell genutzte Speicherplatz.
    </ResponseField>

    <ResponseField name="network" type="object">
      Die Netzwerkauslastung und die gesamte Nutzung.

      <Expandable title="Objekt umschalten">
        <ResponseField name="total" type="string">
          Die gesamte Nutzung.
        </ResponseField>

        <ResponseField name="now" type="string">
          Die aktuelle Nutzung.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="uptime" type="int">
      Der Zeitstempel, der die Uptime darstellt.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
      "status": "success",
      "response": {
          "cpu": "0.54%",
          "ram": "111.32MB",
          "status": "running",
          "running": true,
          "storage": "210.1MB",
          "network": {
              "total": "16.83KB ↑ 126B ↓",
              "now": "0B ↑ 0B ↓"
          },
          "uptime": 1755028584438
      }
  }
  ```
</ResponseExample>
