Queries the historical versions of an application.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request headers. For more information, see Common request parameters and common response parameters.

Request syntax

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

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes 7171a6ca-d1cd-4928-8642-7d5cfe69****

The ID of the application.

Response parameters

Parameter Type Example Description
Message String success

The returned message.

RequestId String 01CF26C7-00A3-4AA6-BA76-7E95F2A3****

The ID of the request.

Data Array of PackageVersionEntity

The information about the versions.

Type String image

The deployment method of the application. Valid values:

  • image: indicates that the application was deployed by using an image.
  • upload: indicates that the application was deployed by uploading a WAR or JAR package.
  • url: indicates that the application was deployed by specifying the URL of a WAR or JAR package.
CreateTime String 1590124643553

The time when the application was created.

BuildPackageUrl String https://edas-hz.oss-cn-hangzhou.aliyuncs.com/apps/K8s_APP_ID/1d0e7884-60f0-41d2-89dd-ec1f3c69****/hello-sae.war

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

WarUrl String registry-vpc.cn-hangzhou.aliyuncs.com/****/1362469756373809_shared_repo:42646692-66e7-4a21-b629-897752975cdf_159012464****
  • The address of the image. This parameter is returned when the Type parameter is set to image.
  • The download link of the WAR or JAR package. This parameter is returned when the Type parameter is set to upload.
Id String a0ce266c-d354-423a-9bd6-4083405a****

The ID of the version.

ErrorCode String This parameter is left empty.

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.
Code String 200

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.
Success Boolean true

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.

Examples

Sample requests

GET /pop/v1/sam/app/listAppVersions?AppId=7171a6ca-d1cd-4928-8642-7d5cfe69**** HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

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

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "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****"
  } ],
  "Code" : "200",
  "Success" : true
}

Error codes

HttpCode Error code Error message Description
400 InvalidApplication.NotFound The current application does not exist. The error message returned because the specified application cannot be found.

For a list of error codes, visit the API Error Center.