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

### パラメータ

<ParamField path="database_id" type="string" placeholder="Database ID" required>
  データベースの ID。Square Cloud ダッシュボードで確認できます。
</ParamField>

### レスポンス

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

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

  <Expandable title="オブジェクトを切り替える">
    <ResponseField name="name" type="string">
      データベースの名前。
    </ResponseField>

    <ResponseField name="id" type="string">
      データベースの ID。
    </ResponseField>

    <ResponseField name="owner" type="string">
      データベース所有者の ID。
    </ResponseField>

    <ResponseField name="cluster" type="string">
      データベースのクラスター。
    </ResponseField>

    <ResponseField name="ram" type="number">
      データベースの RAM 使用量（MB 単位）。
    </ResponseField>

    <ResponseField name="type" type="string">
      データベースのタイプ（例: mongodb、postgresql）。
    </ResponseField>

    <ResponseField name="port" type="number">
      データベースのポート。
    </ResponseField>

    <ResponseField name="created_at" type="date">
      データベースの作成日。
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "status": "success",
    "response": {
      "name": "my-database",
      "id": "db1234567890",
      "owner": "313397145698959364",
      "cluster": "suki-cluster",
      "ram": 1024,
      "type": "mongodb",
      "port": 27017,
      "created_at": "2023-01-15T10:00:00Z"
    }
  }
  ```
</ResponseExample>
