You can call this operation to query deployment package versions.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request headers

This operation uses common request headers, instead of special request headers. For more information, see the "Common request headers" section in "Common request and response headers."

Request syntax

GET /pop/v1/wam/pkgVersion HTTP/1.1

Request parameters

Parameter Type Required? Example Description
AppId String Yes wa-5d1d9d8c85c7f86**********

The ID of the application to which the deployment package versions to be queried belong.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 10

The number of entries to return on each page.

PkgVersionLabel String No version-demo-tmc-1.4

The label of the deployment package version.

PkgVersionSearch String No tmc

The keyword used to query the labels of deployment package versions. The deployment package version whose label contains the keyword is returned.

Response parameters

Parameter Type Example Description
Code String OK

The response code. The value is OK if the request is successful.

Message String success

The response message. The value is success if the request is successful.

PageNumber Integer 1

The number of the page returned.

PageSize Integer 10

The number of entries returned on each page.

PkgVersions

The list of the deployment package versions queried.

AppId String wa-5d1d9d8c85c7f86e2ef*****

The ID of the application to which the deployment package version belongs.

AppName String App1

The name of the application to which the deployment package version belongs.

CreateTime Long 1562246822377

The time when the deployment package version was created.

CreateUsername String baiji

The name of the user who created the deployment package version.

PackageSource String resources/userName/versions/version-demo-tmc-1.4/webx-quickstart-tomcat-0.1.0-SNAPSHOT.war

The URL of the resource package used to create the deployment package version.

PkgVersionDescription String This is a package.

The description of the deployment package version.

PkgVersionId String wp-5d244f33f314934e2ab*****

The ID of the deployment package version.

PkgVersionLabel String version-demo-tmc-1.5

The label of the deployment package version.

UpdateTime Long 1562246822377

The time when the deployment package version was last updated.

RequestId String 9ADFCBC1-3315-4E97-B5A3-406528B*****

The ID of the request.

TotalCount Integer 1

The total number of entries returned.

Examples

Sample request


http(s)://webplus.cn-hangzhou.aliyuncs.com/? AppId=wa-5d1d9d8c85c7f*****fb7234
&<Common request parameters>

Sample success response

XML format

<DescribePkgVersionsResponse>
    <PageNumber>1</PageNumber>
    <TotalCount>1</TotalCount>
    <Message>success</Message>
    <PageSize>10</PageSize>
    <RequestId>D2F23007-1F7F-4532-852E-6127B18*****</RequestId>
    <PkgVersions>
        <PkgVersion>
            <PackageSource>resources/user1/versions/version-demo-tmc-1.5/webx-quickstart-tomcat-0.1.0-SNAPSHOT.war</PackageSource>
            <PkgVersionDescription>This is a package. </PkgVersionDescription>
            <CreateUsername>user1</CreateUsername>
            <CreateTime>1562660659387</CreateTime>
            <AppId>wa-5d1d9d8c85c7f86e2ef*****</AppId>
            <UpdateTime>1562660659387</UpdateTime>
            <PkgVersionLabel>version-demo-tmc-1.5</PkgVersionLabel>
            <PkgVersionId>wp-5d244f33f314934e2ab*****</PkgVersionId>
        </PkgVersion>
    </PkgVersions>
    <Code>OK</Code>
</DescribePkgVersionsResponse>

JSON format

{
	"PageNumber":1,
	"TotalCount":1,
	"Message":"success",
	"PageSize":10,
	"RequestId":"39A380A0-5A5F-4832-B27D-AAB8318*****",
	"PkgVersions":{
		"PkgVersion":[
			{
				"PackageSource":"resources/userName/versions/version-demo-tmc-1.5/webx-quickstart-tomcat-0.1.0-SNAPSHOT.war",
				"PkgVersionDescription":"This is a package.",
				"CreateUsername":"user1",
				"CreateTime":1562660659387,
				"AppId":"wa-5d1d9d8c85c7f86e2ef*****",
				"UpdateTime":1562660659387,
				"Label":"version-demo-tmc-1.5",
				"PkgVersionId":"wp-5d244f33f314934e2ab*****"
			}
		]
	},
	"Code":"OK"
}

Error codes

HTTP status code Error code Error message Description
403 ResourceAuthFailed The specified resource does not exist or it does not belong to this Alibaba Cloud account. The error message returned because the specified resource does not exist or it does not belong to your Alibaba Cloud account.

For more information about error codes, see API Error Center.