|
パラメーター |
タイプ |
説明 |
例 |
|---|---|---|---|
|
object |
The function configuration information. |
||
| codeChecksum |
string |
The CRC-64 value of the function code package. |
2825179536350**** |
| codeSize |
integer |
The size of the function code package returned by the system. Unit: bytes. |
412 |
| cpu |
number |
The CPU specification of the function. Unit: vCPU. The value must be a multiple of 0.05 vCPU. Minimum value: 0.05. Maximum value: 16. The ratio of cpu to memorySize (in GB) must be between 1:1 and 1:4. |
1 |
| createdTime |
string |
The time when the function was created. |
2023-04-01T08:15:27Z |
| customContainerConfig | CustomContainerConfig |
The custom container runtime configuration. After this parameter is configured, the function can use a custom container image to execute the function. Specify either code or customContainerConfig. |
|
| customDNS | CustomDNS |
The custom DNS configuration. |
|
| customRuntimeConfig | CustomRuntimeConfig |
The custom runtime configuration. |
|
| description |
string |
The description of the function. |
my function |
| diskSize |
integer |
The disk specification of the function. Unit: MB. Valid values: 512 and 10240. |
512 |
| environmentVariables |
object |
The environment variables of the function. You can access the configured environment variables in the runtime environment. |
|
|
string |
环境变量的值。 |
value1 |
|
| functionArn |
string |
The Alibaba Cloud Resource Name (ARN) of the function. |
acs:fc:cn-shanghai:123:functions/functionName |
| functionId |
string |
The globally 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 configuration of the function. |
|
| handler |
string |
The function entry point. The specific format depends on the runtime. |
index.handler |
| instanceConcurrency |
integer |
The maximum concurrency per instance. |
1 |
| instanceLifecycleConfig | InstanceLifecycleConfig |
The instance lifecycle hook method configuration. |
|
| internetAccess |
boolean |
Specifies whether the function can access the Internet. Default value: true. |
true |
| lastModifiedTime |
string |
The time when the function was last updated. |
2023-05-01T08:15:27Z |
| lastUpdateStatus |
string |
The status of the most recent function update operation. When a function is created, this value is Successful. Valid values:
|
InProgress |
| lastUpdateStatusReason |
string |
The reason that caused the most recent function update operation to have the current status. |
The system is currently processing the acceleration optimization for the image. |
| lastUpdateStatusReasonCode |
string |
The status code of the reason that caused the most recent function update operation to have the current status. |
ImageOptimizing |
| layers |
array |
The list of layers. |
|
| FunctionLayer |
层信息。 |
||
| logConfig | LogConfig |
The log configuration. Logs generated by the function are written to the configured Logstore. |
|
| memorySize |
integer |
The memory specification of the function. Unit: MB. The value must be a multiple of 64 MB. Minimum value: 128. Maximum value: 32768 (32 GB). The ratio of cpu to memorySize (in GB) must be between 1:1 and 1:4. |
512 |
| nasConfig | NASConfig |
The NAS configuration. After this parameter is configured, the function can access the specified NAS resources. |
|
| ossMountConfig | OSSMountConfig |
The OSS mount configuration. |
|
| role |
string |
The RAM role that the user grants to Function Compute. After this parameter is configured, Function Compute assumes this role to generate temporary access credentials. You can use the temporary access credentials of this role in the function to access specified Alibaba Cloud services such as OSS and OTS. |
acs:ram::188077086902****:role/fc-test |
| runtime |
string |
The runtime environment of the function. Currently supported runtime environments include: nodejs12, nodejs14, nodejs16, nodejs18, nodejs20, go1, python3, python3.9, python3.10, python3.12, java8, java11, php7.2, dotnetcore3.1, custom, custom.debian10, custom.debian11, custom.debian12, 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 status code of the reason why the function is in the current state. |
Creating |
| timeout |
integer |
The timeout period for the function execution. Unit: seconds. Minimum value: 1. Maximum value: 86400. Default value: 3. The function is terminated if it exceeds this time limit. |
60 |
| tracingConfig | TracingConfig |
The Tracing Analysis configuration. After Function Compute is integrated with Tracing Analysis, you can record the time consumed by requests in Function Compute, view the cold start time of functions, and record the time consumed by internal operations of functions. |
|
| vpcConfig | VPCConfig |
The VPC configuration. After this parameter is configured, the function can access the specified VPC resources. |
|
| tags |
array |
The list of tags. |
|
| Tag |
标签信息。 |
||
| disableOndemand |
boolean |
Specifies whether to disable the creation of on-demand instances. If this feature is enabled, on-demand instances are not created, and only provisioned instances can be used. |
|
| invocationRestriction |
FunctionRestriction |
||
| sessionAffinity |
string |
The affinity policy for Function Compute invocation requests. To implement request affinity for the MCP SSE protocol, set this parameter to MCP_SSE. To use cookie-based affinity, set this parameter to GENERATED_COOKIE. To use header-based affinity, set this parameter to HEADER_FIELD. If this parameter is not set or is set to NONE, no affinity is applied, and requests are routed based on the default scheduling policy of Function Compute. |
MCP_SSE |
| enableLongLiving |
boolean |
When a sessionAffinity type is set, configure the corresponding affinity settings. For MCP_SSE affinity, populate the MCPSSESessionAffinityConfig configuration. For cookie-based affinity, populate the CookieSessionAffinityConfig configuration. For header field affinity, populate the HeaderFieldSessionAffinityConfig configuration. |
|
| resourceGroupId |
string |
The ID of the resource group. |
|
| instanceIsolationMode |
string |
The instance isolation mode. |
|
| sessionAffinityConfig |
string |
When a sessionAffinity type is set, configure the corresponding affinity settings. For MCP_SSE affinity, populate the MCPSSESessionAffinityConfig configuration. For cookie-based affinity, populate the CookieSessionAffinityConfig configuration. For header field affinity, populate the HeaderFieldSessionAffinityConfig configuration. |
{\"sseEndpointPath\":\"/sse\", \"sessionConcurrencyPerInstance\":20} |
| idleTimeout |
integer |
The deferred instance release time. |
100 |
| disableInjectCredentials |
string |
Specifies whether to disable STS token injection. Valid values:
|
Env |
| polarFsConfig | PolarFsConfig |
The PolarFs configuration. After this parameter is configured, the function can access the specified PolarFs resources. |
|
| lockInfo | FunctionLockInfo |
関数ロックに関する情報。 |
{"lockedBy":"AgentRun","lockedAt":"2025-04-05T10:00:00Z","lockedResources":["function","trigger","version","alias"]} |
| juiceFsConfig | JuiceFsConfig |
JuiceFS 構成。 |
|
| microSandboxConfig | MicroSandboxConfig |