---
title: "POST /#X-Amz-Target=AmazonAthena.GetDatabase"
method: POST
path: "/#X-Amz-Target=AmazonAthena.GetDatabase"
---

# POST /#X-Amz-Target=AmazonAthena.GetDatabase

`POST /#X-Amz-Target=AmazonAthena.GetDatabase`

Returns a database object for the specified database and data catalog.

## Headers

- `X-Amz-Target` 'AmazonAthena.GetDatabase', required

## Request body

- GetDatabaseInput
  - `CatalogName` string, required — The name of the data catalog that contains the database to return.
  - `DatabaseName` string, required — The name of the database to return.

## Response `200`

Success

- GetDatabaseOutput
  - `Database` object — The database returned.
    - `Name` string, required — The name of the database.
    - `Description` string — An optional description of the database.
    - `Parameters` object — A set of custom key/value pairs.

## Other responses

- `480` — InternalServerException
- `481` — InvalidRequestException
- `482` — MetadataException

---

[API](https://skmtc.net/aws/apis/athena.md) · [All operations](https://skmtc.net/aws/apis/athena/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/athena/versions/0aec8c61283d/schema)
