You can call this operation to query technology stacks.

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/stack HTTP/1.1

Request parameters

Parameter Type Required? Example Description
CategoryName String No Java

The name of the technology stack type.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 10

The number of entries to return on each page.

RecommendedOnly Boolean No true

Specifies whether to query only the recommended technology stacks.

Response parameters

Parameter Type Example Description
PageNumber Integer 1

The number of the page returned.

Message String success

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

Code String OK

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

PageSize Integer 10

The number of entries returned on each page.

RequestId String E95B3D91-ED61-4715-AAD1-7E496A*****6

The ID of the request.

Stacks

The list of the technology stacks queried.

CreateTime Long 1553218065000

The time when the technology stack was created.

UpdateTime Long 1553218065000

The time when the technology stack was last updated.

VersionCode Integer 10

The version code of the technology stack.

TotalCount Integer 1

The total number of entries returned.

Examples

Sample request


http://webplus.cn-hangzhou.aliyuncs.com/pop/v1/wam/stack?ServiceCode=webx&Category=Java&PageSize=10&PageNumber=1&RecommendedOnly=true&<Common request parameters>

Sample success response

XML format

<DescribeStacksResponse>
    <PageNumber>1</PageNumber>
    <TotalCount>1</TotalCount>
    <Message>success</Message>
    <PageSize>10</PageSize>
    <RequestId>2581EA69-00C2-44F8-85DD-1F1*****44D7</RequestId>
    <Stacks>
        <Stack>
            <LatestStack>true</LatestStack>
            <CategoryName>Java</CategoryName>
            <RecommendedStack>true</RecommendedStack>
            <StackId>ws-6c937c98a9c*****0c4823984</StackId>
            <CreateTime>1553218065000</CreateTime>
            <VersionCode>10</VersionCode>
            <UpdateTime>1553218065000</UpdateTime>
            <StackName>Java 8 / Aliyun Linux 2.1903</StackName>
        </Stack>
    </Stacks>
    <Code>OK</Code>
</DescribeStacksResponse>

JSON format

{
	"PageNumber":1,
	"TotalCount":1,
	"Message":"success",
	"PageSize":10,
	"RequestId":"1EC2BF9F-20BA-4877-B9DC-89CA*****589",
	"Stacks":{
		"Stack":[
			{
				"LatestStack":true,
				"CategoryName":"Java",
				"RecommendedStack":true,
				"StackId":"ws-6c937c98a9*****d0c4823984",
				"CreateTime":1553218065000,
				"VersionCode":10,
				"UpdateTime":1553218065000,
				"StackName":"Java 8 / Aliyun Linux 2.1903"
			}
		]
	},
	"Code":"OK"
}

Error codes

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