Obtains the information about a package.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /api/v1/projects/{projectName}/packages/{packageName}
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
projectName | string | Yes | The name of the MaxCompute project. | projectA |
packageName | string | Yes | The name of the package. | test_package |
sourceProject | string | No | The project to which the package belongs. This parameter is required if the package is installed in the MaxCompute project. | projectB |
Response parameters
Examples
Sample success responses
JSON
format
{
"requestId": "0b57ff8316614119858417939e3e54",
"httpCode": 200,
"errorCode": "040002",
"errorMsg": "error message.",
"data": {
"allowedProjectList": [
{
"label": "2",
"project": "proejctB"
}
],
"resourceList": {
"table": [
{
"name": "dim_odps\n",
"schemaName": "default",
"actions": [
"describe"
]
}
],
"resource": [
{
"name": "res_1",
"schemaName": "default",
"actions": [
"read"
]
}
],
"function": [
{
"name": "function_1",
"schemaName": "default",
"actions": [
"read"
]
}
]
}
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2023-12-10 | The response structure of the API has changed | see changesets | ||
|