Parameter | Type | Sample value | Description |
Items | - | Function revision details list. | |
Total | Integer | 1 | The total amount of the data in the response list. |
Parameter | Type | Sample value | Description |
Id | String | nw****** | Function ID. |
Envs | - | Function Environment variables. | |
Name | String | official-site | Function name. |
Source | String | templates/vefaas-python38-default.zip | Code/image source. |
Runtime | String | python3.8/v1 | Function Runtime. |
CodeSize | Integer | 1,024 | Code package size. |
MemoryMB | Integer | 1,024 | Maximum memory per instance.
The value takes 512 as the gradient.
|
TlsConfig | - | Function TLS Logs configuration. | |
VpcConfig | - | VPC configuration. | |
NasStorage | - | FileNAS configuration. | |
SourceType | String | tos | Code Source type. |
Description | String | This is a description | Function description. |
MaxReplicas | Integer | 10 | Maximum number of instances. |
CreationTime | String | 2020-05-20T13:00:55Z | Function creation time. |
InstanceType | String | nvidia-tesla-l4 | Function instance type.
|
CodeSizeLimit | Integer | 64 | The code package size limit.
|
ExclusiveMode | Boolean | false | Exclusive mode switch.
|
InitializerSec | Integer | 30 | Function initialization timeout configuration. |
MaxConcurrency | Integer | 100 | Single instance maximum concurrency. It takes effect when ExclusiveMode=false, and the value range: 10~1,000. |
RequestTimeout | Integer | 30 | Request timed out.
|
RevisionNumber | Integer | 1 | Function version number. |
SourceLocation | String | tos://tos-cn-beijing.volces.com/test.zip | The source address of the code/image. |
TosMountConfig | - | TOS Torch Object Storage mount configuration. | |
RevisionDescription | String | This is a revision description | Function version description. |
RevisionCreationTime | String | 2020-05-20T13:00:55Z | Version creation time. |
Role | String | trn:iam::1400000044:role/VeFaaSDefaultRole | Function instance binds IAM role |
FunctionType | String | sandbox | Function type. |
AsyncTaskConfig | {"EnableAsyncTask":true,"MaxRetry":3,"DestinationConfig":{"OnFailure":{"Destination":"http://dummyinstanceid.apigateway-cn-beijing-****.volceapi.com/failure"},"OnSuccess":{"Destination":"http://dummyinstanceid.apigateway-cn-beijing-inner.volceapi.com/success"}}} | Asynchronous task configuration. | |
HealthCheckConfig | - | Health check configuration. |
Parameter | Type | Sample value | Description |
EnableVpc | Boolean | false | Whether to enable VPC access for the function. Parameter values:
|
VpcId | String | vpc-2d73mgm**** | ID of the VPC to which the function belongs. |
SubnetIds | Array of String | ["subnet-mj1l******"] | Subnet ID corresponding to the function after VPC access is enabled. |
SecurityGroupIds | Array of String | ["sg-3re8ffwjclybk5zsk****"] | Security group ID corresponding to the function after VPC access is enabled. |
EnableSharedInternetAccess | Boolean | false | The switch for the function to access the public network. Whether to access the public network via veFaaS's VPC shared NAT gateway. Parameter values:
|
Parameter | Type | Sample value | Description |
EnableNas | Boolean | false | Whether to enable NAS storage mount, parameter values:
|
NasConfigs | - | NAS storage configuration. |
Parameter | Type | Sample value | Description |
EnableTos | Boolean | false | Whether to enable TOS storage mount, parameter values:
|
Credentials | - | After enabling TOS storage mount, you need to provide access keys (AK/SK) with TOS domain access permission. | |
MountPoints | - | After enabling TOS storage mount, you need to provide the TOS storage configuration list. A maximum of 5. |
Parameter | Type | Sample value | Description |
MaxRetry | Integer | 3 | Number of retry attempts for asynchronous task failure. Selectable values: 0~3. |
EnableAsyncTask | Boolean | true | Whether to enable asynchronous task. |
DestinationConfig | - | Asynchronous task callback target configuration. |
Parameter | Type | Sample value | Description |
EnableHealthCheck | Boolean | true | Whether to turn on health check:
|
ProbeHandler | - | Type of health check. | |
InitialDelaySeconds | Integer | 5 | Delay before the first health check, in seconds. |
PeriodSeconds | Integer | 10 | The interval between each health check, in seconds. |
TimeoutSeconds | Integer | 2 | Timeout for each health check, in seconds. |
FailureThreshold | Integer | 3 | The number of consecutive failures required before a probe is judged to fail. |
SuccessThreshold | Integer | 3 | The number of consecutive successes required before a probe is judged to be successful. |
Parameter | Type | Sample value | Description |
Gid | Long | 1,000 | User group in the file system. Customization is not supported for now. If this parameter is provided, its value must match the function run user gid, which is: 1000. |
Uid | Long | 1,000 | User in the file system; custom settings are not supported at this time. If this parameter is provided, the parameter value must be consistent with the function run user uid, with a value of: 1000. |
RemotePath | String | / | File system remote directory. Length: 1~128 characters. Must start with "/", supports uppercase and lowercase letters, numbers, and special characters (- . _ ~ / : @ = + ? #). |
FileSystemId | String | enas-cns****** | NAS file system ID. |
MountPointId | String | mount-63****** | NAS mount point ID. |
LocalMountPath | String | /mnt/nas | Function local mount directory. Length: 1~128 characters. Must start with "/", supports uppercase and lowercase letters, numbers, and special characters (- . _ ~ / : @ = + ? #). |
Parameter | Type | Sample value | Description |
AccessKeyId | String | ****** | AccessKey ID (AK) of the Volcano Engine root user. For the obtaining method, please refer to the Access key usage guide . |
SecretAccessKey | String | ****** | Secret Access Key (SK) for the Volcano Engine root user. For the obtaining method, please refer to the Access key usage guide . |
Parameter | Type | Sample value | Description |
Endpoint | String | http://tos-cn-beijing.ivolces.com | TOS accesses the domain name. |
ReadOnly | Boolean | true | Function local directory access permission. After mounting the TOS Bucket, whether the function local mount directory is read-only. Parameter values:
|
BucketName | String | ai-model | TOS bucket name |
BucketPath | String | / | The mount TOS Bucket path. |
LocalMountPath | String | /mnt/tos | Function local mount directory. |
Parameter | Type | Sample value | Description |
HTTPGet | - | Survival detection using the HTTP protocol. | |
TCPSocket | - | Survival detection using TCP protocol. |