Available in VPC
Get database details.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v1/catalogs/{catalogId}/databases/{databaseName} |
Request headers
For information about the headers common to all Data Catalog APIs, see Data Catalog request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
catalogId |
Integer | Required | Catalog ID
|
databaseName |
String | Required | Database name
|
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
includeTags |
Boolean | Required | Whether to include tags in the response
|
Request example
The request example is as follows:
curl --location --request GET 'https://datacatalog.apigw.ntruss.com/api/v1/catalogs/4**/databases/my_database?includeTags=true' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
catalogId |
Integer | - | Catalog ID |
name |
String | - | Database name |
databaseName |
String | - | Database name |
description |
String | - | Database description |
location |
String | - | Database location |
tagKeyTypeValueList |
Array | - | Tag list
|
createTime |
String | - | Database creation date and time
|
updateTime |
String | - | Database update date and time
|
tagKeyTypeValueList
The following describes tagKeyTypeValueList
.
Field | Type | Required | Description |
---|---|---|---|
tagKey |
String | - | Tag key |
tagType |
String | - | Tag type |
tagValue |
String | - | Tag value |
tagTemplateTagId |
Integer | - | Tag ID
|
Response status codes
For response status codes common to all Data Catalog APIs, see Data Catalog response status codes.
Response example
The response example is as follows:
{
"catalogId": 4**,
"name": "my_database",
"databaseName": "my_database",
"description": "my database",
"location": "s3a://datacatalog-c***-e******f/my_database",
"tagKeyTypeValueList": [
{
"tagKey": "name",
"tagType": "STRING",
"tagValue": "name",
"tagTemplateTagId": 464
}
],
"createTime": "2025-03-17T16:30:08+0900",
"updateTime": "2025-03-17T16:57:43+0900"
}