UpdateDataLakeDatabase
Updates the information of a data lakehouse database.
Try it now
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
dms:UpdateDataLakeDatabase | update | *All Resource
| None | None |
Request syntax
POST HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
CatalogName | string | Yes | The name of the data catalog. | hive |
DbName | string | Yes | The name of the database. | default |
Description | string | No | The description of the database. | test |
Location | string | Yes | The storage path of the database. Supported protocols include oss, s3, and s3a. | oss://path/to/database |
| Parameters | object | No | The key-value pairs of the database properties. | |
string | No | The key and value of the parameter. | {"key":"value"} | |
Tid | integer | No | The tenant ID. Note Hover over your profile picture in the upper-right corner of the DMS console to obtain the tenant ID. For details, see View tenant information. | 3**** |
WorkspaceId | integer | No | The workspace ID. | 12**** |
Response elements
Element | Type | Description | Example |
object | Schema of Response. | ||
RequestId | string | The ID of the request, used for log tracing and troubleshooting. | 4E1D2B4D-3E53-4ABC-999D-1D2520B3**** |
ErrorCode | string | The error code that is returned if the request fails. | UnknownError |
ErrorMessage | string | The error message that is returned if the request fails. | UnknownError |
Success | boolean | Indicates whether the request was successful. Valid values:
| true |
Database | The details of the database. |
Examples
Success response
JSON format
{
"RequestId": "4E1D2B4D-3E53-4ABC-999D-1D2520B3****",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Database": {
"Description": "Default database for catalog hive\n",
"Parameters": {
"test": "test",
"test2": 1
},
"DbId": 19,
"CatalogName": "hive",
"Name": "default",
"Location": "oss://xxx"
}
}Error codes
See for a complete list.
Release notes
See 变更详情 for a complete list.