All Products
Search
Document Center

Enterprise Distributed Application Service:ListHistoryDeployVersion

Last Updated:Jan 08, 2024

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.

Debug

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:
    • The required resource types are displayed in bold characters.
    • 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
edas:ReadApplicationRead
  • Application
    acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}
    none
none

Request syntax

GET /pop/v5/app/deploy_history_version_list

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the application. You can call the ListApplication operation to query the application ID. For more information, see ListApplication .

3616cdca-4f92-4413-****-************

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The additional information that is returned.

success
RequestIdstring

The ID of the request.

D16979DC-4D42-************
PackageVersionListobject []

The information about historical deployment packages.

Typestring

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.
url
PublicUrlstring

The URL of the deployment package.

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

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

1573627440892
Descriptionstring

The description of the deployment package.

deploy
CreateTimelong

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

1573627440892
AppIdstring

The ID of the application.

3616cdca-4f92-4413-****-************
WarUrlstring

The URL of the deployment package.

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

The unique ID of the deployment package.

441beb18-da42-44dc-****-************
PackageVersionstring

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

1.0

Examples

Sample success responses

JSONformat

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

Error codes

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