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

# 列出连接可读的 Schema

> 列出已保存的数据库连接能读取的 schema

```
GET /openapi/memorylake/api/v3/db-connections/{connectionId}/schemas
```

列出已保存的连接能读取的 schema。[创建数据源](https://docs.memorylake.cn/features/memorylake/api-reference/database/datasources/create-datasource.md)时，从结果中选择 schema。与[测试数据库连通性](https://docs.memorylake.cn/features/memorylake/api-reference/database/connections/test-database-connectivity.md)不同，这个接口不需要密码。

> [!NOTE]
>
> **所需权限：** `dbconn:read`

### 路径参数

**connectionId** `string` *required*

数据库连接 ID

```bash cURL theme={null}
curl -X GET 'https://app.memorylake.cn/openapi/memorylake/api/v3/db-connections/dbconn-7c1e9a4b2d6f4a8e9b3c5d7f1a2b4c6d/schemas' \
  -H 'Authorization: Bearer sk_xxxxxx'
```

### 响应

**data** `object`

**可读的 schema**

**schemas** `array`

这个连接能读取的 schema。创建数据源时从中选择一个。

```json Success (200) theme={null}
{
  "success": true,
  "data": {
    "schemas": ["public", "sales"]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.