v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142021,119944.8 KB

Retrieves all databases defined in a given Data Catalog.

post/#X-Amz-Target=AWSGlue.GetDatabases

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'AWSGlue.GetDatabases' required

Request body

CatalogIdstring

The ID of the Data Catalog from which to retrieve <code>Databases</code>. If none is provided, the Amazon Web Services account ID is used by default.

NextTokenstring

A continuation token, if this is a continuation call.

MaxResultsinteger

The maximum number of databases to return in one response.

ResourceShareType'FOREIGN' | 'ALL' | 'FEDERATED'
<p>Allows you to specify that you want to list the databases shared with your account. The allowable values are <code>FEDERATED</code>, <code>FOREIGN</code> or <code>ALL</code>. </p> <ul> <li> <p>If set to <code>FEDERATED</code>, will list the federated databases (referencing an external entity) shared with your account.</p> </li> <li> <p>If set to <code>FOREIGN</code>, will list the databases shared with your account. </p> </li> <li> <p>If set to <code>ALL</code>, will list the databases shared with your account, as well as the databases in yor local account. </p> </li> </ul>

Response

Success

NextTokenstring

A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.