parameter | Type | Require or Not | sample value | Description |
Action | String | Yes | CopyFunction | Interface name. The current name of the API is CopyFunction. |
Version | String | Yes | 2021-03-03 | Interface version. The current version of the API is 2021-03-03. |
SourceFunctionId | String | Yes | pqy****** | |
SourceRevisionNumber | Integer | Yes | 1 | The version number of the source function. You can call the ListRevisions API to obtain the function version number (RevisionNumber). |
Name | String | Yes | new-function | The name of the new function.
|
CopyConfig | Boolean | No | true | Whether to copy the function configuration. The available values are as follows:
|
ProjectName | String | No | default | The name of the project to which the new function belongs. |
parameter | Type | sample value | Description |
Id | String | aye****** | The ID of the new function. |
Name | String | new-function | The name of the new function. |
Description | String | Copy function | Function description. |
Runtime | String | python3.8/v1 | Function Runtime. |
ExclusiveMode | Boolean | false | Exclusive mode switch: parameter values:
|
RequestTimeout | Integer | 30 | Request timeout (unit: seconds). |
MaxConcurrency | Integer | 30 | Single instance maximum concurrency. |
MemoryMB | Integer | 1,024 | Maximum memory per instance (unit: MiB). |
CodeSize | Integer | 473 | Code package size (unit: MiB). |
CodeSizeLimit | Integer | 15 | Maximum code package size (unit: MiB), parameter value:
|
Source | String | pqy******/3kwem******.zip | Code source. |
SourceLocation | String | https://vefaas.tos-s3-cn.volces.com/template_dir/666ad2abcvefaas-python3.9-default.zip?X-Amz****** | The source address of the code/image. |
SourceType | String | zip | Type of code source: parameter value:
|
Envs | - | Function environment variables. | |
VpcConfig | - | Virtual Private Cloud (VPC) configuration for the function. | |
CreationTime | String | 2020-05-20T13:00:55Z | The function creation time. |
LastUpdateTime | String | 2020-05-20T13:00:55Z | The time of the last function update. |
TlsConfig | - | Torch Log Service-related configuration in a function. | |
TriggersCount | Integer | 0 | Number of function triggers. |
NasStorage | - | FileNAS mount configuration. | |
TosMountConfig | - | Torch Object Storage (TOS) mount configuration. | |
Command | String | ./run.sh | Custom start command for function instances. |
Port | Integer | 8,000 | Custom listening ports for function instances. |
CpuStrategy | String | always | CPU operation and billing policies for function instances. Parameter value:
|
ProjectName | String | default | Project name for the new function. |
Cell | String | 2 | The Cell to which the function belongs. |
parameter | Type | sample value | Description |
Key | String | business_type | The environment variable key. |
Value | String | free | The values for environment variables. |
parameter | Type | sample value | Description |
EnableVpc | Boolean | false | Whether VPC access is enabled for the function. Parameter value:
|
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****"] | The security group ID for the function after VPC access is enabled. |
EnableSharedInternetAccess | Boolean | false | The switch for the function to access the public network. Access the public network via the VPC shared NAT gateway provided by Volcano Engine Function as a Service Parameter value:
|
parameter | Type | sample value | Description |
EnableLog | Boolean | false | Whether to enable the Logs feature. Parameter value:
|
TlsTopicId | String | 0cd4e4c4-5436-4b05-b39e-**** | TLS Logs theme ID. |
TlsProjectId | String | 48f49d74-cd50-4591-a3d0-**** | TLS Logs project ID. |
parameter | Type | sample value | Description |
EnableNas | Boolean | false | Whether to enable NAS storage mount; parameter value:
|
NasConfigs | - | NAS storage configuration. |
parameter | Type | sample value | Description |
EnableTos | Boolean | false | Whether to enable TOS storage mount. Parameter value:
|
Credentials | - | After turning on TOS storage mount, configure the access keys (AK/SK) required for TOS domain access permissions. | |
MountPoints | - | List of TOS storage configurations after enabling the TOS storage mount |
parameter | Type | sample value | Description |
RemotePath | String | / | File system remote directory. |
FileSystemId | String | enas-cns****** | NAS file system ID. |
MountPointId | String | mount-63****** | NAS mount point ID. |
LocalMountPath | String | /mnt/nas | Function local mount directory. |
parameter | Type | sample value | Description |
AccessKeyId | String | ****** | AccessKey ID (AK) of the Volcano Engine root user. |
SecretAccessKey | String | ****** | Secret Access Key (SK) for the Volcano Engine root user. |
parameter | Type | sample value | Description |
Endpoint | String | http://tos-cn-beijing.ivolces.com | TOS accesses the domain name. |
ReadOnly | Boolean | true | Function's local directory access permission: After mounting a TOS Bucket, is the function's local mount directory read-only? Parameter values:
|
BucketName | String | ai-model | The TOS bucket name |
BucketPath | String | / | The mount TOS Bucket path. |
LocalMountPath | String | /mnt/tos | Function local mount directory. |