All Products
Search
Document Center

Serverless App Engine:ListAppVersions

Last Updated:Nov 04, 2025

Queries the deployment versions of an application.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
sae:ListAppVersionsget
*All Resources
*
    none
none

Request syntax

GET /pop/v1/sam/app/listAppVersions HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The returned message.

7171a6ca-d1cd-4928-8642-7d5cfe69****

Response parameters

ParameterTypeDescriptionExample
object

The parameter returned.

Messagestring

The ID of the request.

success
RequestIdstring

The information about the versions.

01CF26C7-00A3-4AA6-BA76-7E95F2A3****
Dataarray<object>

The information about the versions.

PackageVersionEntityobject

The information about the versions.

Typestring

The deployment method of the application. Valid values:

  • image: indicates that the application is deployed by using an image.
  • url: indicates that the application is deployed by using a code package.
image
CreateTimestring

The download link of the WAR or JAR package. This parameter is returned when the Type parameter is set to url.

1590124643553
BuildPackageUrlstring

The URL of the code package. If you use the SAE console to upload the code package, take note of the following items:

  • You cannot download the URL. You must call the GetPackageVersionAccessableUrl operation to obtain the URL. The obtained URL is valid for 10 minutes.
  • SAE can retain the package up to 90 days. After 90 days, the URL cannot be returned or downloaded.
https://edas-hz.oss-cn-hangzhou.aliyuncs.com/apps/K8s_APP_ID/1d0e7884-60f0-41d2-89dd-ec1f3c69****/hello-sae.war
WarUrlstring

The URL of the image.

registry-vpc.cn-hangzhou.aliyuncs.com/****/1362469756373809_shared_repo:42646692-66e7-4a21-b629-897752975cdf_159012464****
Idstring

The error code.

  • The ErrorCode parameter is not returned when the request succeeds.
  • The ErrorCode parameter is returned when the request fails. For more information, see Error codes in this topic.
a0ce266c-d354-423a-9bd6-4083405a****
ErrorCodestring

The HTTP status code. Valid values:

  • 2xx: indicates that the request was successful.
  • 3xx: indicates that the request was redirected.
  • 4xx: indicates that the request was invalid.
  • 5xx: indicates that a server error occurred.
Codestring

Indicates whether the historical versions of the application were obtained. Valid values:

  • true: indicates that the historical versions of the application were obtained.
  • false: indicates that the historical versions of the application could not be obtained.
200

Examples

Sample success responses

JSONformat

{
  "Message": "success",
  "RequestId": "01CF26C7-00A3-4AA6-BA76-7E95F2A3****",
  "Data": [
    {
      "Type": "image",
      "CreateTime": 1590124643553,
      "BuildPackageUrl": "https://edas-hz.oss-cn-hangzhou.aliyuncs.com/apps/K8s_APP_ID/1d0e7884-60f0-41d2-89dd-ec1f3c69****/hello-sae.war",
      "WarUrl": "registry-vpc.cn-hangzhou.aliyuncs.com/****/1362469756373809_shared_repo:42646692-66e7-4a21-b629-897752975cdf_159012464****",
      "Id": "a0ce266c-d354-423a-9bd6-4083405a****"
    }
  ],
  "ErrorCode": "",
  "Code": 200,
  "Success": true
}

Error codes

HTTP status codeError codeError message
400InvalidApplication.NotFoundThe current application does not exist.

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

Change history

Change timeSummary of changesOperation
No change history