All Products
Search
Document Center

ListLayerVersions

Last Updated: May 31, 2022

Queries the versions of a layer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

nameTypes ofRequireddescribeexample value
layerNamestringYes

The name of the layer.

MyLayer
startVersionintegerNo

The initial version of the layer.

1
limitintegerNo

The maximum number of resources to return. Default value: 20. Maximum value: 100. The number of returned resources is less than or equal to the specified number.

20
X-Fc-Account-IdstringNo

The ID of your Alibaba Cloud account.

188077086902****
X-Fc-DatestringNo

The start time of the invocation. Specify the time in the yyyy-mm-ddhh:mm:ss format.

2020-12-1210:00:00
X-Fc-Trace-IdstringNo

The trace ID of the request for Function Compute API.

rid281s******

Response parameters

nameTypes ofdescribeexample value
object

The returned data.

layersarray

The information about layer versions.

Layer

The details of the layer.

None
nextVersioninteger

The initial version of the layer for the next query.

21

Error codes

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