Performs a paged query to retrieve a list of function names from a database.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dlf:ListFunctionNames |
list |
*All Resource
|
None | None |
Request syntax
GET /api/metastore/catalogs/databases/functions/names HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CatalogId |
string |
No |
The ID of the data catalog. |
1344371 |
| DatabaseName |
string |
No |
The name of the database. |
database_test |
| FunctionNamePattern |
string |
No |
The regular expression that the function names must match. |
.* |
| NextPageToken |
string |
No |
The token to retrieve the next page of results. It is returned in the response. To retrieve the first page, pass an empty string ('') or leave this parameter empty. |
'' |
| PageSize |
integer |
No |
The number of entries to return on each page. The maximum value is 1000. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Code |
string |
The description of the status code. |
OK |
| FunctionNames |
array |
A list of function names. |
|
|
string |
The name of the function. |
func2 |
|
| Message |
string |
The returned message. |
. |
| NextPageToken |
string |
The token for the next page of results. |
2cb472ec1bf84f8d92f9c4baa0d21c19aa |
| RequestId |
string |
The ID of the request. |
B7F4B621-E41E-4C84-B97F-42B5380A32BB |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Error codes for the Code parameter:
InternalError: An internal error occurred. For more information, see the Message parameter.
Examples
Success response
JSON format
{
"Code": "OK",
"FunctionNames": [
"func2"
],
"Message": ".",
"NextPageToken": "2cb472ec1bf84f8d92f9c4baa0d21c19aa",
"RequestId": "B7F4B621-E41E-4C84-B97F-42B5380A32BB",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.