GetDatabase
Updated at:
Retrieves the details of a database.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dlf:GetDatabase |
get |
*All Resource
|
None | None |
Request syntax
GET /dlf/v1/{catalogId}/databases/{database} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| catalogId |
string |
Yes |
The ID of the catalog. |
clg-paimon-xxxx |
| database |
string |
No |
The name of the database. |
database_name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
| Database |
The database details. |
Examples
Success response
JSON format
{
"id": "1",
"name": "test_database",
"location": "oss://clg-paimon-xxx/db-xxx\n",
"options": {
"key": "{\\\"comment\\\":\\\"测试\\\"}"
},
"owner": "acs:ram::[accountId]:root",
"createdAt": 1744970111419,
"createdBy": "acs:ram::[accountId]:root",
"updatedAt": 1744970111419,
"updatedBy": "acs:ram::[accountId]:root",
"tableCount": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.
Is this page helpful?