Parameter | Type | Description | Example |
---|---|---|---|
object | The function configurations. | ||
codeChecksum | string | The CRC-64 value of the function code package. | 2825179536350**** |
codeSize | long | The size of the function code package returned by the system. Unit: bytes. | 412 |
cpu | float | The CPU size of the function. Unit: vCPUs. The value is a multiple of 0.05. The minimum value is 0.05 and the maximum value is 16. The ratio of cpu to memorySize (GB) must be from 1:1 to 1:4. | 1 |
createdTime | string | The time when the function was created. | 2023-04-01T08:15:27Z |
customContainerConfig | CustomContainerConfig | The configurations of the Custom Container runtime. After you configure the Custom Container runtime, Function Compute can execute the function by using a Custom Container image. Configure either code or customContainerConfig. | |
customDNS | CustomDNS | The custom DNS settings of the function. | |
customRuntimeConfig | CustomRuntimeConfig | The configurations of the custom runtime. | |
description | string | The description of the function. | my function |
diskSize | integer | The disk size of the function. Unit: MB. Valid values: 512 and 10240. | 512 |
environmentVariables | object | The environment variables of the function. You can access the environment variables configured in the runtime. | |
string | The value of the environment variable. | value1 | |
functionArn | string | The identifier of the function resource. | acs:fc:cn-shanghai:123:functions/functionName |
functionId | string | The unique ID generated by the system for the function. | aa715851-1c20-4b89-a8fb-*** |
functionName | string | The name of the function. | my-function-1 |
gpuConfig | GPUConfig | The GPU configurations of the function. | |
handler | string | The handler of the function. The handler format is related to the runtime you use. | index.handler |
instanceConcurrency | integer | The maximum instance concurrency. | 1 |
instanceLifecycleConfig | InstanceLifecycleConfig | The instance lifecycle hook configurations. | |
internetAccess | boolean | Specifies whether to allow functions to access the Internet. Default value: true. | true |
lastModifiedTime | string | The time when the function was last modified. | 2023-05-01T08:15:27Z |
lastUpdateStatus | string | The state of the function in the last update operation. If the function was successfully created, the value is Successful. Valid values: Successful, Failed, and InProgress. | InProgress |
lastUpdateStatusReason | string | The reason that the function is in the current state in the last update operation. | The system is currently processing the acceleration optimization for the image. |
lastUpdateStatusReasonCode | string | The reason code for the function's current state. | ImageOptimizing |
layers | array | The layers. | |
FunctionLayer | The information about layers. | ||
logConfig | LogConfig | The log configurations. Function Compute writes function execution logs to the specified Logstore. | |
memorySize | integer | The memory capacity for the function. Unit: MB. The memory capacity must be a multiple of 64 MB. The minimum value is 128 MB and the maximum value is 32 GB. The ratio of cpu to memorySize (GB) must be from 1:1 to 1:4. | 512 |
nasConfig | NASConfig | The File Storage NAS (NAS) configurations. The configurations allow the function to access the specified NAS file system. | |
ossMountConfig | OSSMountConfig | The Object Storage Service (OSS) mounting configurations. | |
role | string | The RAM role that is assigned to Function Compute. After the RAM role is configured, Function Compute assumes the RAM role to generate temporary access credentials. The temporary access credentials of this role can be used in functions to access specified Alibaba Cloud services, such as OSS and Tablestore. | acs:ram::188077086902****:role/fc-test |
runtime | string | The runtime of the function. Valid values: nodejs8, nodejs10, nodejs12, nodejs14, nodejs16, nodejs18, nodejs20, go1, python3, python3.9, python3.10, java8, java11, php7.2, dotnetcore3.1, custom, custom.debian10, and custom-container. | python3.10 |
state | string | The current state of the function. | Pending |
stateReason | string | The reason why the function is in the current state. | Function creating |
stateReasonCode | string | The reason code for the function's current state | Creating |
timeout | integer | The timeout period of the function. Unit: seconds. The value ranges from 1 to 86400. The default value is 3. When this period elapses, the function execution is terminated. | 60 |
tracingConfig | TracingConfig | The configuration of Managed Service for OpenTelemetry. After Function Compute is integrated with Managed Service for OpenTelemetry, you can record the duration of a request in Function Compute, view the cold start duration of a function, and record the execution duration of a function. | |
vpcConfig | VPCConfig | The VPC configurations. The configurations allow the function to access the specified VPC. |