CreateDataLakeFunction
Creates a user-defined function (UDF) for a data lake.
Try it now
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
dms:CreateDataLakeFunction | create | *All Resource
| None | None |
Request 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 |
FunctionInput | Yes | The details of the function. | ||
Tid | integer | No | The ID of the tenant. 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 ID of the workspace. | 12**** |
Response elements
Element | Type | Description | Example |
object | Schema of Response. | ||
RequestId | string | The request ID, used for log tracing and troubleshooting. | EE214ECD-4330-503A-82F0-FFB03975**** |
ErrorCode | string | The error code. | UnknownError |
ErrorMessage | string | The error message returned if the request fails. | UnknownError |
Success | boolean | Indicates whether the request was successful. Valid values:
| true |
Function | The details of the function. |
Examples
Success response
JSON format
{
"RequestId": "EE214ECD-4330-503A-82F0-FFB03975****",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Function": {
"FunctionName": "",
"OwnerName": "",
"OwnerType": "",
"CreatorId": 0,
"FunctionType": "",
"CreateTime": 0,
"ResourceUris": [
{
"ResourceType": "",
"Uri": ""
}
],
"ClassName": "",
"CatalogName": "",
"DbName": "",
"ModifierId": 0
}
}Error codes
See for a complete list.
Release notes
See 变更详情 for a complete list.