Retrieves the database profile.
Operation description
To use the data profile, first register the location of the OSS bucket for the database.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
dlf:GetDatabaseProfile | *All Resource
| None | None |
Request syntax
GET /webapi/metastorehouse/catalog/database/databaseprofile HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
CatalogId | string | No | The catalog ID. | 1344371 |
DatabaseName | string | Yes | The database name. | test_db |
Response elements
Element | Type | Description | Example |
object | The response body. | ||
Code | string | The error code. | - |
Message | string | The error message. | - |
RequestId | string | The request ID. | AEA7DCC8-DBF5-561B-A7FD-0747D7D51FEB |
Success | boolean | Indicates whether the request was successful. Valid values:
| true |
DatabaseProfile | The database profile. | { "FileCnt": 213, "FileSize": 34324 } |
Examples
Success response
JSON format
{
"Code": "-",
"Message": "-",
"RequestId": "AEA7DCC8-DBF5-561B-A7FD-0747D7D51FEB",
"Success": true,
"DatabaseProfile": {
"FileCnt": 3234,
"FileSize": 1254312,
"Name": "test_db",
"CreateTime": "2023-08-16 18:02:22",
"Location": "oss://mybucket.cn-hangzhou.oss-dls.aliyuncs.com/test_db/",
"ObjectSize": 1254312,
"ObjectCnt": 3234,
"LatestDate": "2023-08-30 19:16:10"
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.