GetDatabaseProfile
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
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
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 for a complete list.
Release notes
See 变更详情 for a complete list.