---
title: "Get a list of schema names of a database"
method: GET
path: "/api/v1/actions/dataSources/{dataSourceId}/scanSchemata"
tags: ["Scanning"]
---

# Get a list of schema names of a database

`GET /api/v1/actions/dataSources/{dataSourceId}/scanSchemata`

## Request

- Base URL: `https://www.gooddata.ai`
- URL: `https://www.gooddata.ai/api/v1/actions/dataSources/{dataSourceId}/scanSchemata`
- Auth: none declared

It scans a database and reads metadata. The result of the request contains a list of schema names of a database.

## Path parameters

- `dataSourceId` string, required

## Response `200`

The result of the scan schemata

- DataSourceSchemata: Result of getSchemata. Contains list of available DB schema names.
  - `schemaNames` string[], required

---

[API](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/revisions/c728ef303bfb?raw)
