All Products
Search
Document Center

Function Compute (2.0):Layer

Last Updated:Mar 03, 2024
ParameterTypeDescriptionExample
object

The return struct of the layer.

layerNamestring

The name of the layer.

MyLayer
versioninteger

The version of the layer.

1
descriptionstring

The description of the layer version.

the first layer
codeLayerCode

The information about the layer code package.

codeSizelong

The size of the layer code package. Unit: Byte.

421
codeChecksumstring

the CRC-64 value of the layer code package. The value is calculated based on the **ECMA-182 **standard.

2825179536350****
createTimestring

The time when the layer version was created.

2022-01-01T11:08:00Z
aclinteger

The permissions of the layer. The digit 0 specifies that the layer is private and the digit 1 specifies that the layer is public. By default, public layers are public. Custom layers can be set to private or public.

0
arnstring

The ARN of the layer resource. This field is about to be discarded.

xxxxxxxx#Layer-name#1
arnV2string

The name of the layer resource. The name follows the following format: acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}.

acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1
licensestring

The license agreement.

MIT
compatibleRuntimearray

The runtime environments that are supported by the layer.

string

The name of the container runtime. Valid values: nodejs16, nodejs14, nodejs12, nodejs10, nodejs8, nodejs6, python3.9, python3, python2.7, java11, java8, php7.2, go1, dotnetcore3.1, dotnetcore2.1, and custom.

python3