All Products
Search
Document Center

:ListAppVersions

Last Updated:Aug 01, 2024

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.

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
sae:ListAppVersionsget
  • All Resources
    *
    none
none

Request syntax

GET /pop/v1/sam/app/listAppVersions

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The returned message.

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

Response parameters

ParameterTypeDescriptionExample
object
Messagestring

The ID of the request.

success
RequestIdstring

The information about the versions.

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

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.
object
Typestring

The time when the application was created.

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 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.
https://edas-hz.oss-cn-hangzhou.aliyuncs.com/apps/K8s_APP_ID/1d0e7884-60f0-41d2-89dd-ec1f3c69****/hello-sae.war
WarUrlstring

The ID of the version.

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