Queries the historical versions of an application.
Debugging
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:
|
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**** |
|
Id | String | a0ce266c-d354-423a-9bd6-4083405a**** | The ID of the version. |
ErrorCode | String | This parameter is left empty. | The error code.
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether the historical versions of the application were obtained. Valid values:
|
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.