Releases a layer version.
Authorization information
Request syntax
POST /2021-04-06/layers/{layerName}/versions
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
layerName | string | Yes | The name of the runtime. Valid values: nodejs14, nodejs12, nodejs10, nodejs8, nodejs6, python3.9, python3, python2.7, java11, java8, php7.2, go1, dotnetcore2.1 and custom. | MyLayer |
body | object | No | The description of the layer version. | |
description | string | No | The name of the layer. | test |
compatibleRuntime | array | No | The name of the runtime. Valid values: nodejs14, nodejs12, nodejs10, nodejs8, nodejs6, python3.9, python3, python2.7, java11, java8, php7.2, go1, dotnetcore2.1 and custom. | |
string | No | The version of the layer. | python3 | |
Code | Code | Yes | The name of the layer. | |
X-Fc-Account-Id | string | No | The description of the layer. | 188077086902**** |
X-Fc-Date | string | No | The checksum of the layer code package. | Wed, 11 May 2022 09:00:00 GMT |
X-Fc-Trace-Id | string | No | The information about the layer code package. | r4isu4sls**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"layerName": "MyLayer",
"version": 1,
"description": "the first layer",
"code": {
"repositoryType": "OSS",
"location": "https://xyz.oss-cnxxx.aliyuncs.com/xxx/xxx/xxx"
},
"codesize": 421,
"codeChecksum": "2825179536350****",
"createTime": "2022-01-01T11:08:00Z",
"acl": 0,
"compatibleRuntime": [
"python3"
],
"arn": "xxxxxxxx#Layer-name#1"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-12-16 | The internal configurations of the API operation change but you can still call the operation. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
|