All Products
Search
Document Center

MaxCompute:ListPackages

Last Updated:Mar 03, 2024

Queries the packages 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}/packages

Request parameters

ParameterTypeRequiredDescriptionExample
projectNamestringYes

The name of the MaxCompute project.

projectA

Response parameters

ParameterTypeDescriptionExample
object

PopResult

requestIdstring

The ID of the request.

0bc3b4aa16677927210252786e4cb6
dataobject

The returned data.

createdPackagesobject []

The packages that were created.

namestring

The name of the package.

packageA
createTimelong

The time when the package was created.

2022-08-02T02:30:34Z
installedPackagesobject []

The packages that were installed.

namestring

The name of the package.

packageB
sourceProjectstring

The project to which the package belongs. This parameter is required if the package is installed in the MaxCompute project.

projectB
statusstring

The status of the package.

OK
installTimelong

The time when the package was installed.

2022-09-02T02:30:34Z

Examples

Sample success responses

JSONformat

{
  "requestId": "0bc3b4aa16677927210252786e4cb6",
  "data": {
    "createdPackages": [
      {
        "name": "packageA",
        "createTime": 0
      }
    ],
    "installedPackages": [
      {
        "name": "packageB",
        "sourceProject": "projectB",
        "status": "OK",
        "installTime": 0
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history