> ## 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.

# データベースのステータス取得

> 単一のデータベースに関連するすべてのステータス情報を取得します。

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  アカウントの API キーです。これは[アカウント設定](https://squarecloud.app/ja/account/security)で確認できます。
</ParamField>

### Parameters

<ParamField path="database_id" type="string" placeholder="Database ID" required>
  データベースのID。
</ParamField>

<ParamField path="rawData" type="boolean" placeholder="true or false">
  生データが必要な場合。Trueにすると、値をバイト単位で返します。
</ParamField>

### Response

<ResponseField name="status" type="string">
  呼び出しが成功したかどうかを示します。成功した場合は `success`、失敗した場合は `error` です。
</ResponseField>

<ResponseField name="response" type="object">
  レスポンスの内容。

  <Expandable title="オブジェクトを切り替え">
    <ResponseField name="cpu" type="string">
      現在のCPU使用率（パーセント）。
    </ResponseField>

    <ResponseField name="ram" type="string">
      現在のRAM使用量
    </ResponseField>

    <ResponseField name="running" type="boolean">
      実行中かどうかを示すブール値。
    </ResponseField>

    <ResponseField name="storage" type="string">
      現在使用しているストレージ。
    </ResponseField>

    <ResponseField name="network" type="object">
      ネットワークの使用量と合計使用量。

      <Expandable title="オブジェクトを切り替え">
        <ResponseField name="total" type="string">
          合計使用量。
        </ResponseField>

        <ResponseField name="now" type="string">
          現在の使用量。
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="uptime" type="int">
      稼働時間を表すタイムスタンプ。
    </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>
