Queries historical deployment packages 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 the common request header. For more information, see Common request parameters.

Request syntax

GET /pop/v5/app/deploy_history_version_list HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes 3616cdca-4f92-4413-****-************

The ID of the application whose historical deployment packages you want to query. You can call the ListApplication operation to query the application ID. For more information, see ListApplication.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Message String success

The returned message.

PackageVersionList Array of PackageVersion

The list of historical deployment packages.

PackageVersion
AppId String 3616cdca-4f92-4413-****-************

The ID of the application.

CreateTime Long 1573627440892

The time when the historical deployment package was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Description String deploy

The description of the historical deployment package.

Id String 441beb18-da42-44dc-****-************

The unique ID of the historical deployment package.

PackageVersion String 1.0

The version of the application that was published by using the historical deployment package. This version can be used to call the RollbackApplication operation.

PublicUrl String http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar

The URL of the historical deployment package.

Type String url

The deployment mode of the application. Valid values:

  • url: The application is deployed by using a JAR or WAR package.
  • image: The application is deployed by using an image.
UpdateTime Long 1573627440892

The time when the historical deployment package was updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

WarUrl String http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar

The URL of the historical deployment package.

RequestId String D16979DC-4D42-************

The ID of the request.

Examples

Sample requests

GET /pop/v5/app/deploy_history_version_list HTTP/1.1
Common request header
{
  "AppId": ""
}

Sample success responses

XML format

<PackageVersionList>
    <PackageVersion>
        <Type>url</Type>
        <Description>deploy</Description>
        <AppId>3616cdca-4f92-4413-****-************</AppId>
        <PublicUrl>http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar</PublicUrl>
        <WarUrl>http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar</WarUrl>
        <CreateTime>1573627440892</CreateTime>
        <UpdateTime>1573627440892</UpdateTime>
        <Id>441beb18-da42-44dc-****-************</Id>
        <PackageVersion>1.0</PackageVersion>
    </PackageVersion>
</PackageVersionList>
<RequestId>D16979DC-4D42-************</RequestId>
<Message>success</Message>
<Code>200</Code>

JSON format

{
    "PackageVersionList": {
        "PackageVersion": {
            "Type": "url",
            "Description": "deploy",
            "AppId": "3616cdca-4f92-4413-****-************",
            "PublicUrl": "http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar",
            "WarUrl": "http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar",
            "CreateTime": 1573627440892,
            "UpdateTime": 1573627440892,
            "Id": "441beb18-da42-44dc-****-************",
            "PackageVersion": 1
        }
    },
    "RequestId": "D16979DC-4D42-************",
    "Message": "success",
    "Code": 200
}

Error codes

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