All Products
Search
Document Center

MaxCompute:ListFunctions

Last Updated:Mar 03, 2024

Obtains functions in a MaxCompute project.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /api/v1/projects/{projectName}/functions

Request parameters

ParameterTypeRequiredDescriptionExample
projectNamestringYes

The name of the MaxCompute project.

odps_project
schemaNamestringNo

the name of schema.

default
prefixstringNo

The names of the returned resources. The names must start with the value specified by the prefix parameter. If the prefix parameter is set to a, the names of the returned resources must start with a.

a
markerstringNo

Specifies the marker after which the returned list begins.

cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==
maxItemintegerNo

The maximum number of entries to return on each page.

10

Response parameters

ParameterTypeDescriptionExample
object

PopResult<ListResultDTO<FunctionInfo, MarkerPageInfo>>

requestIdstring

The ID of the request.

0be3e0b716671885050924814e3623
dataobject

The returned data.

functionsobject []

The information about each function.

displayNamestring

The display name of the function.

getdate
namestring

The name of the function.

getdate
ownerstring

The owner of the function.

odpsowner
schemastring

The schema of the function.

abc
resourcesstring

The name of the resource that was associated with the function.

abc
creationTimelong

The time when the function was created. Unit: milliseconds.

1664505167000
classstring

The class in which the function was defined.

abc
markerstring

Indicates the marker after which the returned list begins.

cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==
maxIteminteger

The maximum number of entries returned per page.

10

Examples

Sample success responses

JSONformat

{
  "requestId": "0be3e0b716671885050924814e3623",
  "data": {
    "functions": [
      {
        "displayName": "getdate",
        "name": "getdate",
        "owner": "odpsowner",
        "schema": "abc",
        "resources": "abc",
        "creationTime": 1664505167000,
        "class": "abc"
      }
    ],
    "marker": "cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==",
    "maxItem": 10
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-11-14The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: schemaName
Output ParametersThe response structure of the API has changed.