Queries the packages in a MaxCompute project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListPackages |
list |
*Project
|
None | None |
Request syntax
GET /api/v1/projects/{projectName}/packages HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the MaxCompute project. |
projectA |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID. |
0bc3b4aa16677927210252786e4cb6 |
| data |
object |
The returned data. |
|
| createdPackages |
array<object> |
The list of packages created by the project. |
|
|
object |
A created package. |
||
| name |
string |
The package name. |
packageA |
| createTime |
integer |
The time when the package was created. |
2022-08-02T02:30:34Z |
| installedPackages |
array<object> |
The list of installed packages. |
|
|
object |
An installed package. |
||
| name |
string |
The package name. |
packageB |
| sourceProject |
string |
The project to which the package belongs. This parameter is required for installed packages. |
projectB |
| status |
string |
The package status. |
OK |
| installTime |
integer |
The time when the package was installed. |
2022-09-02T02:30:34Z |
Examples
Success response
JSON format
{
"requestId": "0bc3b4aa16677927210252786e4cb6",
"data": {
"createdPackages": [
{
"name": "packageA",
"createTime": 0
}
],
"installedPackages": [
{
"name": "packageB",
"sourceProject": "projectB",
"status": "OK",
"installTime": 0
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.