You can call this operation to obtain the version information of a layer.

Request headers

This operation uses only common request headers. For more information, see Common parameters.

Request syntax

GET /layers/{layerName}/versions/{version} HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
layerName String Path Yes Layer-name

The name of the layer.

version String Path Yes 1

The version of the layer.

Response parameters

Parameter Type Example Description
ETag String e19d5cd5af0378da05f63f891c7467af

The value used to ensure that the modified function is consistent with the function to be modified.

Layer

The layer structure returned.

Examples

Sample requests

GET /2016-08-15/layers/Layer-name/versions/1 HTTP/1.1
Common request headers

Sample success responses

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "layerName" : "Layer-name",
  "version" : 1,
  "description" : "Layer-description",
  "code" : {
    "repositoryType" : "OSS",
    "location" : "https://xyz.oss-cnxxx.aliyuncs.com/xxx/xxx/xxx"
  },
  "codeSize" : 421,
  "codeChecksum" : "2825179536350****",
  "createTime" : "2020-11-11T11:08:00Z",
  "acl" : 0,
  "compatibleRuntime" : [ "python3" ],
  "arn" : "02f81d283888f5ec63442a88fe82b260#Layer-name#1"
}