summaryrefslogtreecommitdiff
path: root/data/en_us/fc/2023-03-30
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/en_us/fc/2023-03-30
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/en_us/fc/2023-03-30')
-rw-r--r--data/en_us/fc/2023-03-30/api-docs.php15424
1 files changed, 5716 insertions, 9708 deletions
diff --git a/data/en_us/fc/2023-03-30/api-docs.php b/data/en_us/fc/2023-03-30/api-docs.php
index 1f20338..ba9b0dd 100644
--- a/data/en_us/fc/2023-03-30/api-docs.php
+++ b/data/en_us/fc/2023-03-30/api-docs.php
@@ -1,648 +1,207 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'FC',
- 'product' => 'FC',
- 'version' => '2023-03-30',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'FC', 'version' => '2023-03-30'],
'directories' => [
[
- 'id' => 223814,
- 'title' => 'Resource Group',
+ 'children' => ['DeleteFunctionVersion', 'GetFunctionCode', 'ListFunctionVersions', 'PublishFunctionVersion', 'InvokeFunction', 'EnableFunctionInvocation', 'DisableFunctionInvocation'],
'type' => 'directory',
- 'children' => [
- 'ChangeResourceGroup',
- ],
+ 'title' => 'Functions',
],
[
- 'id' => 204534,
- 'title' => 'Region',
+ 'children' => ['GetAlias'],
'type' => 'directory',
- 'children' => [
- 'DescribeRegions',
- ],
+ 'title' => 'Aliases',
],
[
- 'id' => 187616,
- 'title' => 'CustomDomain',
+ 'children' => ['GetTrigger', 'ListTriggers', 'UpdateTrigger'],
'type' => 'directory',
- 'children' => [
- 'CreateCustomDomain',
- 'DeleteCustomDomain',
- 'GetCustomDomain',
- 'ListCustomDomains',
- 'UpdateCustomDomain',
- ],
+ 'title' => 'Triggers',
],
[
- 'id' => 187623,
- 'title' => 'Function',
+ 'children' => ['DeleteAsyncInvokeConfig', 'GetAsyncInvokeConfig', 'ListAsyncInvokeConfigs', 'PutAsyncInvokeConfig'],
'type' => 'directory',
- 'children' => [
- 'DeleteFunctionVersion',
- 'GetFunctionCode',
- 'ListFunctionVersions',
- 'PublishFunctionVersion',
- 'CreateFunction',
- 'DeleteFunction',
- 'GetFunction',
- 'ListFunctions',
- 'InvokeFunction',
- 'UpdateFunction',
- 'EnableFunctionInvocation',
- 'DisableFunctionInvocation',
- ],
+ 'title' => 'Function async configurations',
],
[
- 'id' => 187624,
- 'title' => 'Alias',
+ 'children' => ['DeleteProvisionConfig', 'GetProvisionConfig', 'ListProvisionConfigs', 'PutProvisionConfig'],
'type' => 'directory',
- 'children' => [
- 'DeleteAlias',
- 'GetAlias',
- 'ListAliases',
- 'UpdateAlias',
- 'CreateAlias',
- ],
+ 'title' => 'Provisioned function configurations',
],
[
- 'id' => 187621,
- 'title' => 'Trigger',
+ 'children' => ['DeleteConcurrencyConfig', 'GetConcurrencyConfig', 'ListConcurrencyConfigs', 'PutConcurrencyConfig'],
'type' => 'directory',
- 'children' => [
- 'CreateTrigger',
- 'DeleteTrigger',
- 'GetTrigger',
- 'ListTriggers',
- 'UpdateTrigger',
- ],
+ 'title' => 'Function concurrency configurations',
],
[
- 'id' => 187619,
- 'title' => 'FunctionAsyncInvokeConfig',
+ 'children' => ['CreateLayerVersion', 'DeleteLayerVersion', 'GetLayerVersion', 'GetLayerVersionByArn', 'ListLayerVersions', 'PutLayerACL'],
'type' => 'directory',
- 'children' => [
- 'DeleteAsyncInvokeConfig',
- 'GetAsyncInvokeConfig',
- 'ListAsyncInvokeConfigs',
- 'PutAsyncInvokeConfig',
- ],
+ 'title' => 'Layers',
],
[
- 'id' => 187617,
- 'title' => 'FunctionProvisionConfig',
+ 'children' => ['ListVpcBindings', 'CreateVpcBinding', 'DeleteVpcBinding'],
'type' => 'directory',
- 'children' => [
- 'DeleteProvisionConfig',
- 'GetProvisionConfig',
- 'ListProvisionConfigs',
- 'PutProvisionConfig',
- ],
+ 'title' => 'VPC bindingss',
],
[
- 'id' => 187620,
- 'title' => 'FunctionConcurrencyConfig',
+ 'children' => ['StopAsyncTask'],
'type' => 'directory',
- 'children' => [
- 'DeleteConcurrencyConfig',
- 'GetConcurrencyConfig',
- 'ListConcurrencyConfigs',
- 'PutConcurrencyConfig',
- ],
+ 'title' => 'Asynchronous tasks',
],
[
- 'id' => 187615,
- 'title' => 'Layer',
+ 'children' => ['ResumeSession', 'PauseSession', 'UpdateSession'],
'type' => 'directory',
- 'children' => [
- 'CreateLayerVersion',
- 'DeleteLayerVersion',
- 'GetLayerVersion',
- 'GetLayerVersionByArn',
- 'ListLayerVersions',
- 'ListLayers',
- 'PutLayerACL',
- ],
+ 'title' => 'Sessions',
],
[
- 'id' => 187618,
- 'title' => 'Instances',
- 'type' => 'directory',
'children' => [
- 'ListInstances',
+ 'PutScalingConfig', 'DeleteScalingConfig', 'GetScalingConfig', 'ListScalingConfigs', 'ChangeResourceGroup', 'CreateAlias', 'CreateCustomDomain', 'CreateFunction', 'CreateSession', 'CreateTrigger', 'DeleteAlias', 'DeleteCustomDomain', 'DeleteFunction', 'DeleteSession', 'DeleteTrigger', 'DescribeRegions', 'GetAsyncTask', 'GetCustomDomain', 'GetFunction', 'GetSession',
+ 'ListAliases', 'ListAsyncTasks', 'ListCustomDomains', 'ListFunctions', 'ListInstances', 'ListLayers', 'ListSessions', 'ListTagResources', 'TagResources', 'UntagResources', 'UpdateAlias', 'UpdateCustomDomain', 'UpdateFunction',
],
- ],
- [
- 'id' => 187622,
- 'title' => 'VpcBinding',
'type' => 'directory',
- 'children' => [
- 'ListVpcBindings',
- 'CreateVpcBinding',
- 'DeleteVpcBinding',
- ],
- ],
- [
- 'id' => 187909,
- 'title' => 'Tag',
- 'type' => 'directory',
- 'children' => [
- 'TagResources',
- 'ListTagResources',
- 'UntagResources',
- ],
- ],
- [
- 'id' => 191490,
- 'title' => 'asynchronous task',
- 'type' => 'directory',
- 'children' => [
- 'GetAsyncTask',
- 'ListAsyncTasks',
- 'StopAsyncTask',
- ],
- ],
- [
- 'id' => 278411,
- 'title' => 'Session',
- 'type' => 'directory',
- 'children' => [
- 'CreateSession',
- 'GetSession',
- 'UpdateSession',
- 'ListSessions',
- 'DeleteSession',
- ],
- ],
- [
- 'id' => 277607,
'title' => 'Others',
- 'type' => 'directory',
- 'children' => [
- 'PutScalingConfig',
- 'DeleteScalingConfig',
- 'GetScalingConfig',
- 'ListScalingConfigs',
- ],
],
],
'components' => [
'schemas' => [
'AccelerationInfo' => [
- 'title' => '',
+ 'title' => '镜像加速信息(已废弃)',
'description' => 'The information about image acceleration.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'status' => [
- 'title' => '',
- 'description' => 'The status of image acceleration.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Ready',
- 'backendName' => 'status',
- ],
+ 'status' => ['title' => '镜像加速状态(已废弃)', 'description' => 'The status of image acceleration.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Ready', 'backendName' => 'status'],
],
],
'Alias' => [
- 'title' => '',
+ 'title' => '别名信息',
'description' => 'The description of the alias.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'additionalVersionWeight' => [
- 'title' => '',
+ 'title' => '灰度版本',
'description' => 'The weight of the canary release version.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'description' => 'The canary release ratio. The value is a decimal between 0 and 1.'."\n",
- 'visibility' => 'public',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.5',
- ],
+ 'additionalProperties' => ['description' => 'The canary release ratio. The value is a decimal between 0 and 1.'."\n", 'visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'example' => '0.5'],
'backendName' => 'additionalVersionWeight',
],
- 'aliasName' => [
- 'title' => '',
- 'description' => 'The name of the alias.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'prod',
- 'backendName' => 'aliasName',
- ],
- 'createdTime' => [
- 'title' => '',
- 'description' => 'The time when the alias was created.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- 'backendName' => 'createdTime',
- ],
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the alias.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'alias for pre env',
- 'backendName' => 'description',
- ],
- 'lastModifiedTime' => [
- 'title' => '',
- 'description' => 'The time when the alias was modified.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- 'backendName' => 'lastModifiedTime',
- ],
- 'versionId' => [
- 'title' => '',
- 'description' => 'The version to which the alias points.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'versionId',
- ],
+ 'aliasName' => ['title' => '别名名称', 'description' => 'The name of the alias.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'prod', 'backendName' => 'aliasName'],
+ 'createdTime' => ['title' => '创建时间', 'description' => 'The time when the alias was created.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'createdTime'],
+ 'description' => ['title' => '别名描述信息', 'description' => 'The description of the alias.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'alias for pre env', 'backendName' => 'description'],
+ 'lastModifiedTime' => ['title' => '修改时间', 'description' => 'The time when the alias was modified.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'lastModifiedTime'],
+ 'versionId' => ['title' => '别名指向的版本', 'description' => 'The version to which the alias points.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1', 'backendName' => 'versionId'],
],
],
'AsyncConfig' => [
- 'title' => '',
+ 'title' => '异步调用配置',
'description' => 'The information about the asynchronous invocation configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'asyncTask' => [
- 'title' => '',
- 'description' => 'Specifies whether to enable the asynchronous task feature.'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'asyncTask',
- ],
- 'createdTime' => [
- 'title' => '',
- 'description' => 'The time when the asynchronous invocation configuration was created.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- 'backendName' => 'createdTime',
- ],
- 'destinationConfig' => [
- 'title' => '',
- 'description' => 'The destination configuration.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'destinationConfig',
- '$ref' => '#/components/schemas/DestinationConfig',
- ],
- 'functionArn' => [
- 'title' => '',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func',
- 'backendName' => 'functionArn',
- ],
- 'lastModifiedTime' => [
- 'title' => '',
- 'description' => 'The time when the asynchronous invocation was last modified.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- 'backendName' => 'lastModifiedTime',
- ],
- 'maxAsyncEventAgeInSeconds' => [
- 'title' => '',
- 'description' => 'The maximum time to live (TTL) value of an event.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '3600',
- 'backendName' => 'maxAsyncEventAgeInSeconds',
- ],
- 'maxAsyncRetryAttempts' => [
- 'title' => '',
- 'description' => 'The number of times when an asynchronous invocation is retried.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '3',
- 'backendName' => 'maxAsyncRetryAttempts',
- ],
+ 'asyncTask' => ['title' => '是否开启异步任务', 'description' => 'Specifies whether to enable the asynchronous task feature.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'asyncTask'],
+ 'createdTime' => ['title' => '创建时间', 'description' => 'The time when the asynchronous invocation configuration was created.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'createdTime'],
+ 'destinationConfig' => ['title' => '目标配置', 'description' => 'The destination configuration.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'destinationConfig', '$ref' => '#/components/schemas/DestinationConfig'],
+ 'functionArn' => ['title' => '函数资源标识', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func', 'backendName' => 'functionArn'],
+ 'lastModifiedTime' => ['title' => '最后修改时间', 'description' => 'The time when the asynchronous invocation was last modified.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'lastModifiedTime'],
+ 'maxAsyncEventAgeInSeconds' => ['title' => '事件最大存活时间', 'description' => 'The maximum time to live (TTL) value of an event.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3600', 'backendName' => 'maxAsyncEventAgeInSeconds'],
+ 'maxAsyncRetryAttempts' => ['title' => '异步调用重试次数', 'description' => 'The number of times when an asynchronous invocation is retried.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3', 'backendName' => 'maxAsyncRetryAttempts'],
],
],
'AsyncTask' => [
- 'title' => '',
+ 'title' => '异步任务信息',
'description' => 'The information about the asynchronous task.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'alreadyRetriedTimes' => [
- 'title' => '',
- 'description' => 'The number of retries after the asynchronous task fails.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '3',
- 'backendName' => 'alreadyRetriedTimes',
- ],
- 'destinationStatus' => [
- 'title' => '',
- 'description' => 'The final state of the asynchronous task.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Succeeded',
- 'backendName' => 'destinationStatus',
- ],
- 'durationMs' => [
- 'title' => '',
- 'description' => 'The execution duration of the asynchronous task.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1000',
- 'backendName' => 'durationMs',
- ],
- 'endTime' => [
- 'title' => '',
- 'description' => 'The end time of the asynchronous task. Unit: milliseconds.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1633449590000',
- 'backendName' => 'endTime',
- ],
+ 'alreadyRetriedTimes' => ['title' => '异步任务失败后的已重试次数', 'description' => 'The number of retries after the asynchronous task fails.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3', 'backendName' => 'alreadyRetriedTimes'],
+ 'destinationStatus' => ['title' => '异步任务的最终状态', 'description' => 'The final state of the asynchronous task.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Succeeded', 'backendName' => 'destinationStatus'],
+ 'durationMs' => ['title' => '异步任务的执行耗时', 'description' => 'The execution duration of the asynchronous task.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000', 'backendName' => 'durationMs'],
+ 'endTime' => ['title' => '异步任务结束时间,单位为毫秒', 'description' => 'The end time of the asynchronous task. Unit: milliseconds.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1633449590000', 'backendName' => 'endTime'],
'events' => [
- 'title' => '',
+ 'title' => '异步任务事件列表',
'description' => 'The events of the asynchronous task.'."\n",
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The event of the asynchronous task.'."\n",
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/AsyncTaskEvent',
- ],
+ 'items' => ['description' => 'The event of the asynchronous task.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/AsyncTaskEvent'],
'required' => false,
'backendName' => 'events',
],
- 'functionArn' => [
- 'title' => '',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the function.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func',
- 'backendName' => 'functionArn',
- ],
- 'instanceId' => [
- 'title' => '',
- 'description' => 'The ID of the instance that corresponds to the asynchronous task.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'D4-*******9FD1-882707E',
- 'backendName' => 'instanceId',
- ],
- 'qualifier' => [
- 'title' => '',
- 'description' => 'The version or alias of the function.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'prod',
- 'backendName' => 'qualifier',
- ],
- 'requestId' => [
- 'title' => '',
- 'description' => 'The ID of the request corresponding to this asynchronous task.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****',
- 'backendName' => 'requestId',
- ],
- 'returnPayload' => [
- 'title' => '',
- 'description' => 'The content of the response after the asynchronous task is executed. The maximum size is 1 MB. This parameter is in public preview. If you want to use this parameter, [contact us](~~2513733~~).',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'result',
- 'backendName' => 'returnPayload',
- ],
- 'startedTime' => [
- 'title' => '',
- 'description' => 'The start time of the asynchronous task. Unit: milliseconds.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1633449590000',
- 'backendName' => 'startedTime',
- ],
- 'status' => [
- 'title' => '',
- 'description' => 'The state of the asynchronous task.'."\n"
- ."\n"
- .'* Enqueued: The asynchronous invocation is enqueued and waiting to be executed.'."\n"
- .'* Succeeded: The invocation is successful.'."\n"
- .'* Failed: The invocation fails.'."\n"
- .'* Running: The invocation is being executed.'."\n"
- .'* Stopped: The invocation is terminated.'."\n"
- .'* Stopping: The invocation is being terminated.'."\n"
- .'* Invalid: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.'."\n"
- .'* Expired: The maximum validity period of messages is specified for asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of messages expires.'."\n"
- .'* Retrying: The asynchronous invocation is being retried due to an execution error.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Running',
- 'backendName' => 'status',
- ],
- 'taskErrorMessage' => [
- 'title' => '',
- 'description' => 'The error message for an asynchronous task failure.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'UnhandledInvocationError',
- 'backendName' => 'taskErrorMessage',
- ],
- 'taskId' => [
- 'title' => '',
- 'description' => 'The ID of the asynchronous task.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****',
- 'backendName' => 'taskId',
- ],
- 'taskPayload' => [
- 'title' => '',
- 'description' => 'The content of the input parameter during asynchronous task execution.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'body',
- 'backendName' => 'taskPayload',
- ],
+ 'functionArn' => ['title' => '函数资源标识', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func', 'backendName' => 'functionArn'],
+ 'instanceId' => ['title' => '异步任务对应的实例 ID', 'description' => 'The ID of the instance that corresponds to the asynchronous task.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'D4-*******9FD1-882707E', 'backendName' => 'instanceId'],
+ 'qualifier' => ['title' => '函数的版本或别名。', 'description' => 'The version or alias of the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'prod', 'backendName' => 'qualifier'],
+ 'requestId' => ['title' => '本次异步任务对应的请求 ID', 'description' => 'The ID of the request corresponding to this asynchronous task.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****', 'backendName' => 'requestId'],
+ 'returnPayload' => ['title' => '异步任务执行完成后的响应内容', 'description' => 'The content of the response after the asynchronous task is executed. The maximum size is 1 MB. This parameter is in public preview. If you want to use this parameter, [contact us](~~2513733~~).', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'result', 'backendName' => 'returnPayload'],
+ 'startedTime' => ['title' => '异步任务开始时间,单位为毫秒', 'description' => 'The start time of the asynchronous task. Unit: milliseconds.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1633449590000', 'backendName' => 'startedTime'],
+ 'status' => ['title' => '异步任务的执行状态', 'description' => 'The state of the asynchronous task.'."\n"
+ ."\n"
+ .'* Enqueued: The asynchronous invocation is enqueued and waiting to be executed.'."\n"
+ .'* Succeeded: The invocation is successful.'."\n"
+ .'* Failed: The invocation fails.'."\n"
+ .'* Running: The invocation is being executed.'."\n"
+ .'* Stopped: The invocation is terminated.'."\n"
+ .'* Stopping: The invocation is being terminated.'."\n"
+ .'* Invalid: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.'."\n"
+ .'* Expired: The maximum validity period of messages is specified for asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of messages expires.'."\n"
+ .'* Retrying: The asynchronous invocation is being retried due to an execution error.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Running', 'backendName' => 'status'],
+ 'taskErrorMessage' => ['title' => '异步任务失败的错误消息', 'description' => 'The error message for an asynchronous task failure.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'UnhandledInvocationError', 'backendName' => 'taskErrorMessage'],
+ 'taskId' => ['title' => '异步任务 ID', 'description' => 'The ID of the asynchronous task.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****', 'backendName' => 'taskId'],
+ 'taskPayload' => ['title' => '异步任务执行时的入参内容', 'description' => 'The content of the input parameter during asynchronous task execution.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'body', 'backendName' => 'taskPayload'],
],
],
'AsyncTaskEvent' => [
- 'title' => '',
+ 'title' => '任务事件内容',
'description' => 'The details of the task event.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'eventDetail' => [
- 'title' => '',
- 'description' => 'The details of the event payload.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'body',
- 'backendName' => 'eventDetail',
- ],
- 'eventId' => [
- 'title' => '',
- 'description' => 'The event ID.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'eventId',
- ],
- 'status' => [
- 'title' => '',
- 'description' => 'The state of the event.'."\n"
- ."\n"
- .'* Enqueued: The asynchronous invocation is enqueued and is waiting to be executed.'."\n"
- .'* Succeeded: The invocation is successful.'."\n"
- .'* Failed: The invocation fails.'."\n"
- .'* Running: The invocation is being executed.'."\n"
- .'* Stopped: The invocation is terminated.'."\n"
- .'* Stopping: The invocation is being terminated.'."\n"
- .'* Invalid: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.'."\n"
- .'* Expired: The maximum validity period of messages is specified for asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of has elapsed.'."\n"
- .'* Retrying: The asynchronous invocation is being retried due to an execution error.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Succeeded',
- 'backendName' => 'status',
- ],
- 'timestamp' => [
- 'title' => '',
- 'description' => 'The timestamp when the event occurred. Unit: milliseconds.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1647420449721',
- 'backendName' => 'timestamp',
- ],
+ 'eventDetail' => ['title' => '事件负载内容', 'description' => 'The details of the event payload.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'body', 'backendName' => 'eventDetail'],
+ 'eventId' => ['title' => '事件 ID', 'description' => 'The event ID.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'backendName' => 'eventId'],
+ 'status' => ['title' => '任务状态', 'description' => 'The state of the event.'."\n"
+ ."\n"
+ .'* Enqueued: The asynchronous invocation is enqueued and is waiting to be executed.'."\n"
+ .'* Succeeded: The invocation is successful.'."\n"
+ .'* Failed: The invocation fails.'."\n"
+ .'* Running: The invocation is being executed.'."\n"
+ .'* Stopped: The invocation is terminated.'."\n"
+ .'* Stopping: The invocation is being terminated.'."\n"
+ .'* Invalid: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.'."\n"
+ .'* Expired: The maximum validity period of messages is specified for asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of has elapsed.'."\n"
+ .'* Retrying: The asynchronous invocation is being retried due to an execution error.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Succeeded', 'backendName' => 'status'],
+ 'timestamp' => ['title' => '事件发生时间,单位毫秒', 'description' => 'The timestamp when the event occurred. Unit: milliseconds.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1647420449721', 'backendName' => 'timestamp'],
],
],
'AuthConfig' => [
- 'title' => '',
+ 'title' => '权限认证配置',
'description' => 'The information about the configurations of permission authentication.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'authInfo' => [
- 'title' => '',
- 'description' => 'The authentication information.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- 'backendName' => 'authInfo',
- ],
- 'authType' => [
- 'title' => '',
- 'description' => 'The authentication type. Valid values: anonymous, function, and jwt.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'anonymous',
- 'backendName' => 'authType',
- ],
+ 'authInfo' => ['title' => '认证信息', 'description' => 'The authentication information.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '{}', 'backendName' => 'authInfo'],
+ 'authType' => ['title' => '认证类型', 'description' => 'The authentication type. Valid values: anonymous, function, and jwt.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'anonymous', 'backendName' => 'authType'],
],
],
'BatchWindow' => [
- 'title' => '',
+ 'title' => 'EventBridge 触发器的批处理窗口配置',
'description' => 'The batch window configurations for the EventBridge trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'CountBasedWindow' => [
- 'title' => '',
- 'description' => 'The maximum number of events that are allowed in the batch window. When this threshold is reached, data in the window is pushed downstream. If multiple batch windows exist, data is pushed if triggering conditions are met in one of the windows.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- 'backendName' => 'CountBasedWindow',
- ],
- 'TimeBasedWindow' => [
- 'title' => '',
- 'description' => 'The maximum period of time during which events are allowed in the batch window. Unit: seconds. When this threshold is reached, data in the window is pushed downstream. If multiple batch windows exist, data is pushed if triggering conditions are met in one of the windows.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- 'backendName' => 'TimeBasedWindow',
- ],
+ 'CountBasedWindow' => ['title' => '窗口中最大可容纳的事件数量。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。', 'description' => 'The maximum number of events that are allowed in the batch window. When this threshold is reached, data in the window is pushed downstream. If multiple batch windows exist, data is pushed if triggering conditions are met in one of the windows.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'backendName' => 'CountBasedWindow'],
+ 'TimeBasedWindow' => ['title' => '窗口中最大可容纳的时间范围内的事件(单位秒)。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。', 'description' => 'The maximum period of time during which events are allowed in the batch window. Unit: seconds. When this threshold is reached, data in the window is pushed downstream. If multiple batch windows exist, data is pushed if triggering conditions are met in one of the windows.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'backendName' => 'TimeBasedWindow'],
],
],
'CDNTriggerConfig' => [
- 'title' => '',
+ 'title' => 'CDN 触发器配置',
'description' => 'The configurations of the Alibaba Cloud CDN trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'eventName' => [
- 'title' => '',
- 'description' => 'The name of the trigger event. For more information, see [CDN events](~~2513636~~).'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CdnDomainStarted',
- 'backendName' => 'eventName',
- ],
- 'eventVersion' => [
- 'title' => '',
- 'description' => 'The version of the trigger event. Only the 1.0.0 event version is supported.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- 'backendName' => 'eventVersion',
- ],
+ 'eventName' => ['title' => '触发事件名称,详情请参考文档:https://help.aliyun.com/zh/fc/overview-27?spm=a2c4g.11186623.0.i4#section-8fg-smg-ysp', 'description' => 'The name of the trigger event. For more information, see [CDN events](~~2513636~~).'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'CdnDomainStarted', 'backendName' => 'eventName'],
+ 'eventVersion' => ['title' => '触发事件版本,目前仅支持 1.0.0 事件版本', 'description' => 'The version of the trigger event. Only the 1.0.0 event version is supported.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1.0.0', 'backendName' => 'eventVersion'],
'filter' => [
- 'title' => '',
+ 'title' => '事件过滤规则描述',
'description' => 'The details of the event filtering rules.'."\n",
'visibility' => 'Public',
'type' => 'object',
@@ -651,847 +210,397 @@
'description' => 'The collection of event filtering rules.'."\n",
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The key string for event filtering.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'filter-key',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The key string for event filtering.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'filter-key', 'extendType' => 'true'],
],
'backendName' => 'filter',
],
- 'notes' => [
- 'title' => '',
- 'description' => 'The description of the trigger.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '',
- 'backendName' => 'notes',
- ],
+ 'notes' => ['title' => '触发器描述', 'description' => 'The description of the trigger.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '缓存事件触发器', 'backendName' => 'notes'],
],
],
'CertConfig' => [
- 'title' => '',
+ 'title' => '证书配置',
'description' => 'The information about certificate configurations.'."\n",
- 'visibility' => 'public',
'type' => 'object',
'properties' => [
- 'certName' => [
- 'title' => '',
- 'description' => 'The name of the certificate.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-cert',
- 'maxLength' => 128,
- 'minLength' => 1,
- 'backendName' => 'certName',
- ],
- 'certificate' => [
- 'title' => '',
- 'description' => 'The certificate in the .pem format.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'PEM format',
- 'maxLength' => 20480,
- 'backendName' => 'certificate',
- ],
- 'privateKey' => [
- 'title' => '',
- 'description' => 'The private key in the .pem format.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'PEM format',
- 'maxLength' => 4096,
- 'backendName' => 'privateKey',
- ],
+ 'certName' => ['title' => '证书名称', 'description' => 'The name of the certificate.'."\n", 'type' => 'string', 'required' => true, 'example' => 'my-cert', 'maxLength' => 128, 'minLength' => 1],
+ 'certificate' => ['title' => 'PEM格式证书', 'description' => 'The certificate in the .pem format.'."\n", 'type' => 'string', 'required' => true, 'example' => 'PEM format', 'maxLength' => 20480],
+ 'privateKey' => ['title' => 'PEM格式私钥', 'description' => 'The private key in the .pem format.'."\n", 'type' => 'string', 'required' => true, 'example' => 'PEM format', 'maxLength' => 4096],
+ ],
+ 'example' => '',
+ ],
+ 'ChangeResourceGroupInput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceId' => ['type' => 'string'],
+ 'NewResourceGroupId' => ['type' => 'string'],
+ 'ResourceType' => ['type' => 'string'],
+ ],
+ ],
+ 'ChangeResourceGroupOutput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceId' => ['type' => 'string'],
+ 'NewResourceGroupId' => ['type' => 'string'],
+ 'OldResourceGroupId' => ['type' => 'string'],
],
],
'ConcurrencyConfig' => [
- 'title' => '',
+ 'title' => '函数并发配置',
'description' => 'The information about function concurrency configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'functionArn' => [
- 'title' => '',
- 'description' => 'The Alibaba Cloud Resource Name (ARN).'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:123:functions/demo',
- 'backendName' => 'functionArn',
- ],
- 'reservedConcurrency' => [
- 'title' => '',
- 'description' => 'The reserved concurrency of the function. Other functions cannot use the concurrency. The reserved concurrency includes the total concurrency of provisioned instances and on-demand instances.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '10',
- 'backendName' => 'reservedConcurrency',
- ],
+ 'functionArn' => ['title' => '阿里云资源的标识', 'description' => 'The Alibaba Cloud Resource Name (ARN).'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:123:functions/demo', 'backendName' => 'functionArn'],
+ 'reservedConcurrency' => ['title' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。', 'description' => 'The reserved concurrency of the function. Other functions cannot use the concurrency. The reserved concurrency includes the total concurrency of provisioned instances and on-demand instances.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10', 'backendName' => 'reservedConcurrency'],
],
],
'CookieSessionAffinityConfig' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
+ 'title' => '将携带相同 Cookie 信息的请求路由到同一个实例。'."\n",
'type' => 'object',
'properties' => [
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => '',
+ 'sessionIdleTimeoutInSeconds' => ['title' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。', 'description' => 'The duration in seconds that a session can remain idle. If a user is inactive for this period, the session is considered idle. The maximum duration is limited by the session\'s lifecycle. The value must be between 0 and 21,600.', 'type' => 'integer', 'format' => 'int64', 'example' => '1800'],
+ 'sessionTTLInSeconds' => ['title' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。', 'description' => 'The total lifecycle of a session in seconds, from creation to destruction. After this period, Function Compute automatically destroys the session and no longer guarantees affinity. The value must be an integer from 1 to 21,600.', 'type' => 'integer', 'format' => 'int64', 'example' => '21600'],
+ 'sessionConcurrencyPerInstance' => ['title' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。', 'description' => 'The maximum number of sessions that a single instance can process at the same time. The value must be an integer from 1 to 200.', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
+ 'disableSessionIdReuse' => ['title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'description' => 'The default value is \\`false\\`. When set to \\`false\\`, a request with the same session ID can be sent after the session expires. The system treats this as a new session and attaches it to a new instance. When set to \\`true\\`, the session ID cannot be reused after the session expires.', 'type' => 'boolean', 'example' => 'false'],
+ ],
+ 'description' => 'Routes requests that have the same cookie information to the same instance.',
+ 'example' => '',
+ ],
+ 'CORSConfig' => [
+ 'title' => 'CORS 配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'allowOrigins' => [
+ 'title' => '允许的来源列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'example' => '["https://example.com", "https://app.example.com"]',
'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- 'backendName' => 'sessionIdleTimeoutInSeconds',
],
- 'sessionTTLInSeconds' => [
- 'title' => '',
+ 'allowMethods' => [
+ 'title' => '允许的 HTTP 方法列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'example' => '["GET", "POST", "OPTIONS"]',
'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- 'backendName' => 'sessionTTLInSeconds',
],
- 'sessionConcurrencyPerInstance' => [
- 'title' => '',
+ 'allowHeaders' => [
+ 'title' => '允许的请求头列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'example' => '["Content-Type", "Authorization"]',
+ 'description' => '',
+ ],
+ 'exposeHeaders' => [
+ 'title' => '暴露的响应头列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'example' => '["X-Custom-Header"]',
'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '20',
- 'backendName' => 'sessionConcurrencyPerInstance',
],
+ 'allowCredentials' => ['title' => '是否允许发送凭据', 'type' => 'boolean', 'description' => '', 'example' => 'true', 'required' => false],
+ 'maxAge' => ['title' => '预检请求缓存时间(秒)', 'type' => 'integer', 'description' => '', 'example' => '3600', 'format' => 'int32', 'required' => false],
],
+ 'description' => '',
+ 'example' => '',
],
'CreateAliasInput' => [
- 'title' => '',
- 'description' => 'The request parameter for creating an alias.'."\n",
- 'visibility' => 'public',
+ 'title' => '创建别名的请求参数',
+ 'description' => 'The request parameters to create an alias.',
'type' => 'object',
'properties' => [
'additionalVersionWeight' => [
- 'title' => '',
- 'description' => 'The weight of the canary release version.'."\n",
- 'visibility' => 'public',
+ 'title' => '灰度版本',
+ 'description' => 'The weight of the canary release version.',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'visibility' => 'public',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.5',
- 'description' => '',
- ],
+ 'additionalProperties' => ['type' => 'number', 'format' => 'float', 'example' => '0.5', 'description' => '', 'title' => '', 'visibility' => 'Public'],
+ 'example' => '',
+ 'visibility' => 'Public',
'backendName' => 'additionalVersionWeight',
],
- 'aliasName' => [
- 'title' => '',
- 'description' => 'The alias.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'prod',
- 'maxLength' => 128,
- 'minLength' => 1,
- 'backendName' => 'aliasName',
- ],
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the alias.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my alias',
- 'maxLength' => 256,
- 'backendName' => 'description',
- ],
- 'versionId' => [
- 'title' => '',
- 'description' => 'The version to which the alias points.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1',
- 'maxLength' => 10,
- 'minLength' => 1,
- 'backendName' => 'versionId',
- ],
+ 'aliasName' => ['title' => '别名名称', 'description' => 'The name of the alias.', 'type' => 'string', 'required' => true, 'example' => 'prod', 'maxLength' => 128, 'minLength' => 1, 'visibility' => 'Public', 'backendName' => 'aliasName'],
+ 'description' => ['title' => '别名描述信息', 'description' => 'The description of the alias.', 'type' => 'string', 'required' => false, 'example' => 'my alias', 'maxLength' => 256, 'visibility' => 'Public', 'backendName' => 'description'],
+ 'versionId' => ['title' => '别名指向的版本', 'description' => 'The version to which the alias points.', 'type' => 'string', 'required' => true, 'example' => '1', 'maxLength' => 10, 'minLength' => 1, 'visibility' => 'Public', 'backendName' => 'versionId'],
],
+ 'example' => '',
+ 'visibility' => 'Public',
],
'CreateCustomDomainInput' => [
'title' => '',
- 'description' => 'The information about the request for creating a custom domain name.'."\n",
- 'visibility' => 'public',
+ 'description' => 'Request information for creating a custom domain.',
'type' => 'object',
'properties' => [
- 'authConfig' => [
- 'title' => '',
- 'description' => 'The configuration of permission authentication.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'authConfig',
- '$ref' => '#/components/schemas/AuthConfig',
- ],
- 'certConfig' => [
- 'title' => '',
- 'description' => 'The configuration of the HTTPS certificate.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'certConfig',
- '$ref' => '#/components/schemas/CertConfig',
- ],
- 'domainName' => [
- 'title' => '',
- 'description' => 'The domain name. Enter a custom domain name that has obtained an Internet content provider (ICP) filing in the Alibaba Cloud ICP Filing system, or a custom domain name whose ICP filing information includes Alibaba Cloud as a service provider.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'example.com',
- 'maxLength' => 256,
- 'minLength' => 1,
- 'backendName' => 'domainName',
- ],
- 'protocol' => [
- 'title' => '',
- 'description' => 'The protocol type that is supported by the custom domain name. Valid values: HTTP HTTPS HTTP,HTTPS'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'HTTP',
- 'backendName' => 'protocol',
- ],
- 'routeConfig' => [
- 'title' => '',
- 'description' => 'The route table that maps paths to functions when the function is invoked by using the custom domain name.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'routeConfig',
- '$ref' => '#/components/schemas/RouteConfig',
- ],
- 'tlsConfig' => [
- 'title' => '',
- 'description' => 'The Transport Layer Security (TLS) configuration.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'tlsConfig',
- '$ref' => '#/components/schemas/TLSConfig',
- ],
- 'wafConfig' => [
- 'title' => '',
- 'description' => 'The Web Application Firewall (WAF) configuration.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'wafConfig',
- '$ref' => '#/components/schemas/WAFConfig',
- ],
- ],
+ 'authConfig' => ['description' => 'Permission authentication configuration.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/AuthConfig', 'example' => ''],
+ 'certConfig' => ['description' => 'HTTPS certificate information.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/CertConfig', 'example' => ''],
+ 'corsConfig' => ['title' => '', 'description' => '', 'example' => '', 'required' => false, '$ref' => '#/components/schemas/CORSConfig'],
+ 'domainName' => ['description' => 'Domain name. Enter a custom domain name that has an ICP filing with Alibaba Cloud or has added Alibaba Cloud to the ICP filing information as a service provider.', 'type' => 'string', 'title' => '', 'required' => true, 'example' => 'example.com', 'maxLength' => 256, 'minLength' => 1],
+ 'protocol' => ['description' => 'Protocol type supported by the domain. HTTP: supports HTTP only. HTTPS: supports HTTPS only. HTTP,HTTPS: supports both HTTP and HTTPS.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'HTTP'],
+ 'routeConfig' => ['description' => 'Route table: maps PATHs to functions when accessing the custom domain.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/RouteConfig', 'example' => ''],
+ 'tlsConfig' => ['description' => 'TLS configuration information.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/TLSConfig', 'example' => ''],
+ 'wafConfig' => ['description' => 'Web Application Firewall configuration information.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/WAFConfig', 'example' => ''],
+ 'isE2B' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
],
'CreateFunctionInput' => [
'title' => '',
- 'description' => 'The request parameters for creating the function.'."\n",
- 'visibility' => 'public',
+ 'description' => 'The function creation request parameters.',
'type' => 'object',
'properties' => [
- 'handler' => [
- 'title' => '',
- 'description' => 'The handler of the function. The format of the handler is related to the runtime you use.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'index.handler',
- 'maxLength' => 128,
- 'minLength' => 1,
- 'backendName' => 'handler',
- ],
- 'code' => [
- 'title' => '',
- 'description' => 'The code package of the function. Configure either code or customContainerConfig.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'code',
- '$ref' => '#/components/schemas/InputCodeLocation',
- ],
- 'role' => [
- 'title' => '',
- 'description' => 'The Resource Access Management (RAM) role that is assigned to the function. Function Compute assumes the role to obtain a Security Token Service (STS) token, which serves as a temporary key for your function to access other Alibaba Cloud services, such as Object Storage Service (OSS) and Tablestore.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::188077086902****:role/fc-test',
- 'maxLength' => 300,
- 'backendName' => 'role',
- ],
- 'disableOndemand' => [
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'backendName' => 'disableOndemand',
- ],
- 'tracingConfig' => [
- 'title' => '',
- 'description' => 'The configurations of Managed Service for OpenTelemetry. After Function Compute is integrated with Managed Service for OpenTelemetry, you can record the invocation duration of a request, view the cold start duration of a function, and track the execution duration of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'tracingConfig',
- '$ref' => '#/components/schemas/TracingConfig',
- ],
- 'nasConfig' => [
- 'title' => '',
- 'description' => 'The File Storage NAS (NAS) configurations. The configurations allow the function to access the specified NAS file system.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'nasConfig',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my function',
- 'maxLength' => 256,
- 'backendName' => 'description',
- ],
- 'timeout' => [
- 'title' => '',
- 'description' => 'The timeout period for function execution. Unit: seconds. Default value: 3. Valid values: 1 to 86400. The execution of the function is terminated when the timeout period expires.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '60',
- 'backendName' => 'timeout',
- ],
- 'diskSize' => [
+ 'code' => ['title' => '', 'description' => 'The ZIP package of the function code. Specify either code or customContainerConfig.', 'required' => false, '$ref' => '#/components/schemas/InputCodeLocation', 'example' => ''],
+ 'cpu' => ['title' => '', 'description' => 'The CPU specification of the function, in vCPUs. 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.', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1'],
+ 'customContainerConfig' => ['title' => '', 'description' => 'The configuration for the custom container runtime. After this parameter is configured, the function can use a custom container image for execution. Specify either code or customContainerConfig.', 'required' => false, '$ref' => '#/components/schemas/CustomContainerConfig', 'example' => ''],
+ 'customDNS' => ['title' => '', 'description' => 'The custom DNS configuration.', 'required' => false, '$ref' => '#/components/schemas/CustomDNS', 'example' => ''],
+ 'customRuntimeConfig' => ['title' => '', 'description' => 'The custom runtime configuration.', 'required' => false, '$ref' => '#/components/schemas/CustomRuntimeConfig', 'example' => ''],
+ 'description' => ['title' => '', 'description' => 'The description of the function.', 'type' => 'string', 'required' => false, 'example' => 'my function', 'maxLength' => 256],
+ 'diskSize' => ['title' => '', 'description' => 'The disk specification of the function, in MB. Valid values: 512 and 10240.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
+ 'environmentVariables' => [
'title' => '',
- 'description' => 'The disk size of the function. Unit: MB. Valid values: 512 and 10240.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- 'backendName' => 'diskSize',
- ],
- 'internetAccess' => [
- 'title' => 'service config',
- 'description' => 'Specifies whether to allow the function to access the Internet. Default value: true.'."\n",
- 'visibility' => 'public',
- 'type' => 'boolean',
+ 'description' => 'The environment variables of the function. You can access the configured environment variables in the runtime environment.',
+ 'type' => 'object',
'required' => false,
- 'example' => 'true',
- 'backendName' => 'internetAccess',
+ 'additionalProperties' => ['description' => '环境变量的值。', 'type' => 'string', 'example' => 'value1', 'title' => ''],
+ 'example' => '',
],
+ 'functionName' => ['title' => '', 'description' => 'The name of the function. The name can contain only letters, digits, underscores (_), and hyphens (-). The name cannot start with a digit or hyphen (-). The name must be 1 to 64 characters in length.', 'type' => 'string', 'required' => true, 'example' => 'my-function-1', 'maxLength' => 128, 'minLength' => 1],
+ 'gpuConfig' => ['title' => '', 'description' => 'The GPU configuration of the function.', 'required' => false, '$ref' => '#/components/schemas/GPUConfig', 'example' => ''],
+ 'handler' => ['title' => '', 'description' => 'The function entry point. The specific format depends on the runtime.', 'type' => 'string', 'required' => true, 'example' => 'index.handler', 'maxLength' => 128, 'minLength' => 1],
+ 'instanceConcurrency' => ['title' => '', 'description' => 'The maximum concurrency of an instance.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'instanceLifecycleConfig' => ['title' => '', 'description' => 'The instance lifecycle hook configuration.', 'required' => false, '$ref' => '#/components/schemas/InstanceLifecycleConfig', 'example' => ''],
+ 'internetAccess' => ['title' => '', 'description' => 'Specifies whether the function can access the Internet. Default value: true.', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'layers' => [
'title' => '',
- 'description' => 'The layers. Multiple layers are merged based on the order of array subscripts. If two layers have the same file name, the content of the layer with the smaller subscript will overwrite the content of the layer with the larger subscript.'."\n",
- 'visibility' => 'public',
+ 'description' => 'The list of layers. Multiple layers are merged in descending order of array index. Files in a layer with a smaller index overwrite files with the same name in a layer with a larger index.',
'type' => 'array',
- 'items' => [
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the layer.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => '层ARN。', 'type' => 'string', 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1', 'title' => ''],
'required' => false,
- 'backendName' => 'layers',
- ],
- 'ossMountConfig' => [
- 'title' => '',
- 'description' => 'The OSS mounting configurations.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'ossMountConfig',
- '$ref' => '#/components/schemas/OSSMountConfig',
- ],
- 'customRuntimeConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the custom runtime.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'customRuntimeConfig',
- '$ref' => '#/components/schemas/CustomRuntimeConfig',
- ],
- 'logConfig' => [
- 'title' => '',
- 'description' => 'The logging configurations. Logs generated by the function are written to the specified Logstore.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'logConfig',
- '$ref' => '#/components/schemas/LogConfig',
- ],
- 'functionName' => [
- 'title' => '',
- 'description' => 'The name of the function. The name must be 1 to 64 characters in length, and can contain only letters, digits, underscores (\\_), and hyphens (-). It cannot begin with a digit or a hyphen (-).'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-function-1',
- 'maxLength' => 128,
- 'minLength' => 1,
- 'backendName' => 'functionName',
- ],
- 'instanceLifecycleConfig' => [
- 'title' => '',
- 'description' => 'The configurations of instance lifecycle hooks.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'instanceLifecycleConfig',
- '$ref' => '#/components/schemas/InstanceLifecycleConfig',
- ],
- 'gpuConfig' => [
- 'title' => '',
- 'description' => 'The GPU configurations of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'gpuConfig',
- '$ref' => '#/components/schemas/GPUConfig',
- ],
- 'cpu' => [
- 'title' => '',
- 'description' => 'The CPU power allocated to the function. Unit: vCPUs. The value must be a multiple of 0.05. The minimum value is 0.05 and the maximum value is 16. The ratio of cpu to memorySize (in GB) must be from 1:1 to 1:4.'."\n",
- 'visibility' => 'public',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'cpu',
- ],
- 'runtime' => [
- 'title' => '',
- 'description' => '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.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'python3.10',
- 'backendName' => 'runtime',
- ],
- 'customContainerConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the Custom Container runtime. After you configure a Custom Container runtime for your function, Function Compute can execute the function in a custom container image. Configure either code or customContainerConfig.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'customContainerConfig',
- '$ref' => '#/components/schemas/CustomContainerConfig',
- ],
- 'instanceConcurrency' => [
- 'title' => '',
- 'description' => 'The maximum number of requests that a function instance can process at a time.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'instanceConcurrency',
+ 'example' => '',
],
+ 'logConfig' => ['title' => '', 'description' => 'The log configuration. Logs generated by the function are written to the configured Logstore.', 'required' => false, '$ref' => '#/components/schemas/LogConfig', 'example' => ''],
+ 'memorySize' => ['title' => '', 'description' => 'The memory specification of the function, in 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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
+ 'nasConfig' => ['title' => '', 'description' => 'The NAS configuration. After this parameter is configured, the function can access the specified NAS resources.', 'required' => false, '$ref' => '#/components/schemas/NASConfig', 'example' => ''],
+ 'ossMountConfig' => ['title' => '', 'description' => 'The OSS mount configuration.', 'required' => false, '$ref' => '#/components/schemas/OSSMountConfig', 'example' => ''],
+ 'role' => ['title' => '', 'description' => 'The RAM role that the user grants to Function Compute. After this parameter is set, 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.', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::188077086902****:role/fc-test', 'maxLength' => 300],
+ 'runtime' => ['title' => '', 'description' => 'The runtime environment of the function. Supported runtimes: 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.', 'type' => 'string', 'required' => true, 'example' => 'python3.10'],
+ 'timeout' => ['title' => '', 'description' => 'The timeout period for function execution, in seconds. Minimum value: 1. Maximum value: 86400. Default value: 3. The function is terminated if it exceeds this time limit.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
+ 'tracingConfig' => ['title' => '', 'description' => '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 within functions.', 'required' => false, '$ref' => '#/components/schemas/TracingConfig', 'example' => ''],
+ 'vpcConfig' => ['title' => '', 'description' => 'The VPC configuration. After this parameter is configured, the function can access the specified VPC resources.', 'required' => false, '$ref' => '#/components/schemas/VPCConfig', 'example' => ''],
'tags' => [
- 'description' => 'The tags.'."\n",
- 'visibility' => 'Public',
+ 'description' => 'The list of tags.',
'type' => 'array',
- 'items' => [
- 'description' => 'The tag information.'."\n",
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Tag',
- ],
- 'backendName' => 'tags',
- ],
- 'memorySize' => [
+ 'items' => ['description' => '标签信息。', '$ref' => '#/components/schemas/Tag', 'title' => '', 'example' => ''],
'title' => '',
- 'description' => 'The memory capacity for the function. Unit: MB. The value must be a multiple of 64. The minimum capacity is 128 MB and the maximum capacity is 32 GB. The ratio of cpu to memorySize (in GB) must be from 1:1 to 1:4.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- 'backendName' => 'memorySize',
- ],
- 'customDNS' => [
- 'title' => '',
- 'description' => 'The custom DNS settings of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'customDNS',
- '$ref' => '#/components/schemas/CustomDNS',
+ 'example' => '',
],
- 'environmentVariables' => [
+ 'disableOndemand' => ['title' => '', 'description' => '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.', 'type' => 'boolean', 'example' => '', 'deprecated' => true],
+ 'sessionAffinity' => ['title' => '', 'description' => '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.', 'type' => 'string', 'example' => 'MCP_SSE'],
+ 'enableLongLiving' => ['title' => '', 'description' => 'Specifies whether to allow provisioned instances of GPU functions to be long-running. When this feature is enabled, function instances are not injected with STS tokens.', 'type' => 'boolean', 'example' => '', 'deprecated' => true],
+ 'resourceGroupId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'instanceIsolationMode' => [
'title' => '',
- 'description' => 'The environment variables of the function. You can access the specified environment variables in the runtime.'."\n",
- 'visibility' => 'public',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'description' => 'The value of the environment variable.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'value1',
- ],
- 'backendName' => 'environmentVariables',
+ 'description' => 'The instance isolation mode.',
+ 'type' => 'string',
+ 'example' => '',
+ 'enum' => ['SHARE', 'REQUEST_EXCLUSIVE', 'SESSION_EXCLUSIVE'],
],
- 'vpcConfig' => [
+ 'sessionAffinityConfig' => ['title' => '', 'description' => 'The affinity configuration that corresponds to the sessionAffinity type. For MCP_SSE affinity, specify MCPSSESessionAffinityConfig. For cookie-based affinity, specify CookieSessionAffinityConfig. For header field affinity, specify HeaderFieldSessionAffinityConfig.', 'type' => 'string', 'example' => '{\\"sseEndpointPath\\":\\"/sse\\", \\"sessionConcurrencyPerInstance\\":20}'],
+ 'idleTimeout' => ['title' => '', 'description' => 'The deferred release time of the instance.', 'type' => 'integer', 'example' => '100', 'format' => 'int32'],
+ 'disableInjectCredentials' => [
'title' => '',
- 'description' => 'The Virtual Private Cloud (VPC) configurations. The configurations allow the function to access the specified VPC resources.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'vpcConfig',
- '$ref' => '#/components/schemas/VPCConfig',
+ 'description' => 'Specifies whether to disable STS token injection. Valid values:'."\n"
+ .'- None: STS tokens are injected in all methods.'."\n"
+ .'- Env: STS tokens are not injected through environment variables.'."\n"
+ .'- Request: STS tokens are not injected in requests, including context and headers.'."\n"
+ .'- All: STS tokens are not injected in any method.',
+ 'type' => 'string',
+ 'example' => 'Env',
+ 'default' => 'None',
+ 'enum' => ['None', 'Env', 'Request', 'All'],
],
+ 'polarFsConfig' => ['description' => 'The PolarFs configuration. After this parameter is configured, the function can access the specified PolarFs resources.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => '', 'description' => '', 'example' => '', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'microSandboxConfig' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/MicroSandboxConfig'],
],
+ 'example' => '',
],
'CreateLayerVersionInput' => [
- 'title' => '',
+ 'title' => '创建层版本的请求参数',
'description' => 'The information about the request parameters for creating a layer version.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '',
- 'description' => 'The code information of the layer.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'code',
- '$ref' => '#/components/schemas/InputCodeLocation',
- ],
+ 'code' => ['title' => '层的代码信息。', 'description' => 'The code information of the layer.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'code', '$ref' => '#/components/schemas/InputCodeLocation'],
'compatibleRuntime' => [
- 'title' => '',
+ 'title' => '层支持的运行时环境列表。',
'description' => 'The runtimes that are supported by the layer.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The runtime.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'python3.10',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The runtime.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'python3.10', 'extendType' => 'true'],
'required' => false,
'backendName' => 'compatibleRuntime',
],
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the layer version.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my first layer',
- 'maxLength' => 256,
- 'backendName' => 'description',
- ],
- 'license' => [
- 'title' => '',
- 'description' => 'The license agreement for the layer.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Apache',
- 'backendName' => 'license',
- ],
+ 'description' => ['title' => '层版本的描述信息。', 'description' => 'The description of the layer version.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my first layer', 'maxLength' => 256, 'backendName' => 'description'],
+ 'license' => ['title' => '层的许可协议。', 'description' => 'The license agreement for the layer.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Apache', 'backendName' => 'license'],
],
],
'CreateSessionInput' => [
'title' => '',
+ 'description' => 'The parameters for creating a session.',
+ 'type' => 'object',
+ 'properties' => [
+ 'sessionTTLInSeconds' => ['title' => '', 'description' => 'The session lifetime.', 'type' => 'integer', 'example' => '21600', 'format' => 'int64'],
+ 'sessionIdleTimeoutInSeconds' => ['title' => '', 'description' => 'The session idle timeout period.', 'type' => 'integer', 'example' => '1800', 'format' => 'int64'],
+ 'nasConfig' => ['description' => 'The NAS configuration. After this parameter is configured, instances associated with the session can access the specified NAS resources.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/NASConfig'],
+ 'sessionId' => ['title' => '', 'description' => 'The custom session ID. If this parameter is not specified, the server generates a session ID. If specified, the value is used as the session ID. This parameter applies only to the HEADER_FIELD affinity mode. Format: the length is limited to [0,64]. The first character must be from **a-zA-Z0-9_**, and subsequent characters can be from **a-zA-Z0-9_-**.', 'type' => 'string', 'example' => 'custom-test-session-id', 'maxLength' => 64, 'minLength' => 0],
+ 'disableSessionIdReuse' => ['title' => '', 'description' => 'Specifies whether to disable session ID reuse. Default value: False, which indicates that after a session with a specific SessionID expires, you can send requests with the same SessionID, and the system treats it as a new session bound to a new instance. If this parameter is set to True, the SessionID cannot be reused after the session expires.', 'type' => 'boolean', 'example' => 'false'],
+ 'ossMountConfig' => ['description' => 'The OSS configuration. After this parameter is configured, instances associated with the session can access the specified OSS resources.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'polarFsConfig' => ['description' => 'The PolarFs configuration. After this parameter is configured, instances associated with the session can access the specified PolarFs resources.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => '', 'description' => '', 'example' => '', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'enableAutoPause' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ 'enableAutoResume' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
+ ],
+ 'CreateTimedResidentResourcePoolApplicationInput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'operationType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'timedPoolId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'poolName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'gpuType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'totalGPUCards' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'vCpuCores' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'memorySizeInGB' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'associatedPoolId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'reason' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'timedConfig' => ['$ref' => '#/components/schemas/TimedPoolConfig', 'description' => '', 'title' => '', 'example' => ''],
+ 'diskSizeInGB' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ ],
'description' => '',
- 'visibility' => 'Public',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'CreateTimedResidentResourcePoolApplicationOutput' => [
'type' => 'object',
'properties' => [
- 'sessionTTLInSeconds' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- 'backendName' => 'sessionTTLInSeconds',
- ],
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- 'backendName' => 'sessionIdleTimeoutInSeconds',
- ],
+ 'timedPoolId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'applicationStatus' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
'CreateTriggerInput' => [
- 'title' => '',
+ 'title' => '创建触发器的请求参数',
'description' => 'The information about request parameters to create the trigger.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the trigger.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'trigger for test',
- 'maxLength' => 256,
- 'backendName' => 'description',
- ],
- 'invocationRole' => [
- 'title' => '',
- 'description' => 'The RAM role that is used by the event source such as Object Storage Service (OSS) to invoke the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::1234567890:role/fc-test',
- 'maxLength' => 300,
- 'backendName' => 'invocationRole',
- ],
- 'qualifier' => [
- 'title' => '',
- 'description' => 'The version or alias of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- 'backendName' => 'qualifier',
- ],
- 'sourceArn' => [
- 'title' => '',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the trigger event source.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:oss:cn-shanghai:12345:mybucket',
- 'maxLength' => 300,
- 'minLength' => 1,
- 'backendName' => 'sourceArn',
- ],
- 'triggerConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the trigger. The configurations vary based on the trigger type. The following items list the data structures for different types of triggers:'."\n"
- ."\n"
- .'* OSS triggers: [OSSTriggerConfig](~~2766465~~).'."\n"
- .'* Simple Log Service trigger: [LogTriggerConfig](~~2618711~~).'."\n"
- .'* Time triggers: [TimerTriggerConfig](~~2754638~~).'."\n"
- .'* HTTP triggers: [HTTPTriggerConfig](~~2766461~~).'."\n"
- .'* Tablestore triggers: Specify the **SourceArnm** parameter and leave this parameter empty.'."\n"
- .'* Alibaba Cloud CDN event triggers: [CDNEventsTriggerConfig](~~2766462~~).'."\n"
- .'* MNS topic triggers: [MnsTopicTriggerConfig](~~2766464~~).'."\n"
- .'* EventBridge-based triggers: [EventBridgeTriggerConfig](~~2766447~~).'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '{"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}}',
- 'backendName' => 'triggerConfig',
- ],
- 'triggerName' => [
- 'title' => '',
- 'description' => 'The name of the trigger. The name can contain only letters, digits, hyphens (-), and underscores (\\_). The name must be 1 to 128 characters in length and cannot start with a digit or a hyphen (-).'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'oss_create_object_demo',
- 'maxLength' => 128,
- 'minLength' => 1,
- 'backendName' => 'triggerName',
- ],
- 'triggerType' => [
- 'title' => '',
- 'description' => 'The type of the trigger. Valid values:'."\n"
- ."\n"
- .'* **oss**: OSS event triggers. For more information, see [Overview](~~2513613~~).'."\n"
- .'* **log**: Simple Log Service triggers. For more information, see [Simple Log Service triggers](~~2513638~~).'."\n"
- .'* **timer**: time triggers. For more information, see [Time triggers](~~2513611~~).'."\n"
- .'* **http**: HTTP triggers. For more information, see [Overview](~~2513634~~).'."\n"
- .'* **tablestore**: Tablestore triggers. For more information, see [Tablestore triggers](~~2513640~~).'."\n"
- .'* **cdn_events**: CDN event triggers. For more information, see [Overview](~~2513636~~).'."\n"
- .'* **mns_topic**: Message Service (MNS) topic triggers. For more information, see [MNS topic triggers](~~2513641~~).'."\n"
- .'* **eventbridge**: EventBridge-based triggers.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'oss',
- 'backendName' => 'triggerType',
- ],
+ 'description' => ['title' => '触发器的描述。', 'description' => 'The description of the trigger.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'trigger for test', 'maxLength' => 256, 'backendName' => 'description'],
+ 'invocationRole' => ['title' => '事件源(如OSS)调用函数所需的角色。', 'description' => 'The RAM role that is used by the event source such as Object Storage Service (OSS) to invoke the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1234567890:role/fc-test', 'maxLength' => 300, 'backendName' => 'invocationRole'],
+ 'qualifier' => ['title' => '函数的版本或别名。', 'description' => 'The version or alias of the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'backendName' => 'qualifier'],
+ 'sourceArn' => ['title' => '触发器事件源的Aliyun Resource Name。', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the trigger event source.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:oss:cn-shanghai:12345:mybucket', 'maxLength' => 300, 'minLength' => 1, 'backendName' => 'sourceArn'],
+ 'triggerConfig' => ['title' => '触发器配置,针对不同类型的触发器,配置有所不同。', 'description' => 'The configurations of the trigger. The configurations vary based on the trigger type. The following items list the data structures for different types of triggers:'."\n"
+ ."\n"
+ .'* OSS triggers: [OSSTriggerConfig](~~2766465~~).'."\n"
+ .'* Simple Log Service trigger: [LogTriggerConfig](~~2618711~~).'."\n"
+ .'* Time triggers: [TimerTriggerConfig](~~2754638~~).'."\n"
+ .'* HTTP triggers: [HTTPTriggerConfig](~~2766461~~).'."\n"
+ .'* Tablestore triggers: Specify the **SourceArnm** parameter and leave this parameter empty.'."\n"
+ .'* Alibaba Cloud CDN event triggers: [CDNEventsTriggerConfig](~~2766462~~).'."\n"
+ .'* MNS topic triggers: [MnsTopicTriggerConfig](~~2766464~~).'."\n"
+ .'* EventBridge-based triggers: [EventBridgeTriggerConfig](~~2766447~~).'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '{"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}}', 'backendName' => 'triggerConfig'],
+ 'triggerName' => ['title' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。', 'description' => 'The name of the trigger. The name can contain only letters, digits, hyphens (-), and underscores (\\_). The name must be 1 to 128 characters in length and cannot start with a digit or a hyphen (-).'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'oss_create_object_demo', 'maxLength' => 128, 'minLength' => 1, 'backendName' => 'triggerName'],
+ 'triggerType' => ['title' => '触发器的类型。', 'description' => 'The type of the trigger. Valid values:'."\n"
+ ."\n"
+ .'* **oss**: OSS event triggers. For more information, see [Overview](~~2513613~~).'."\n"
+ .'* **log**: Simple Log Service triggers. For more information, see [Simple Log Service triggers](~~2513638~~).'."\n"
+ .'* **timer**: time triggers. For more information, see [Time triggers](~~2513611~~).'."\n"
+ .'* **http**: HTTP triggers. For more information, see [Overview](~~2513634~~).'."\n"
+ .'* **tablestore**: Tablestore triggers. For more information, see [Tablestore triggers](~~2513640~~).'."\n"
+ .'* **cdn_events**: CDN event triggers. For more information, see [Overview](~~2513636~~).'."\n"
+ .'* **mns_topic**: Message Service (MNS) topic triggers. For more information, see [MNS topic triggers](~~2513641~~).'."\n"
+ .'* **eventbridge**: EventBridge-based triggers.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'oss', 'backendName' => 'triggerType'],
],
],
'CreateVpcBindingInput' => [
- 'title' => '',
+ 'title' => '创建 vpc binding 请求参数',
'description' => 'The information about request parameters for creating and binding a virtual private cloud (VPC).'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'vpcId' => [
- 'title' => '',
- 'description' => 'The ID of the VPC.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'vpc-8vb8x8dggvr0a****',
- 'minLength' => 1,
- 'backendName' => 'vpcId',
- ],
+ 'vpcId' => ['title' => 'VPC实例ID', 'description' => 'The ID of the VPC.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'vpc-8vb8x8dggvr0a****', 'minLength' => 1, 'backendName' => 'vpcId'],
],
],
'CustomContainerConfig' => [
- 'title' => '',
+ 'title' => '自定义容器运行时的配置信息',
'description' => 'The configurations of the Custom Container runtime.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'accelerationInfo' => [
- 'title' => '',
- 'description' => 'The information about image acceleration.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'accelerationInfo',
- '$ref' => '#/components/schemas/AccelerationInfo',
- ],
- 'accelerationType' => [
- 'title' => '',
- 'description' => 'Specifies whether to enable image acceleration. Valid values: Default: enables image acceleration. None: disables image acceleration.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'default',
- 'backendName' => 'accelerationType',
- ],
- 'acrInstanceId' => [
- 'title' => '',
- 'description' => 'The ID of the image repository for the Container Registry Enterprise Edition. You must specify this parameter if you use an image of Container Registry Enterprise Edition.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cri-xxxxxxxxxx',
- 'backendName' => 'acrInstanceId',
- ],
+ 'accelerationInfo' => ['title' => '镜像加速信息(已废弃)', 'description' => 'The information about image acceleration.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'accelerationInfo', '$ref' => '#/components/schemas/AccelerationInfo'],
+ 'accelerationType' => ['title' => '是否开启镜像加速。Default: 默认值,表示开启镜像加速。None: 表示关闭镜像加速。(已废弃)', 'description' => 'Specifies whether to enable image acceleration. Valid values: Default: enables image acceleration. None: disables image acceleration.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'default', 'backendName' => 'accelerationType'],
+ 'acrInstanceId' => ['title' => 'ACR企业版镜像仓库ID,使用ACR企业版镜像时须传入。(已废弃)', 'description' => 'The ID of the image repository for the Container Registry Enterprise Edition. You must specify this parameter if you use an image of Container Registry Enterprise Edition.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cri-xxxxxxxxxx', 'backendName' => 'acrInstanceId'],
'command' => [
- 'title' => '',
+ 'title' => '容器启动参数。',
'description' => 'The startup parameter of the container.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The startup parameter.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'arg1',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The startup parameter.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'arg1', 'extendType' => 'true'],
'required' => false,
'backendName' => 'command',
],
'entrypoint' => [
- 'title' => '',
+ 'title' => '容器启动命令。',
'description' => 'The container startup command.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The startup command.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => '/code/bootstrap',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The startup command.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => '/code/bootstrap', 'extendType' => 'true'],
'required' => false,
'backendName' => 'entrypoint',
],
- 'healthCheckConfig' => [
- 'title' => '',
- 'description' => 'The custom health check configurations of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'healthCheckConfig',
- '$ref' => '#/components/schemas/CustomHealthCheckConfig',
- ],
- 'image' => [
- 'title' => '',
- 'description' => 'The endpoint of the container image.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1',
- 'backendName' => 'image',
- ],
- 'port' => [
- 'title' => '',
- 'description' => 'The port on which the HTTP server listens for the Custom Container runtime.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '9000',
- 'backendName' => 'port',
- ],
- 'registryConfig' => [
- 'title' => 'registry related',
- 'description' => 'registry related'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'registryConfig',
- '$ref' => '#/components/schemas/RegistryConfig',
- ],
- 'resolvedImageUri' => [
- 'title' => '',
- 'description' => 'The actual digest version of the deployed image. The code version specified by digest is actually used when the function starts. This parameter is returned by GetFunction and is not required as a parameter.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'stand-sh-registry-vpc.cn-shanghai.cr.aliyuncs.com/fc-demo2/springboot-helloworld@sha256:68d1****0d64d6',
- 'backendName' => 'resolvedImageUri',
- ],
+ 'healthCheckConfig' => ['title' => '函数自定义健康检查配置', 'description' => 'The custom health check configurations of the function.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'healthCheckConfig', '$ref' => '#/components/schemas/CustomHealthCheckConfig'],
+ 'image' => ['title' => '容器镜像地址。', 'description' => 'The endpoint of the container image.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1', 'backendName' => 'image'],
+ 'port' => ['title' => '自定义容器运行时HTTP Server的监听端口。', 'description' => 'The port on which the HTTP server listens for the Custom Container runtime.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '9000', 'backendName' => 'port'],
+ 'registryConfig' => ['title' => 'registry related', 'description' => 'registry related'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'registryConfig', '$ref' => '#/components/schemas/RegistryConfig'],
+ 'resolvedImageUri' => ['title' => '所部署的Image字段镜像的实际digest版本, 函数启动及运行时实际使用此digest指定的代码版本(返回参数,作为入参无需填写)', 'description' => 'The actual digest version of the deployed image. The code version specified by digest is actually used when the function starts. This parameter is returned by GetFunction and is not required as a parameter.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'stand-sh-registry-vpc.cn-shanghai.cr.aliyuncs.com/fc-demo2/springboot-helloworld@sha256:68d1****0d64d6', 'backendName' => 'resolvedImageUri'],
],
],
'CustomDNS' => [
- 'title' => '',
+ 'title' => '函数自定义DNS配置',
'description' => 'The information about the custom Domain Name System (DNS) configurations of the function.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'dnsOptions' => [
- 'title' => '',
+ 'title' => 'resolv.conf文件中的DNS解析配置列表。每一项对应一个键值对,格式为key:value,其中键为必填',
'description' => 'The DNS resolution configurations in the resolv.conf file. Each item corresponds to a key-value pair in the key:value format, in which the key is required.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The DNS option.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/DNSOption',
- ],
+ 'items' => ['description' => 'The DNS option.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/DNSOption'],
'required' => false,
'backendName' => 'dnsOptions',
],
'nameServers' => [
- 'title' => '',
+ 'title' => 'DNS服务器的IP地址列表',
'description' => 'The IP addresses of the DNS server.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The DNS server.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => '8.8.x.x',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The DNS server.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => '8.8.x.x', 'extendType' => 'true'],
'required' => false,
'backendName' => 'nameServers',
],
'searches' => [
- 'title' => '',
+ 'title' => 'DNS搜索域列表',
'description' => 'The search domains of DNS server.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The search domain of the DNS server.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'ns1.svc.cluster-domain.example',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The search domain of the DNS server.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'ns1.svc.cluster-domain.example', 'extendType' => 'true'],
'required' => false,
'backendName' => 'searches',
],
@@ -1499,280 +608,85 @@
],
'CustomDomain' => [
'title' => '',
- 'description' => 'The information about the custom domain name.'."\n",
- 'visibility' => 'public',
+ 'description' => 'Custom domain information.',
'type' => 'object',
'properties' => [
- 'accountId' => [
- 'title' => '',
- 'description' => 'The ID of your Alibaba Cloud account.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '186851234023****',
- 'backendName' => 'accountId',
- ],
- 'apiVersion' => [
- 'title' => '',
- 'description' => 'The version of the Function Compute API.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-30',
- 'backendName' => 'apiVersion',
- ],
- 'authConfig' => [
- 'title' => '',
- 'description' => 'The configuration of permission authentication.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'authConfig',
- '$ref' => '#/components/schemas/AuthConfig',
- ],
- 'certConfig' => [
- 'title' => '',
- 'description' => 'The configuration of the HTTPS certificate.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'certConfig',
- '$ref' => '#/components/schemas/CertConfig',
- ],
- 'createdTime' => [
- 'title' => '',
- 'description' => 'The time when the custom domain name was created.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-30T08:02:19Z',
- 'backendName' => 'createdTime',
- ],
- 'domainName' => [
- 'title' => '',
- 'description' => 'The domain name.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'example.com',
- 'backendName' => 'domainName',
- ],
- 'lastModifiedTime' => [
- 'title' => '',
- 'description' => 'The time when the custom domain name was last updated.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-30T08:02:19Z',
- 'backendName' => 'lastModifiedTime',
- ],
- 'protocol' => [
- 'title' => '',
- 'description' => 'The protocol type that is supported by the custom domain name. Valid values: HTTP HTTPS HTTP,HTTPS'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'HTTP',
- 'backendName' => 'protocol',
- ],
- 'routeConfig' => [
- 'title' => '',
- 'description' => 'The route table that maps paths to functions when the function is invoked by using the custom domain name.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'routeConfig',
- '$ref' => '#/components/schemas/RouteConfig',
- ],
- 'subdomainCount' => [
- 'title' => '',
- 'description' => 'The number of added subdomains.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'subdomainCount',
- ],
- 'tlsConfig' => [
- 'title' => '',
- 'description' => 'The Transport Layer Security (TLS) configuration.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'tlsConfig',
- '$ref' => '#/components/schemas/TLSConfig',
- ],
- 'wafConfig' => [
- 'title' => '',
- 'description' => 'The Web Application Firewall (WAF) configuration.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'wafConfig',
- '$ref' => '#/components/schemas/WAFConfig',
- ],
- ],
+ 'accountId' => ['description' => 'The ID of the Alibaba Cloud account (primary account).', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '186851234023****'],
+ 'apiVersion' => ['description' => 'The API version of Function Compute.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '2023-03-30'],
+ 'authConfig' => ['description' => 'The authentication configuration.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/AuthConfig', 'example' => ''],
+ 'certConfig' => ['description' => 'The HTTPS certificate configuration.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/CertConfig', 'example' => ''],
+ 'createdTime' => ['description' => 'The time when the custom domain was created.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '2023-03-30T08:02:19Z'],
+ 'domainName' => ['description' => 'The domain name.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'example.com'],
+ 'lastModifiedTime' => ['description' => 'The time when the custom domain was last modified.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '2023-03-30T08:02:19Z'],
+ 'protocol' => ['description' => 'The protocols that are supported by the domain name. Valid values: HTTP (HTTP only), HTTPS (HTTPS only), and HTTP,HTTPS (both HTTP and HTTPS).', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'HTTP'],
+ 'routeConfig' => ['description' => 'The route table that maps paths to functions.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/RouteConfig', 'example' => ''],
+ 'subdomainCount' => ['description' => 'The number of subdomains.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '1'],
+ 'tlsConfig' => ['description' => 'The TLS configuration.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/TLSConfig', 'example' => ''],
+ 'wafConfig' => ['description' => 'The Web Application Firewall (WAF) aconfiguration.', 'title' => '', 'required' => false, '$ref' => '#/components/schemas/WAFConfig', 'example' => ''],
+ 'corsConfig' => ['description' => 'The cross-origin resource sharing (CORS) configuration.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/CORSConfig'],
+ 'isE2B' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
],
'CustomHealthCheckConfig' => [
- 'title' => '',
+ 'title' => '函数自定义健康检查配置,仅适用于Custom Runtime和Custom Container',
'description' => 'The information about the custom health check configurations of the function. This parameter is applicable only to custom runtimes and Custom Container runtimes.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'failureThreshold' => [
- 'title' => '',
- 'description' => 'The threshold for health check failures. When this value is reached, the system considers the health check failed. Valid values: 1 to 120. Default value: 3.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'failureThreshold',
- ],
- 'httpGetUrl' => [
- 'title' => '',
- 'description' => 'The health check URL of the custom container. The URL can be up to 2,048 characters in length.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/ready',
- 'backendName' => 'httpGetUrl',
- ],
- 'initialDelaySeconds' => [
- 'title' => '',
- 'description' => 'The delay between the container startup and the health check. Valid values: 0 to 120. Default value: 0.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'initialDelaySeconds',
- ],
- 'periodSeconds' => [
- 'title' => '',
- 'description' => 'The health check period. Valid values: 1 to 120. Default value: 3.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'periodSeconds',
- ],
- 'successThreshold' => [
- 'title' => '',
- 'description' => 'The threshold for health check successes. When this value is reached, the system considers the health check successful. Valid values: 1 to 120. Default value: 1.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- 'backendName' => 'successThreshold',
- ],
- 'timeoutSeconds' => [
- 'title' => '',
- 'description' => 'The timeout period of the health check. Unit: seconds. Valid values: 1 to 3. Default value: 1.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- 'backendName' => 'timeoutSeconds',
- ],
+ 'failureThreshold' => ['title' => '健康检查失败次数阈值,达到该值后系统认为检查失败。取值范围1~120。默认值为3。', 'description' => 'The threshold for health check failures. When this value is reached, the system considers the health check failed. Valid values: 1 to 120. Default value: 3.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'backendName' => 'failureThreshold'],
+ 'httpGetUrl' => ['title' => '容器自定义健康检查URL地址。长度不超过2048个字符。', 'description' => 'The health check URL of the custom container. The URL can be up to 2,048 characters in length.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '/ready', 'backendName' => 'httpGetUrl'],
+ 'initialDelaySeconds' => ['title' => '容器启动到发起健康检查的延迟。取值范围0~120。默认值为0。', 'description' => 'The delay between the container startup and the health check. Valid values: 0 to 120. Default value: 0.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'backendName' => 'initialDelaySeconds'],
+ 'periodSeconds' => ['title' => '健康检查周期。取值范围1~120。默认值为3。', 'description' => 'The health check period. Valid values: 1 to 120. Default value: 3.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'backendName' => 'periodSeconds'],
+ 'successThreshold' => ['title' => '健康检查成功次数阈值,达到该值后系统认为检查成功。取值范围1~120。默认值为1。', 'description' => 'The threshold for health check successes. When this value is reached, the system considers the health check successful. Valid values: 1 to 120. Default value: 1.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'backendName' => 'successThreshold'],
+ 'timeoutSeconds' => ['title' => '健康检查超时时间。取值范围1~3。默认值为1。', 'description' => 'The timeout period of the health check. Unit: seconds. Valid values: 1 to 3. Default value: 1.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'backendName' => 'timeoutSeconds'],
],
],
'CustomRuntimeConfig' => [
- 'title' => '',
+ 'title' => '自定义运行时的配置信息',
'description' => 'The information about the configurations of the custom runtime.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'args' => [
- 'title' => '',
+ 'title' => '实例启动参数。',
'description' => 'The arguments that are passed to the startup command.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The argument that is passed to the startup command.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'arg1',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The argument that is passed to the startup command.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'arg1', 'extendType' => 'true'],
'required' => false,
'backendName' => 'args',
],
'command' => [
- 'title' => '',
+ 'title' => '实例启动命令。',
'description' => 'The startup commands.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The startup command.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => '/code/bootstrap',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The startup command.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => '/code/bootstrap', 'extendType' => 'true'],
'required' => false,
'backendName' => 'command',
],
- 'healthCheckConfig' => [
- 'title' => '',
- 'description' => 'The custom health check configuration of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'healthCheckConfig',
- '$ref' => '#/components/schemas/CustomHealthCheckConfig',
- ],
- 'port' => [
- 'title' => '',
- 'description' => 'The port on which the HTTP server is listening.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '9000',
- 'backendName' => 'port',
- ],
+ 'healthCheckConfig' => ['title' => '函数自定义健康检查配置。', 'description' => 'The custom health check configuration of the function.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'healthCheckConfig', '$ref' => '#/components/schemas/CustomHealthCheckConfig'],
+ 'port' => ['title' => 'HTTP Server的监听端口。', 'description' => 'The port on which the HTTP server is listening.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '9000', 'backendName' => 'port'],
],
],
'DeadLetterQueue' => [
- 'title' => '',
+ 'title' => 'EventBridge 触发器的死信队列配置',
'description' => 'The dead-letter queue configurations for the EventBridge trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'Arn' => [
- 'title' => '',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the dead-letter queue.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:mq:cn-shanghai:14319991365*****:/instances/MQ_INST_14319991365*****_BYWs****/topic/testTopic',
- 'backendName' => 'Arn',
- ],
+ 'Arn' => ['title' => '死信队列的 ARN', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the dead-letter queue.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:mq:cn-shanghai:14319991365*****:/instances/MQ_INST_14319991365*****_BYWs****/topic/testTopic', 'backendName' => 'Arn'],
],
],
'DeliveryOption' => [
- 'title' => '',
+ 'title' => 'EventBridge 触发器的事件推送配置',
'description' => 'The event push configurations of the EventBridge trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'concurrency' => [
- 'title' => '',
- 'description' => 'The maximum number of concurrent events that can be delivered by the upstream event source to Function Compute. This parameter is valid only when ApsaraMQ for Kafka is used as the event source.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '2',
- 'backendName' => 'concurrency',
- ],
- 'eventSchema' => [
- 'title' => '',
- 'description' => 'The format of each data element in the event parameter of the function. CloudEvents: describes event data in a common format, including event description and event payload data. CloudEvents is designed to simplify event declaration and transmission between different services and platforms. This is the default value. RawData: delivers only the event payload data and does not include other metadata information in the CloudEvents format.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'RawData',
- 'backendName' => 'eventSchema',
- ],
+ 'concurrency' => ['title' => '上游事件源投递事件到函数计算的并发最大值,目前仅针对在 Kafka 作为事件源时有效。', 'description' => 'The maximum number of concurrent events that can be delivered by the upstream event source to Function Compute. This parameter is valid only when ApsaraMQ for Kafka is used as the event source.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2', 'backendName' => 'concurrency'],
+ 'eventSchema' => ['title' => '函数入口参数 event 中每个数据元素的格式。CloudEvents:以通用格式描述事件数据的规范,包含事件描述以及事件负载数据,旨在简化不同服务、平台间的事件声明和传输,默认值。RawData:只投递事件负载数据,不包含CloudEvents格式中的其它元数据信息。', 'description' => 'The format of each data element in the event parameter of the function. CloudEvents: describes event data in a common format, including event description and event payload data. CloudEvents is designed to simplify event declaration and transmission between different services and platforms. This is the default value. RawData: delivers only the event payload data and does not include other metadata information in the CloudEvents format.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'RawData', 'backendName' => 'eventSchema'],
],
],
'DescribeRegionsOutput' => [
@@ -1794,2009 +708,948 @@
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'RegionId' => [
- 'description' => 'The region ID.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'cn-qingdao',
- 'backendName' => 'RegionId',
- ],
- 'LocalName' => [
- 'description' => 'The region name.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '',
- 'backendName' => 'LocalName',
- ],
+ 'RegionId' => ['description' => 'The region ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'backendName' => 'RegionId', 'example' => 'cn-qingdao', 'title' => ''],
+ 'LocalName' => ['description' => 'The region name.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => '华北1(青岛)'."\n", 'backendName' => 'LocalName', 'title' => ''],
],
'extendType' => 'true',
+ 'title' => '',
+ 'example' => '',
],
'backendName' => 'Region',
+ 'title' => '',
+ 'example' => '',
],
],
'backendName' => 'Regions',
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'example' => '',
],
'Destination' => [
- 'title' => '',
+ 'title' => '异步调用目标结构体',
'description' => 'The struct of the destination for the asynchronous invocation.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'destination' => [
- 'title' => '',
- 'description' => 'The descriptor of the destination for the asynchronous invocation.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1',
- 'maxLength' => 512,
- 'backendName' => 'destination',
- ],
+ 'destination' => ['title' => '异步调用目标资源描述符', 'description' => 'The descriptor of the destination for the asynchronous invocation.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1', 'maxLength' => 512, 'backendName' => 'destination'],
],
],
'DestinationConfig' => [
- 'title' => '',
- 'description' => 'The information about the configurations of the destination for the asynchronous invocation.'."\n",
- 'visibility' => 'public',
+ 'title' => '异步调用目标的配置信息',
+ 'description' => 'Configuration for asynchronous invocation destinations.',
'type' => 'object',
'properties' => [
- 'onFailure' => [
- 'title' => '',
- 'description' => 'The destination struct of a failed callback.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'onFailure',
- '$ref' => '#/components/schemas/Destination',
- ],
- 'onSuccess' => [
- 'title' => '',
- 'description' => 'The destination struct of a successful callback.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'onSuccess',
- '$ref' => '#/components/schemas/Destination',
- ],
+ 'onFailure' => ['title' => '失败的回调目标结构体。', 'description' => 'Structure that defines the destination for failed invocations.', 'required' => false, '$ref' => '#/components/schemas/Destination', 'example' => ''],
+ 'onSuccess' => ['title' => '成功的回调目标结构体。', 'description' => 'Structure that defines the destination for successful invocations.', 'required' => false, '$ref' => '#/components/schemas/Destination', 'example' => ''],
],
+ 'example' => '',
],
'DNSOption' => [
- 'title' => '',
+ 'title' => 'DNS解析配置',
'description' => 'The information about Domain Name System (DNS) configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'name' => [
- 'title' => '',
- 'description' => 'The name of the configuration item.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ndots',
- 'maxLength' => 256,
- 'backendName' => 'name',
- ],
- 'value' => [
- 'title' => '',
- 'description' => 'The value of the configuration item.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2',
- 'maxLength' => 256,
- 'backendName' => 'value',
- ],
+ 'name' => ['title' => '配置项名称', 'description' => 'The name of the configuration item.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'ndots', 'maxLength' => 256, 'backendName' => 'name'],
+ 'value' => ['title' => '配置项值', 'description' => 'The value of the configuration item.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2', 'maxLength' => 256, 'backendName' => 'value'],
],
],
- 'EqualRule' => [
+ 'ElasticInterval' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'startTime' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'endTime' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
'title' => '',
+ 'example' => '',
+ ],
+ 'EqualRule' => [
+ 'title' => '自定义域名完全匹配重写规则配置',
'description' => 'The configurations of exact match-based rewrite rules of custom domain names.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'match' => [
- 'title' => '',
- 'description' => 'The matching rule.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/old',
- 'maxLength' => 256,
- 'backendName' => 'match',
- ],
- 'replacement' => [
- 'title' => '',
- 'description' => 'The replacement rule.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/new',
- 'maxLength' => 256,
- 'backendName' => 'replacement',
- ],
+ 'match' => ['title' => '匹配规则', 'description' => 'The matching rule.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/old', 'maxLength' => 256, 'backendName' => 'match'],
+ 'replacement' => ['title' => '替换规则', 'description' => 'The replacement rule.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/new', 'maxLength' => 256, 'backendName' => 'replacement'],
],
],
'Error' => [
- 'title' => '',
+ 'title' => '错误信息',
'description' => 'The details of the error message.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'Code' => [
- 'title' => '',
- 'description' => 'The error code.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'FunctionNotFound',
- 'backendName' => 'Code',
- ],
- 'Message' => [
- 'title' => '',
- 'description' => 'The error message.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'function not found',
- 'backendName' => 'Message',
- ],
- 'RequestId' => [
- 'title' => '',
- 'description' => 'The request ID.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1-64e70cf1-5cbef92ea8fc8c42899cf5d1',
- 'backendName' => 'RequestId',
- ],
+ 'Code' => ['title' => '错误码', 'description' => 'The error code.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'FunctionNotFound', 'backendName' => 'Code'],
+ 'Message' => ['title' => '错误信息', 'description' => 'The error message.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'function not found', 'backendName' => 'Message'],
+ 'RequestId' => ['title' => '请求ID', 'description' => 'The request ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1-64e70cf1-5cbef92ea8fc8c42899cf5d1', 'backendName' => 'RequestId'],
],
],
'EventBridgeTriggerConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the EventBridge-based trigger.'."\n",
- 'visibility' => 'Public',
+ 'title' => 'EventBridge 触发器配置',
+ 'description' => 'EventBridge trigger configuration',
'type' => 'object',
'properties' => [
- 'asyncInvocationType' => [
- 'title' => '',
- 'description' => 'Whether to invoke the function in asynchronous mode. Valid values:'."\n"
- ."\n"
- .'* **true**'."\n"
- .'* **false**'."\n"
- ."\n"
- .'> The default value is **false**.'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'asyncInvocationType',
- ],
- 'eventRuleFilterPattern' => [
- 'title' => '',
- 'description' => 'The event pattern. The value is in the JSON format. For more information, see [Event patterns](~~181432~~).'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- 'backendName' => 'eventRuleFilterPattern',
- ],
- 'eventSinkConfig' => [
- 'title' => '',
- 'description' => 'The event destination configurations.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'eventSinkConfig',
- '$ref' => '#/components/schemas/EventSinkConfig',
- ],
- 'eventSourceConfig' => [
- 'title' => '',
- 'description' => 'The event source configurations.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'eventSourceConfig',
- '$ref' => '#/components/schemas/EventSourceConfig',
- ],
- 'runOptions' => [
- 'title' => '',
- 'description' => 'The runtime configurations.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'runOptions',
- '$ref' => '#/components/schemas/RunOptions',
- ],
- 'triggerEnable' => [
- 'title' => '',
- 'description' => 'Whether to enable the trigger. Valid values:'."\n"
- ."\n"
- .'* **true**'."\n"
- .'* **false**'."\n"
- ."\n"
- .'> The default value is **true**.'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'triggerEnable',
- ],
- ],
+ 'asyncInvocationType' => ['title' => '触发器调用函数的方式。true:同步调用。false:异步调用,默认值。', 'description' => 'The method used by the trigger to invoke the function. Valid values:'."\n"
+ ."\n"
+ .'- **true**: synchronous call.'."\n"
+ ."\n"
+ .'- **false**: asynchronous invocation.'."\n"
+ ."\n"
+ .'> Default value: **false**', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'eventRuleFilterPattern' => ['title' => '事件模式。JSON格式,详细规则,请参见:https://help.aliyun.com/zh/eventbridge/user-guide/event-patterns?spm=a2c4g.11186623.0.i21', 'description' => 'Event pattern. Use JSON format. For detailed rules, see [event pattern](~~181432~~).', 'type' => 'string', 'required' => false, 'example' => '{}'],
+ 'eventSinkConfig' => ['title' => '事件目标配置', 'description' => 'Event target configuration', 'required' => false, '$ref' => '#/components/schemas/EventSinkConfig', 'example' => ''],
+ 'eventSourceConfig' => ['title' => '事件源配置。', 'description' => 'Event source configuration.', 'required' => false, '$ref' => '#/components/schemas/EventSourceConfig', 'example' => ''],
+ 'runOptions' => ['title' => '运行环境参数配置', 'description' => 'Environment parameter configuration', 'required' => false, '$ref' => '#/components/schemas/RunOptions', 'example' => ''],
+ 'triggerEnable' => ['title' => '是否启用触发器。true: 启用触发器,默认值。false: 禁用触发器。', 'description' => 'Whether to enable the trigger. Valid values:'."\n"
+ ."\n"
+ .'- **true**: enable the trigger.'."\n"
+ ."\n"
+ .'- **false**: disable the trigger.'."\n"
+ ."\n"
+ .'> Default value: **true**', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ ],
+ 'example' => '',
],
'EventSinkConfig' => [
- 'title' => '',
+ 'title' => 'EventBridge 触发器的 sink 端配置',
'description' => 'The sink-side configurations of the EventBridge trigger'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'deliveryOption' => [
- 'title' => '',
- 'description' => 'The event push configurations.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'deliveryOption',
- '$ref' => '#/components/schemas/DeliveryOption',
- ],
+ 'deliveryOption' => ['title' => '事件推送配置', 'description' => 'The event push configurations.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'deliveryOption', '$ref' => '#/components/schemas/DeliveryOption'],
],
],
'EventSourceConfig' => [
- 'title' => '',
+ 'title' => 'EventBridge 触发器的事件源配置',
'description' => 'The event source configurations of the EventBridge trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'eventSourceParameters' => [
- 'title' => '',
- 'description' => 'The event source. Custom event sources include Message Service (MNS), ApsaraMQ for RocketMQ, ApsaraMQ for RabbitMQ, ApsaraMQ for Kafka, ApsaraMQ for MQTT, and Data Transmission Service (DTS).'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'eventSourceParameters',
- '$ref' => '#/components/schemas/EventSourceParameters',
- ],
- 'eventSourceType' => [
- 'title' => '',
- 'description' => 'The event source type. Valid values:'."\n"
- ."\n"
- .'* **Default**: Alibaba Cloud EventBridge sources'."\n"
- .'* **MNS**: Message Service (MNS)'."\n"
- .'* **RocketMQ**: ApsaraMQ for RocketMQ'."\n"
- .'* **RabbitMQ**: ApsaraMQ for RabbitMQ'."\n"
- .'* **Kafka**: ApsaraMQ for Kafka'."\n"
- .'* **MQTT**: ApsaraMQ for MQTT'."\n"
- .'* **DTS**: DTS'."\n"
- ."\n"
- .'> This parameter cannot be updated. If you specify this parameter when you update the configurations, it does not take effect.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MNS',
- 'backendName' => 'eventSourceType',
- ],
+ 'eventSourceParameters' => ['title' => '自定义事件源参数', 'description' => 'The event source. Custom event sources include Message Service (MNS), ApsaraMQ for RocketMQ, ApsaraMQ for RabbitMQ, ApsaraMQ for Kafka, ApsaraMQ for MQTT, and Data Transmission Service (DTS).'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'eventSourceParameters', '$ref' => '#/components/schemas/EventSourceParameters'],
+ 'eventSourceType' => ['title' => '触发器事件源类型。Default:表示 EventBridge 官方触发源,默认值。MNS:消息队列 MNS 队列作为触发源。RocketMQ:消息队列 RocketMQ 版作为触发源。RabbitMQ:消息队列 RabbitMQ 版作为触发源。Kafka:云消息队列 Kafka 版作为触发源。MQTT:云消息队列 MQTT 版作为触发源。DTS:数据传输服务 DTS 作为触发源。注意,该字段不可更新,更新时传入该字段将被忽略。', 'description' => 'The event source type. Valid values:'."\n"
+ ."\n"
+ .'* **Default**: Alibaba Cloud EventBridge sources'."\n"
+ .'* **MNS**: Message Service (MNS)'."\n"
+ .'* **RocketMQ**: ApsaraMQ for RocketMQ'."\n"
+ .'* **RabbitMQ**: ApsaraMQ for RabbitMQ'."\n"
+ .'* **Kafka**: ApsaraMQ for Kafka'."\n"
+ .'* **MQTT**: ApsaraMQ for MQTT'."\n"
+ .'* **DTS**: DTS'."\n"
+ ."\n"
+ .'> This parameter cannot be updated. If you specify this parameter when you update the configurations, it does not take effect.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'MNS', 'backendName' => 'eventSourceType'],
],
],
'EventSourceParameters' => [
- 'title' => '',
- 'description' => 'The custom event source configurations for the EventBridge trigger.'."\n",
- 'visibility' => 'Public',
+ 'title' => 'EventBridge 触发器的自定义事件源参数',
+ 'description' => 'Custom event source parameters for EventBridge triggers.',
'type' => 'object',
'properties' => [
- 'sourceDTSParameters' => [
- 'title' => '',
- 'description' => 'The custom configurations when the event source is Data Transmission Service (DTS).'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'sourceDTSParameters',
- '$ref' => '#/components/schemas/SourceDTSParameters',
- ],
- 'sourceKafkaParameters' => [
- 'title' => '',
- 'description' => 'The custom configurations when the event source is ApsaraMQ for Kafka.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'sourceKafkaParameters',
- '$ref' => '#/components/schemas/SourceKafkaParameters',
- ],
- 'sourceMNSParameters' => [
- 'title' => '',
- 'description' => 'The custom configurations when the event source is Simple Message Queue (formerly MNS).'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'sourceMNSParameters',
- '$ref' => '#/components/schemas/SourceMNSParameters',
- ],
- 'sourceMQTTParameters' => [
- 'title' => '',
- 'description' => 'The custom configurations when the event source is ApsaraMQ for MQTT.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'sourceMQTTParameters',
- '$ref' => '#/components/schemas/SourceMQTTParameters',
- ],
- 'sourceRabbitMQParameters' => [
- 'title' => '',
- 'description' => 'The custom configurations when the event source is ApsaraMQ for RabbitMQ.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'sourceRabbitMQParameters',
- '$ref' => '#/components/schemas/SourceRabbitMQParameters',
- ],
- 'sourceRocketMQParameters' => [
- 'title' => '',
- 'description' => 'The custom configurations when the event source is ApsaraMQ for RocketMQ.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'sourceRocketMQParameters',
- '$ref' => '#/components/schemas/SourceRocketMQParameters',
- ],
+ 'sourceDTSParameters' => ['title' => '事件源为数据传输服务DTS时的自定义参数配置', 'description' => 'Custom parameter settings when the event source is Data Transmission Service DTS.', 'required' => false, '$ref' => '#/components/schemas/SourceDTSParameters', 'example' => ''],
+ 'sourceKafkaParameters' => ['title' => '事件源为消息队列Kafka版时的自定义参数配置', 'description' => 'Custom parameter settings when the event source is Kafka.', 'required' => false, '$ref' => '#/components/schemas/SourceKafkaParameters', 'example' => ''],
+ 'sourceMNSParameters' => ['title' => '事件源为消息服务MNS时的自定义参数配置', 'description' => 'Custom parameter settings when the event source is Simple Message Queue (formerly MNS).', 'required' => false, '$ref' => '#/components/schemas/SourceMNSParameters', 'example' => ''],
+ 'sourceMQTTParameters' => ['title' => '事件源为云消息队列MQTT版时的自定义参数配置', 'description' => 'Custom parameter settings when the event source is ApsaraMQ for MQTT.', 'required' => false, '$ref' => '#/components/schemas/SourceMQTTParameters', 'example' => ''],
+ 'sourceRabbitMQParameters' => ['title' => '事件源为消息队列RabbitMQ版时的自定义参数配置', 'description' => 'Custom parameter settings when the event source is Message Queue for RabbitMQ.', 'required' => false, '$ref' => '#/components/schemas/SourceRabbitMQParameters', 'example' => ''],
+ 'sourceRocketMQParameters' => ['title' => '事件源为消息队列RockerMQ版时的自定义参数配置', 'description' => 'Custom parameter settings when the event source is Message Queue for RocketMQ.', 'required' => false, '$ref' => '#/components/schemas/SourceRocketMQParameters', 'example' => ''],
],
+ 'example' => '',
],
'Filter' => [
- 'title' => '',
- 'description' => 'The filter configurations of the Object Storage Service (OSS) trigger.'."\n",
- 'visibility' => 'Public',
+ 'title' => 'OSS 触发器配置过滤器配置',
+ 'description' => 'OSS trigger filter configuration',
'type' => 'object',
'properties' => [
- 'key' => [
- 'title' => '',
- 'description' => 'The description of the event filtering rule.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'key',
- '$ref' => '#/components/schemas/Key',
- ],
+ 'key' => ['title' => '事件过滤规则描述。', 'description' => 'Description of event filter rules.', 'required' => false, '$ref' => '#/components/schemas/Key', 'example' => ''],
],
+ 'example' => '',
],
'Function' => [
'title' => '',
- 'description' => 'The function configurations.'."\n",
- 'visibility' => 'public',
+ 'description' => 'The function configuration information.',
'type' => 'object',
'properties' => [
- 'handler' => [
- 'title' => '',
- 'description' => 'The handler of the function. The format of the handler is related to the runtime you use.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index.handler',
- 'backendName' => 'handler',
- ],
- 'lastModifiedTime' => [
- 'title' => '',
- 'description' => 'The last time the function was updated.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-05-01T08:15:27Z',
- 'backendName' => 'lastModifiedTime',
- ],
- 'role' => [
- 'title' => '',
- 'description' => 'The Resource Access Management (RAM) role that is assigned to the function. Function Compute assumes the role to obtain a Security Token Service (STS) token, which serves as a temporary key for your function to access other Alibaba Cloud services, such as Object Storage Service (OSS) and Tablestore.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::188077086902****:role/fc-test',
- 'backendName' => 'role',
- ],
- 'disableOndemand' => [
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'backendName' => 'disableOndemand',
- ],
- 'tracingConfig' => [
- 'title' => '',
- 'description' => 'The configurations of Managed Service for OpenTelemetry. After Function Compute is integrated with Managed Service for OpenTelemetry, you can record the invocation duration of a request, view the cold start duration of a function, and track the execution duration of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'tracingConfig',
- '$ref' => '#/components/schemas/TracingConfig',
- ],
- 'lastUpdateStatusReasonCode' => [
- 'title' => '',
- 'description' => 'The reason code for the most recent update that was executed on the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ImageOptimizing',
- 'backendName' => 'lastUpdateStatusReasonCode',
- ],
- 'nasConfig' => [
- 'title' => '',
- 'description' => 'The File Storage NAS (NAS) configurations. The configurations allow the function to access the specified NAS file system.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'nasConfig',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my function',
- 'backendName' => 'description',
- ],
- 'stateReasonCode' => [
- 'title' => '',
- 'description' => 'The reason code for the current state of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Creating',
- 'backendName' => 'stateReasonCode',
- ],
- 'stateReason' => [
- 'title' => '',
- 'description' => 'The reason for the current state of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Function creating',
- 'backendName' => 'stateReason',
- ],
- 'codeSize' => [
- 'title' => '',
- 'description' => 'The size of the function code package returned by the system. Unit: bytes.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '412',
- 'backendName' => 'codeSize',
- ],
- 'timeout' => [
- 'title' => '',
- 'description' => 'The timeout period for function execution. Unit: seconds. Default value: 3. Valid values: 1 to 86400. The execution of the function is terminated when the timeout period expires.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '60',
- 'backendName' => 'timeout',
- ],
- 'codeChecksum' => [
- 'title' => '',
- 'description' => 'The CRC-64 value of the function code package.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2825179536350****',
- 'backendName' => 'codeChecksum',
- ],
- 'diskSize' => [
- 'title' => '',
- 'description' => 'The disk size of the function. Unit: MB. Valid values: 512 and 10240.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- 'backendName' => 'diskSize',
- ],
- 'functionId' => [
- 'title' => '',
- 'description' => 'The globally unique ID generated by the system for the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aa715851-1c20-4b89-a8fb-***',
- 'backendName' => 'functionId',
- ],
- 'lastUpdateStatusReason' => [
+ 'codeChecksum' => ['title' => '', 'description' => 'The CRC-64 value of the function code package.', 'type' => 'string', 'required' => false, 'example' => '2825179536350****'],
+ 'codeSize' => ['title' => '', 'description' => 'The size of the function code package returned by the system. Unit: bytes.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '412'],
+ 'cpu' => ['title' => '', 'description' => '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.', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1'],
+ 'createdTime' => ['title' => '', 'description' => 'The time when the function was created.', 'type' => 'string', 'required' => false, 'example' => '2023-04-01T08:15:27Z'],
+ 'customContainerConfig' => ['title' => '', 'description' => '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.', 'required' => false, '$ref' => '#/components/schemas/CustomContainerConfig', 'example' => ''],
+ 'customDNS' => ['title' => '', 'description' => 'The custom DNS configuration.', 'required' => false, '$ref' => '#/components/schemas/CustomDNS', 'example' => ''],
+ 'customRuntimeConfig' => ['title' => '', 'description' => 'The custom runtime configuration.', 'required' => false, '$ref' => '#/components/schemas/CustomRuntimeConfig', 'example' => ''],
+ 'description' => ['title' => '', 'description' => 'The description of the function.', 'type' => 'string', 'required' => false, 'example' => 'my function'],
+ 'diskSize' => ['title' => '', 'description' => 'The disk specification of the function. Unit: MB. Valid values: 512 and 10240.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
+ 'environmentVariables' => [
'title' => '',
- 'description' => 'The reason for the most recent update that was executed on the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'The system is currently processing the acceleration optimization for the image.',
- 'backendName' => 'lastUpdateStatusReason',
- ],
- 'internetAccess' => [
- 'title' => 'service config',
- 'description' => 'Specifies whether to allow the function to access the Internet. Default value: true.'."\n",
- 'visibility' => 'public',
- 'type' => 'boolean',
+ 'description' => 'The environment variables of the function. You can access the configured environment variables in the runtime environment.',
+ 'type' => 'object',
'required' => false,
- 'example' => 'true',
- 'backendName' => 'internetAccess',
+ 'additionalProperties' => ['description' => '环境变量的值。', 'type' => 'string', 'example' => 'value1', 'title' => ''],
+ 'example' => '',
],
+ 'functionArn' => ['title' => '', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the function.', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:123:functions/functionName'],
+ 'functionId' => ['title' => '', 'description' => 'The globally unique ID generated by the system for the function.', 'type' => 'string', 'required' => false, 'example' => 'aa715851-1c20-4b89-a8fb-***'],
+ 'functionName' => ['title' => '', 'description' => 'The name of the function.', 'type' => 'string', 'required' => false, 'example' => 'my-function-1'],
+ 'gpuConfig' => ['title' => '', 'description' => 'The GPU configuration of the function.', 'required' => false, '$ref' => '#/components/schemas/GPUConfig', 'example' => ''],
+ 'handler' => ['title' => '', 'description' => 'The function entry point. The specific format depends on the runtime.', 'type' => 'string', 'required' => false, 'example' => 'index.handler'],
+ 'instanceConcurrency' => ['title' => '', 'description' => 'The maximum concurrency per instance.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'instanceLifecycleConfig' => ['title' => '', 'description' => 'The instance lifecycle hook method configuration.', 'required' => false, '$ref' => '#/components/schemas/InstanceLifecycleConfig', 'example' => ''],
+ 'internetAccess' => ['title' => '', 'description' => 'Specifies whether the function can access the Internet. Default value: true.', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'lastModifiedTime' => ['title' => '', 'description' => 'The time when the function was last updated.', 'type' => 'string', 'required' => false, 'example' => '2023-05-01T08:15:27Z'],
+ 'lastUpdateStatus' => ['title' => '', 'description' => 'The status of the most recent function update operation. When a function is created, this value is Successful. Valid values:'."\n"
+ .'- Successful'."\n"
+ .'- Failed'."\n"
+ .'- InProgress.', 'type' => 'string', 'required' => false, 'example' => 'InProgress'],
+ 'lastUpdateStatusReason' => ['title' => '', 'description' => 'The reason that caused the most recent function update operation to have the current status.', 'type' => 'string', 'required' => false, 'example' => 'The system is currently processing the acceleration optimization for the image.'],
+ 'lastUpdateStatusReasonCode' => ['title' => '', 'description' => 'The status code of the reason that caused the most recent function update operation to have the current status.', 'type' => 'string', 'required' => false, 'example' => 'ImageOptimizing'],
'layers' => [
'title' => '',
- 'description' => 'The layers.'."\n",
- 'visibility' => 'public',
+ 'description' => 'The list of layers.',
'type' => 'array',
- 'items' => [
- 'description' => 'The layer information.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/FunctionLayer',
- ],
+ 'items' => ['description' => '层信息。', '$ref' => '#/components/schemas/FunctionLayer', 'title' => '', 'example' => ''],
'required' => false,
- 'backendName' => 'layers',
- ],
- 'ossMountConfig' => [
- 'title' => '',
- 'description' => 'The OSS mounting configurations.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'ossMountConfig',
- '$ref' => '#/components/schemas/OSSMountConfig',
- ],
- 'createdTime' => [
- 'title' => '',
- 'description' => 'The time when the function was created.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-04-01T08:15:27Z',
- 'backendName' => 'createdTime',
- ],
- 'state' => [
- 'title' => 'function state',
- 'description' => 'The current state of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Pending',
- 'backendName' => 'state',
- ],
- 'functionArn' => [
- 'title' => '',
- 'description' => 'The identifier of the function resource.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:123:functions/functionName',
- 'backendName' => 'functionArn',
- ],
- 'customRuntimeConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the custom runtime.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'customRuntimeConfig',
- '$ref' => '#/components/schemas/CustomRuntimeConfig',
- ],
- 'logConfig' => [
- 'title' => '',
- 'description' => 'The logging configurations. Logs generated by the function are written to the specified Logstore.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'logConfig',
- '$ref' => '#/components/schemas/LogConfig',
- ],
- 'functionName' => [
- 'title' => '',
- 'description' => 'The name of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-function-1',
- 'backendName' => 'functionName',
- ],
- 'instanceLifecycleConfig' => [
- 'title' => '',
- 'description' => 'The configurations of instance lifecycle hooks.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'instanceLifecycleConfig',
- '$ref' => '#/components/schemas/InstanceLifecycleConfig',
- ],
- 'gpuConfig' => [
- 'title' => '',
- 'description' => 'The GPU configurations of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'gpuConfig',
- '$ref' => '#/components/schemas/GPUConfig',
- ],
- 'cpu' => [
- 'title' => '',
- 'description' => 'The CPU power allocated to the function. Unit: vCPUs. The value must be a multiple of 0.05. The minimum value is 0.05 and the maximum value is 16. The ratio of cpu to memorySize (in GB) must be from 1:1 to 1:4.'."\n",
- 'visibility' => 'public',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'cpu',
- ],
- 'runtime' => [
- 'title' => '',
- 'description' => '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.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'python3.10',
- 'backendName' => 'runtime',
- ],
- 'customContainerConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the Custom Container runtime. After you configure a Custom Container runtime for your function, Function Compute can execute the function in a custom container image. Configure either code or customContainerConfig.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'customContainerConfig',
- '$ref' => '#/components/schemas/CustomContainerConfig',
- ],
- 'instanceConcurrency' => [
- 'title' => '',
- 'description' => 'The maximum number of requests that a function instance can process at a time.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'instanceConcurrency',
+ 'example' => '',
],
+ 'logConfig' => ['title' => '', 'description' => 'The log configuration. Logs generated by the function are written to the configured Logstore.', 'required' => false, '$ref' => '#/components/schemas/LogConfig', 'example' => ''],
+ 'memorySize' => ['title' => '', 'description' => '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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
+ 'nasConfig' => ['title' => '', 'description' => 'The NAS configuration. After this parameter is configured, the function can access the specified NAS resources.', 'required' => false, '$ref' => '#/components/schemas/NASConfig', 'example' => ''],
+ 'ossMountConfig' => ['title' => '', 'description' => 'The OSS mount configuration.', 'required' => false, '$ref' => '#/components/schemas/OSSMountConfig', 'example' => ''],
+ 'role' => ['title' => '', 'description' => '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.', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::188077086902****:role/fc-test'],
+ 'runtime' => ['title' => '', 'description' => '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.', 'type' => 'string', 'required' => false, 'example' => 'python3.10'],
+ 'state' => ['title' => '', 'description' => 'The current state of the function.', 'type' => 'string', 'required' => false, 'example' => 'Pending'],
+ 'stateReason' => ['title' => '', 'description' => 'The reason why the function is in the current state.', 'type' => 'string', 'required' => false, 'example' => 'Function creating'],
+ 'stateReasonCode' => ['title' => '', 'description' => 'The status code of the reason why the function is in the current state.', 'type' => 'string', 'required' => false, 'example' => 'Creating'],
+ 'timeout' => ['title' => '', 'description' => '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.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
+ 'tracingConfig' => ['title' => '', 'description' => '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.', 'required' => false, '$ref' => '#/components/schemas/TracingConfig', 'example' => ''],
+ 'vpcConfig' => ['title' => '', 'description' => 'The VPC configuration. After this parameter is configured, the function can access the specified VPC resources.', 'required' => false, '$ref' => '#/components/schemas/VPCConfig', 'example' => ''],
'tags' => [
- 'description' => 'The tags.'."\n",
- 'visibility' => 'Public',
+ 'description' => 'The list of tags.',
'type' => 'array',
- 'items' => [
- 'description' => 'The tag information.'."\n",
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Tag',
- ],
- 'backendName' => 'tags',
- ],
- 'invocationRestriction' => [
- 'visibility' => 'Public',
- 'backendName' => 'invocationRestriction',
- '$ref' => '#/components/schemas/open_struct_FunctionRestriction',
- ],
- 'memorySize' => [
- 'title' => '',
- 'description' => 'The memory capacity for the function. Unit: MB. The value must be a multiple of 64. The minimum capacity is 128 MB and the maximum capacity is 32 GB. The ratio of cpu to memorySize (in GB) must be from 1:1 to 1:4.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- 'backendName' => 'memorySize',
- ],
- 'customDNS' => [
+ 'items' => ['description' => '标签信息。', '$ref' => '#/components/schemas/Tag', 'title' => '', 'example' => ''],
'title' => '',
- 'description' => 'The custom DNS settings of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'customDNS',
- '$ref' => '#/components/schemas/CustomDNS',
- ],
- 'environmentVariables' => [
- 'title' => '',
- 'description' => 'The environment variables of the function. You can access the specified environment variables in the runtime.'."\n",
- 'visibility' => 'public',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'description' => 'The value of the environment variable.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'value1',
- ],
- 'backendName' => 'environmentVariables',
+ 'example' => '',
],
- 'lastUpdateStatus' => [
+ 'disableOndemand' => ['title' => '', 'description' => '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.', 'type' => 'boolean', 'example' => '', 'deprecated' => true],
+ 'invocationRestriction' => ['description' => '', '$ref' => '#/components/schemas/FunctionRestriction', 'title' => '', 'example' => ''],
+ 'sessionAffinity' => ['title' => '', 'description' => '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.', 'type' => 'string', 'example' => 'MCP_SSE', 'required' => false],
+ 'enableLongLiving' => ['title' => '', 'description' => '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.', 'type' => 'boolean', 'example' => '', 'deprecated' => true],
+ 'resourceGroupId' => ['title' => '', 'description' => 'The ID of the resource group.', 'type' => 'string', 'example' => ''],
+ 'instanceIsolationMode' => [
'title' => '',
- 'description' => 'The status of the most recent update that was executed on the function. The initial value for this parameter is Successful once the function has been successfully created. Valid values: Successful, Failed, and InProgress.'."\n",
- 'visibility' => 'public',
+ 'description' => 'The instance isolation mode.',
'type' => 'string',
- 'required' => false,
- 'example' => 'InProgress',
- 'backendName' => 'lastUpdateStatus',
+ 'example' => '',
+ 'enum' => ['SHARE', 'SESSION_EXCLUSIVE', 'REQUEST_EXCLUSIVE'],
],
- 'vpcConfig' => [
+ 'sessionAffinityConfig' => ['title' => '', 'description' => '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.', 'type' => 'string', 'example' => '{\\"sseEndpointPath\\":\\"/sse\\", \\"sessionConcurrencyPerInstance\\":20}'],
+ 'idleTimeout' => ['title' => '', 'description' => 'The deferred instance release time.', 'type' => 'integer', 'example' => '100', 'format' => 'int32'],
+ 'disableInjectCredentials' => [
'title' => '',
- 'description' => 'The Virtual Private Cloud (VPC) configurations. The configurations allow the function to access the specified VPC resources.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'vpcConfig',
- '$ref' => '#/components/schemas/VPCConfig',
+ 'description' => 'Specifies whether to disable STS token injection. Valid values:'."\n"
+ .'- None: injects STS tokens in all methods.'."\n"
+ .'- Env: does not inject STS tokens through environment variables.'."\n"
+ .'- Request: does not inject STS tokens through requests, including context and headers.'."\n"
+ .'- All: does not inject STS tokens in any method.',
+ 'type' => 'string',
+ 'example' => 'Env',
+ 'default' => 'None',
+ 'enum' => ['None', 'Env', 'Request', 'All'],
],
+ 'polarFsConfig' => ['description' => 'The PolarFs configuration. After this parameter is configured, the function can access the specified PolarFs resources.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'lockInfo' => ['title' => '', 'description' => '', 'example' => '{"lockedBy":"AgentRun","lockedAt":"2025-04-05T10:00:00Z","lockedResources":["function","trigger","version","alias"]}', '$ref' => '#/components/schemas/FunctionLockInfo'],
+ 'juiceFsConfig' => ['title' => '', 'description' => '', 'example' => '', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'microSandboxConfig' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/MicroSandboxConfig'],
],
+ 'example' => '',
],
'FunctionLayer' => [
- 'title' => '',
+ 'title' => '函数配置的层信息',
'description' => 'The information about the function layer configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'arn' => [
- 'title' => '',
- 'description' => 'The resource identifier of the layer version.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1',
- 'backendName' => 'arn',
- ],
- 'size' => [
+ 'arn' => ['title' => '层版本的资源标识。', 'description' => 'The resource identifier of the layer version.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1', 'backendName' => 'arn'],
+ 'size' => ['title' => '层的代码包大小,单位为Byte。', 'description' => 'The size of the layer code package. Unit: bytes.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '421', 'backendName' => 'size'],
+ ],
+ ],
+ 'FunctionLockInfo' => [
+ 'description' => 'Contains the lock information for a function.',
+ 'type' => 'object',
+ 'properties' => [
+ 'lockedBy' => ['description' => 'The name of the entity that applied the lock.', 'type' => 'string', 'title' => '', 'example' => 'AgentRun', 'required' => false],
+ 'lockedAt' => ['description' => 'The timestamp when the lock was applied.', 'type' => 'string', 'title' => '', 'example' => '2025-04-05T10:00:00Z', 'required' => false],
+ 'lockedResources' => [
+ 'description' => 'The list of locked resource types. Valid values include `function`, `trigger`, `version`, and `alias`.',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'example' => '["function", "trigger", "version", "alias"]',
+ 'maxItems' => 20,
'title' => '',
- 'description' => 'The size of the layer code package. Unit: bytes.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '421',
- 'backendName' => 'size',
],
],
+ 'title' => '',
+ 'example' => '',
],
- 'GetResourceTagsOutput' => [
+ 'FunctionRestriction' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'reason' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'lastModifiedTime' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'disable' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
'title' => '',
+ 'example' => '',
+ ],
+ 'GetResourceTagsOutput' => [
+ 'title' => '查询标签信息',
'description' => 'The information about the tag.'."\n",
- 'visibility' => 'public',
'type' => 'object',
'properties' => [
- 'resouceType' => [
- 'title' => '',
- 'description' => 'The name of the resource type. Valid values: ALIYUN::FC::FUNCTION and ALIYUN::FC::SERVICE. The former name is used in Function Compute 3.0, and the latter name is used in earlier versions of Function Compute.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ALIYUN::FC::FUNCTION',
- 'backendName' => 'resouceType',
- ],
- 'resourceArn' => [
- 'title' => '',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:****:functions/demo',
- 'backendName' => 'resourceArn',
- ],
+ 'resouceType' => ['title' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。', 'description' => 'The name of the resource type. Valid values: ALIYUN::FC::FUNCTION and ALIYUN::FC::SERVICE. The former name is used in Function Compute 3.0, and the latter name is used in earlier versions of Function Compute.'."\n", 'type' => 'string', 'required' => false, 'example' => 'ALIYUN::FC::FUNCTION', 'visibility' => 'Public', 'backendName' => 'resouceType'],
+ 'resourceArn' => ['title' => '阿里云资源描述符。', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n", 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:****:functions/demo', 'visibility' => 'Public', 'backendName' => 'resourceArn'],
'tags' => [
- 'title' => '',
+ 'title' => '标签字典。取值说明如下:key:表示标签键,value:表示标签值。',
'description' => 'The tag dictionary.'."\n",
- 'visibility' => 'public',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'description' => 'The tag value.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'value1',
- ],
+ 'additionalProperties' => ['description' => 'The tag value.'."\n", 'type' => 'string', 'example' => 'value1', 'visibility' => 'Public', 'title' => ''],
+ 'visibility' => 'Public',
'backendName' => 'tags',
+ 'example' => '',
],
],
+ 'visibility' => 'Public',
+ 'example' => '',
],
'GPUConfig' => [
- 'title' => '',
+ 'title' => '函数GPU配置信息',
'description' => 'The GPU configurations of the function.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'gpuMemorySize' => [
- 'title' => '',
- 'description' => 'The GPU memory size. Unit: MB. The value is a multiple of 1024 MB.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2048',
- 'backendName' => 'gpuMemorySize',
- ],
- 'gpuType' => [
- 'title' => '',
- 'description' => 'The type of GPU cards. Valid values: fc.gpu.tesla.1: Tesla T4 fc.gpu.ampere.1: Ampere A10'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'fc.gpu.ampere.1',
- 'maxLength' => 128,
- 'backendName' => 'gpuType',
- ],
+ 'gpuMemorySize' => ['title' => 'GPU显存规格,单位为MB,为1024MB的倍数', 'description' => 'The GPU memory size. Unit: MB. The value is a multiple of 1024 MB.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2048', 'backendName' => 'gpuMemorySize'],
+ 'gpuType' => ['title' => 'GPU 卡类型。 fc.gpu.tesla.1 表示 GPU Tesla系列实例类型。fc.gpu.ampere.1 表示 GPU Ampere系列实例类型。fc.gpu.ada.1 表示 GPU Ada系列实例类型。', 'description' => 'The type of GPU cards. Valid values: fc.gpu.tesla.1: Tesla T4 fc.gpu.ampere.1: Ampere A10'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'fc.gpu.ampere.1', 'maxLength' => 128, 'backendName' => 'gpuType'],
],
],
'HeaderFieldSessionAffinityConfig' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
+ 'title' => '通过 HTTP 请求头传递客户端会话标识,函数计算基于该标识进行哈希计算,确保相同标识的请求被路由到同一个实例。',
'type' => 'object',
'properties' => [
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- 'backendName' => 'sessionIdleTimeoutInSeconds',
- ],
- 'sessionTTLInSeconds' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- 'backendName' => 'sessionTTLInSeconds',
- ],
- 'sessionConcurrencyPerInstance' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '20',
- 'backendName' => 'sessionConcurrencyPerInstance',
- ],
- 'affinityHeaderFieldName' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-session-header1',
- 'backendName' => 'affinityHeaderFieldName',
- ],
+ 'sessionIdleTimeoutInSeconds' => ['title' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。', 'description' => 'The idle timeout period for a session in seconds. A session becomes idle if no operations are performed within this period. The maximum value cannot exceed the session\'s TTL. The value must be an integer from 0 to 21600.', 'type' => 'integer', 'format' => 'int64', 'example' => '1800'],
+ 'sessionTTLInSeconds' => ['title' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。', 'description' => 'The session\'s Time to Live (TTL) in seconds. This defines the entire lifecycle of a session, from creation to destruction. After this period expires, Function Compute automatically destroys the session and no longer guarantees affinity. The value must be an integer from 1 to 21600.', 'type' => 'integer', 'format' => 'int64', 'example' => '21600'],
+ 'sessionConcurrencyPerInstance' => ['title' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。', 'description' => 'The maximum number of sessions that a single instance can process simultaneously. The value must be an integer from 1 to 200.', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
+ 'affinityHeaderFieldName' => ['title' => '通过 HTTP 请求头传递客户端会话标识,不能以 x-fc- 前缀开头,以字母开头,非首字符可包含数字、中划线、下划线、字母,长度大于等于5个字符并且不超过40个字符。', 'description' => 'The name of the HTTP request header that passes the client session identity. The name must be 5 to 40 characters long, start with a letter, and contain only letters, numbers, hyphens (-), and underscores (\\_). The name cannot start with the x-fc- prefix.', 'type' => 'string', 'required' => false, 'example' => 'test-session-header1'],
+ 'disableSessionIdReuse' => ['title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'description' => 'The default value is False. If set to False, a session ID can be reused in a new request after the original session expires. The system treats this as a new session and attaches it to a new instance. If set to True, an expired session ID cannot be reused.', 'type' => 'boolean', 'example' => 'false'],
],
+ 'description' => 'The client session identity is passed in an HTTP request header. Function Compute hashes this identity to route requests with the same identity to the same instance.',
+ 'example' => '',
],
'HTTPTrigger' => [
- 'title' => '',
+ 'title' => 'HTTP 触发器配置',
'description' => 'The HTTP trigger configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'urlInternet' => [
- 'title' => '',
- 'description' => 'The public domain address. You can access HTTP triggers over the Internet by using HTTP or HTTPS.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run',
- 'backendName' => 'urlInternet',
- ],
- 'urlIntranet' => [
- 'title' => '',
- 'description' => 'The private endpoint. In a VPC, you can access HTTP triggers by using HTTP or HTTPS.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run',
- 'backendName' => 'urlIntranet',
- ],
+ 'urlInternet' => ['title' => '公网域名地址。在互联网可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The public domain address. You can access HTTP triggers over the Internet by using HTTP or HTTPS.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run', 'backendName' => 'urlInternet'],
+ 'urlIntranet' => ['title' => '私网域名地址。在VPC可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The private endpoint. In a VPC, you can access HTTP triggers by using HTTP or HTTPS.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run', 'backendName' => 'urlIntranet'],
],
],
'HTTPTriggerConfig' => [
- 'title' => '',
- 'description' => 'The HTTP trigger configurations.'."\n",
- 'visibility' => 'Public',
+ 'title' => 'HTTP 触发器配置',
+ 'description' => 'HTTP trigger configuration',
'type' => 'object',
'properties' => [
- 'authConfig' => [
- 'title' => '',
- 'description' => 'The authentication configurations.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"JWKS":{"foo":"bar"},"TokenLookup":"header:Authorization:Bearer,cookie:AuthorizationCookie","ClaimPassBy":"query:uid:uid,header:name:name"}',
- 'backendName' => 'authConfig',
- ],
- 'authType' => [
- 'title' => '',
- 'description' => 'The authentication type. Valid values:'."\n"
- ."\n"
- .'* **function**: requires authentication.'."\n"
- .'* **anonymous**: does not require authentication.'."\n"
- ."\n"
- .'> The default value is **function**'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'anonymous',
- 'backendName' => 'authType',
- ],
- 'disableURLInternet' => [
- 'title' => '',
- 'description' => 'Specifies whether to disable access to the default Internet domain. If you set this parameter to true, a 403 error is returned if you access the default public URL provided by the function. A value of false does not have affect the running of the function.'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'disableURLInternet',
- ],
+ 'authConfig' => ['title' => '鉴权配置', 'description' => 'Authentication configuration', 'type' => 'string', 'required' => false, 'example' => '{"JWKS":{"foo":"bar"},"TokenLookup":"header:Authorization:Bearer,cookie:AuthorizationCookie","ClaimPassBy":"query:uid:uid,header:name:name"}'],
+ 'authType' => ['title' => '认证类型。function:表示需要认证,默认值。anonymous:表示不需要认证。', 'description' => 'The authentication type. Valid values are:'."\n"
+ ."\n"
+ .'- **function**: Authentication is required.'."\n"
+ ."\n"
+ .'- **anonymous**: Authentication is not required.'."\n"
+ ."\n"
+ .'> The default type is **function**.', 'type' => 'string', 'required' => false, 'example' => 'anonymous'],
+ 'corsConfig' => ['title' => 'CORS 配置', 'description' => '', 'example' => '', 'required' => false, '$ref' => '#/components/schemas/CORSConfig'],
+ 'disableURLInternet' => ['title' => '禁用默认公网域名访问的开关。设置为true时,访问函数默认提供的公网URL地址会返回403错误。设置为false时,不会有任何影响。', 'description' => 'Specifies whether to disable access from the default public domain name. If set to true, accessing the function\'s default public URL returns a 403 error. If set to false, this parameter has no effect.', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'methods' => [
- 'title' => '',
- 'description' => 'The list of request methods. Multiple methods are supported.'."\n",
- 'visibility' => 'Public',
+ 'title' => '请求方法列表。允许同时支持多种方法。',
+ 'description' => 'The list of request methods. Multiple methods are supported.',
'type' => 'array',
- 'items' => [
- 'description' => 'The request method. Valid values:'."\n"
- ."\n"
- .'* HEAD'."\n"
- .'* DELETE'."\n"
- .'* POST'."\n"
- .'* GET'."\n"
- .'* OPTIONS'."\n"
- .'* PUT'."\n"
- .'* PATCH'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'GET',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The request method. Valid values are:'."\n"
+ ."\n"
+ .'- HEAD'."\n"
+ ."\n"
+ .'- DELETE'."\n"
+ ."\n"
+ .'- POST'."\n"
+ ."\n"
+ .'- GET'."\n"
+ ."\n"
+ .'- OPTIONS'."\n"
+ ."\n"
+ .'- PUT'."\n"
+ ."\n"
+ .'- PATCH', 'type' => 'string', 'example' => 'GET', 'title' => ''],
'required' => false,
- 'backendName' => 'methods',
+ 'example' => '',
],
],
+ 'example' => '',
],
'InputCodeLocation' => [
- 'title' => '',
+ 'title' => '函数代码配置',
'description' => 'The code configurations of the function. Code packages can be provided in the following methods:'."\n"
."\n"
.'1. Include content of a code package in requests. In this case, zipFile must be set.'."\n"
.'2. Upload a code package to Object Storage Service (OSS). Include the path of the OSS object in requests. In this case, you must set ossBucketName and ossObjectName.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'checksum' => [
- 'title' => '',
- 'description' => 'The CRC-64 value of the function code package. If checksum is provided, Function Compute checks whether the checksum of the code package is the same as that provided.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2825179536350****',
- 'backendName' => 'checksum',
- ],
- 'ossBucketName' => [
- 'title' => '',
- 'description' => 'The name of the OSS bucket where the ZIP package of the function code is stored.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo-bucket',
- 'maxLength' => 63,
- 'minLength' => 3,
- 'backendName' => 'ossBucketName',
- ],
- 'ossObjectName' => [
- 'title' => '',
- 'description' => 'The name of the OSS object where the ZIP package of the function code is stored.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo-object',
- 'backendName' => 'ossObjectName',
- ],
- 'zipFile' => [
- 'title' => '',
- 'description' => 'The ZIP package of the function code that is encoded in Base64 format.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'UEsDBAoAAAAAANF',
- 'backendName' => 'zipFile',
- ],
+ 'checksum' => ['title' => '函数代码包的CRC-64值。', 'description' => 'The CRC-64 value of the function code package. If checksum is provided, Function Compute checks whether the checksum of the code package is the same as that provided.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2825179536350****', 'backendName' => 'checksum'],
+ 'ossBucketName' => ['title' => '存放函数代码ZIP包的OSS Bucket名称。', 'description' => 'The name of the OSS bucket where the ZIP package of the function code is stored.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'demo-bucket', 'maxLength' => 63, 'minLength' => 3, 'backendName' => 'ossBucketName'],
+ 'ossObjectName' => ['title' => '存放函数代码ZIP包的OSS Object名称。', 'description' => 'The name of the OSS object where the ZIP package of the function code is stored.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'demo-object', 'backendName' => 'ossObjectName'],
+ 'zipFile' => ['title' => '函数代码ZIP包的Base 64编码。', 'description' => 'The ZIP package of the function code that is encoded in Base64 format.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'UEsDBAoAAAAAANF', 'backendName' => 'zipFile'],
],
],
'InstanceInfo' => [
- 'title' => 'The information about the function instance.'."\n",
- 'description' => 'public',
- 'visibility' => 'Public',
+ 'title' => '',
+ 'description' => 'Function instance information.',
'type' => 'object',
'properties' => [
- 'versionId' => [
- 'description' => 'The version of the function to which the instance belongs. If the instance belongs to the LATEST alias, 0 is returned as the version.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '0',
- 'backendName' => 'versionId',
- ],
- 'instanceId' => [
- 'title' => 'public',
- 'description' => 'The instance ID.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1ef6b6ff-7f7b-485e-ab49-501ac681****',
- 'backendName' => 'instanceId',
- ],
- 'createdTimeMs' => [
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'backendName' => 'createdTimeMs',
- ],
- 'qualifier' => [
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'qualifier',
- ],
- 'destroyedTimeMs' => [
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'backendName' => 'destroyedTimeMs',
- ],
- 'status' => [
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'sttaus',
- ],
+ 'instanceId' => ['title' => '', 'description' => 'Instance ID.', 'type' => 'string', 'required' => false, 'example' => '1ef6b6ff-7f7b-485e-ab49-501ac681****'],
+ 'versionId' => ['description' => 'The version of the function to which the instance belongs. If the instance is under the LATEST alias of the function, the returned version number is 0.', 'type' => 'string', 'example' => '0', 'title' => ''],
+ 'qualifier' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'status' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'createdTimeMs' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'destroyedTimeMs' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'resourceType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'example' => '',
],
'InstanceLifecycleConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the lifecycle hook for the function instance.'."\n",
- 'visibility' => 'public',
+ 'title' => '实例生命周期回调方法配置',
+ 'description' => 'Instance lifecycle hook configuration',
'type' => 'object',
'properties' => [
- 'initializer' => [
- 'title' => '',
- 'description' => 'The configurations of the Initializer hook.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'initializer',
- '$ref' => '#/components/schemas/LifecycleHook',
- ],
- 'preStop' => [
- 'title' => '',
- 'description' => 'The configurations of the PreStop hook.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'preStop',
- '$ref' => '#/components/schemas/LifecycleHook',
- ],
+ 'initializer' => ['title' => 'Initializer 回调方法配置', 'description' => 'Initializer method configuration', 'required' => false, '$ref' => '#/components/schemas/LifecycleHook', 'example' => ''],
+ 'preStop' => ['title' => 'PreStop 回调方法配置', 'description' => 'PreStop method configuration', 'required' => false, '$ref' => '#/components/schemas/LifecycleHook', 'example' => ''],
],
+ 'example' => '',
],
'JobConfig' => [
- 'title' => '',
+ 'title' => 'SLS 触发器任务配置',
'description' => 'The trigger task configurations of Simple Log Service.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'maxRetryTime' => [
+ 'maxRetryTime' => ['title' => '最大重试次数。取值范围为0~100。日志服务根据触发间隔每次触发函数执行时,如果遇到错误(例如权限不足、网络失败、函数执行异常返回等),该参数定义本次触发所允许的最大重试次数。对于本次触发,如果超过最大重试次数仍无法成功的,需要等到下一次触发间隔到来时,由日志服务再次触发函数执行。', 'description' => 'The maximum number of retries. Valid values: 0 to 100. This parameter specifies the maximum number of retries allowed when Simple Log Service triggers a function based on the trigger interval if an error occurs, such as insufficient permissions, network failures, and function execution exceptions. If the trigger fails after the maximum number of retries is reached, Simple Log Service triggers the function again when the next trigger interval arrives.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'backendName' => 'maxRetryTime'],
+ 'triggerInterval' => ['title' => '日志服务触发函数运行的间隔。比如每隔120秒将logstore在最近120秒内的数据取出到函数服务,以执行自定义计算。', 'description' => 'The time interval at which Simple Log Service triggers function execution. For example, you can retrieve data from the Logstore within the last 120 seconds to Function Compute every 120 seconds to perform custom computing.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', 'backendName' => 'triggerInterval'],
+ ],
+ ],
+ 'JuiceFsConfig' => [
+ 'title' => 'JuiceFs 配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'mountPoints' => [
+ 'type' => 'array',
+ 'items' => ['description' => 'The configuration for a single mount point.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/JuiceFsMountConfig'],
+ 'description' => 'An array of JuiceFsMountConfig objects, each specifying the configuration for a mount point.',
'title' => '',
- 'description' => 'The maximum number of retries. Valid values: 0 to 100. This parameter specifies the maximum number of retries allowed when Simple Log Service triggers a function based on the trigger interval if an error occurs, such as insufficient permissions, network failures, and function execution exceptions. If the trigger fails after the maximum number of retries is reached, Simple Log Service triggers the function again when the next trigger interval arrives.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '3',
- 'backendName' => 'maxRetryTime',
+ 'example' => '',
],
- 'triggerInterval' => [
+ 'envs' => [
+ 'title' => '自定义环境变量',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The value of the environment variable.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'description' => 'A map of environment variables (key-value pairs) to set for the JuiceFS client.',
+ 'example' => '',
+ ],
+ ],
+ 'description' => 'Specifies the configuration for JuiceFS.',
+ 'example' => '',
+ ],
+ 'JuiceFsMountConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'volumeName' => ['title' => 'JuiceFs 名称', 'description' => 'The name of the JuiceFS volume to mount. This parameter is required.', 'type' => 'string', 'example' => ''],
+ 'mountDir' => ['title' => '挂载到函数上的目录', 'description' => 'The path within the function\'s local filesystem to mount the volume. For example, /mnt/data. This parameter is required.', 'type' => 'string', 'example' => ''],
+ 'remoteDir' => ['title' => 'JuiceFs 远端目录', 'description' => 'The subdirectory within the JuiceFS volume to mount. If not specified, the root of the volume is mounted.', 'type' => 'string', 'example' => ''],
+ 'token' => ['title' => 'token 信息', 'description' => 'The authentication token to access the JuiceFS volume.', 'type' => 'string', 'example' => ''],
+ 'args' => [
+ 'type' => 'array',
+ 'items' => ['description' => 'A single command-line argument or option string.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'description' => 'An array of strings containing additional command-line arguments for the mount command. For example, use these arguments to set cache sizes or other performance-tuning options.',
'title' => '',
- 'description' => 'The time interval at which Simple Log Service triggers function execution. For example, you can retrieve data from the Logstore within the last 120 seconds to Function Compute every 120 seconds to perform custom computing.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '60',
- 'backendName' => 'triggerInterval',
+ 'example' => '',
],
],
+ 'description' => 'Configuration for mounting a JuiceFS volume.',
+ 'title' => '',
+ 'example' => '',
],
'Key' => [
- 'title' => '',
+ 'title' => 'OSS 触发器过滤规则描述',
'description' => 'The filter rules of the OSS trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'prefix' => [
- 'title' => '',
- 'description' => 'The prefix that is used to filter the event-related resources. Only events related to the resources whose names are prefixed with the specified value of Prefix are traced. For example, if you set Prefix to serverless\\_, only events related to the resources that are prefixed with serverless\\_ can trigger the function.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'serverless_',
- 'backendName' => 'prefix',
- ],
- 'suffix' => [
- 'title' => '',
- 'description' => 'The suffix that is used to filter the event-related resources. Only events related to the resources whose names are suffixed with the specified value of Suffix are traced. For example, if you set Suffix to .zip, only events related to the resources that are suffixed with .zip can trigger the function.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '.zip',
- 'backendName' => 'suffix',
- ],
+ 'prefix' => ['title' => '限定事件相关的资源名称,只关注以Prefix作为前缀的资源相关的事件,例如Prefix是“serverless_",则只有以"serverless_"开始的资源相关的事件才能触发当前函数。', 'description' => 'The prefix that is used to filter the event-related resources. Only events related to the resources whose names are prefixed with the specified value of Prefix are traced. For example, if you set Prefix to serverless\\_, only events related to the resources that are prefixed with serverless\\_ can trigger the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'serverless_', 'backendName' => 'prefix'],
+ 'suffix' => ['title' => '限定事件相关的资源名称,只关注以Suffix作为后缀的资源相关的事件,例如Suffix是“.zip",则只有以".zip"为后缀的资源相关的事件才能触发当前函数。', 'description' => 'The suffix that is used to filter the event-related resources. Only events related to the resources whose names are suffixed with the specified value of Suffix are traced. For example, if you set Suffix to .zip, only events related to the resources that are suffixed with .zip can trigger the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '.zip', 'backendName' => 'suffix'],
],
],
'Layer' => [
- 'title' => '',
+ 'title' => '层的详细信息',
'description' => 'The details of the layer.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'acl' => [
- 'title' => '',
- 'description' => 'The permission of the layer. Valid value: 0 and 1. 0 specifies that the layer is private, and 1 specifies that the layer is public. By default, public layers are public. Custom layers can be set to private or public.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- 'backendName' => 'acl',
- ],
- 'code' => [
- 'title' => '',
- 'description' => 'The information about the code package of the layer.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'code',
- '$ref' => '#/components/schemas/OutputCodeLocation',
- ],
- 'codeChecksum' => [
- 'title' => '',
- 'description' => 'The crc64 verification code of the layer code package, which is calculated based on ECMA-182.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2825179536350****',
- 'backendName' => 'codeChecksum',
- ],
- 'codeSize' => [
- 'title' => '',
- 'description' => 'The size of the layer code package. Unit: bytes.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '421',
- 'backendName' => 'codeSize',
- ],
+ 'acl' => ['title' => '层的权限。取值0代表私有,取值1代表公有。官方公共层默认为公有,自定义层可以设置为私有或者公有。', 'description' => 'The permission of the layer. Valid value: 0 and 1. 0 specifies that the layer is private, and 1 specifies that the layer is public. By default, public layers are public. Custom layers can be set to private or public.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '0', 'backendName' => 'acl'],
+ 'code' => ['title' => '层的代码包信息', 'description' => 'The information about the code package of the layer.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'code', '$ref' => '#/components/schemas/OutputCodeLocation'],
+ 'codeChecksum' => ['title' => '层代码包的crc64校验码,根据ECMA-182标准计算得出。', 'description' => 'The crc64 verification code of the layer code package, which is calculated based on ECMA-182.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2825179536350****', 'backendName' => 'codeChecksum'],
+ 'codeSize' => ['title' => '层的代码包大小,单位为Byte。', 'description' => 'The size of the layer code package. Unit: bytes.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '421', 'backendName' => 'codeSize'],
'compatibleRuntime' => [
- 'title' => '',
+ 'title' => '层支持的运行时环境列表。',
'description' => 'The runtimes that are supported by the layer.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The runtime.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'python3.10',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The runtime.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'python3.10', 'extendType' => 'true'],
'required' => false,
'backendName' => 'compatibleRuntime',
],
- 'createTime' => [
- 'title' => '',
- 'description' => 'The time when the layer version was created.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-30T11:08:00Z',
- 'backendName' => 'createTime',
- ],
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the layer version.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'My first layer',
- 'maxLength' => 256,
- 'backendName' => 'description',
- ],
- 'layerName' => [
- 'title' => '',
- 'description' => 'The name of the layer.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'MyLayer',
- 'maxLength' => 128,
- 'minLength' => 1,
- 'backendName' => 'layerName',
- ],
- 'layerVersionArn' => [
- 'title' => '',
- 'description' => 'The name of the resource in the layer version. The name is in the acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion} format.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1',
- 'backendName' => 'layerVersionArn',
- ],
- 'license' => [
- 'title' => '',
- 'description' => 'The license agreement.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Apache',
- 'backendName' => 'license',
- ],
- 'version' => [
- 'title' => '',
- 'description' => 'The layer version.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'version',
- ],
+ 'createTime' => ['title' => '层版本的创建时间。', 'description' => 'The time when the layer version was created.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2023-03-30T11:08:00Z', 'backendName' => 'createTime'],
+ 'description' => ['title' => '版本的描述信息。', 'description' => 'The description of the layer version.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'My first layer', 'maxLength' => 256, 'backendName' => 'description'],
+ 'layerName' => ['title' => '层的名称。', 'description' => 'The name of the layer.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'MyLayer', 'maxLength' => 128, 'minLength' => 1, 'backendName' => 'layerName'],
+ 'layerVersionArn' => ['title' => '层版本资源的名称,格式为 acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}.', 'description' => 'The name of the resource in the layer version. The name is in the acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion} format.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1', 'backendName' => 'layerVersionArn'],
+ 'license' => ['title' => '许可协议。', 'description' => 'The license agreement.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Apache', 'backendName' => 'license'],
+ 'version' => ['title' => '层的版本。', 'description' => 'The layer version.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'backendName' => 'version'],
],
],
'LifecycleHook' => [
- 'title' => '',
+ 'title' => '实例生命周期回调方法配置',
'description' => 'The configurations of the lifecycle hook for the function instance.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'handler' => [
- 'title' => '',
- 'description' => 'The handler of the hook. The definition is similar to that of a request handler.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index.initializer',
- 'maxLength' => 128,
- 'backendName' => 'handler',
- ],
- 'timeout' => [
- 'title' => '',
- 'description' => 'The timeout period of the hook. Unit: seconds.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- 'backendName' => 'timeout',
+ 'handler' => ['title' => '回调方法的执行入口,含义与请求处理程序类似。', 'description' => 'The handler of the hook. The definition is similar to that of a request handler.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'index.initializer', 'maxLength' => 128, 'backendName' => 'handler'],
+ 'timeout' => ['title' => '回调方法的超时时间,单位为秒。', 'description' => 'The timeout period of the hook. Unit: seconds.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'backendName' => 'timeout'],
+ 'command' => [
+ 'title' => '函数生命周期初始化阶段回调指令,生命周期回调方法的执行入口 handler 和 command 不允许同时配置,只能有一个生效,同时配置会产生错误提示',
+ 'description' => '函数生命周期初始化阶段回调指令,生命周期回调方法的执行入口 handler 和 command 不允许同时配置,只能有一个生效,同时配置会产生错误提示',
+ 'visibility' => 'Public',
+ 'type' => 'array',
+ 'items' => ['title' => '生命周期初始化阶段回调指令', 'description' => '生命周期初始化阶段回调指令', 'visibility' => 'Public', 'type' => 'string', 'example' => 'curl -X POST \'http://localhost:9000/preWarm', 'extendType' => 'true'],
+ 'backendName' => 'command',
],
],
],
'ListAliasesOutput' => [
- 'title' => '',
+ 'title' => '函数别名列表',
'description' => 'The list of function aliases.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'aliases' => [
- 'title' => '',
+ 'title' => '别名列表',
'description' => 'The information about aliases.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The information about the alias.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Alias',
- ],
+ 'items' => ['description' => 'The information about the alias.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Alias'],
'required' => false,
'backendName' => 'aliases',
],
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The next version.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- 'backendName' => 'nextToken',
- ],
+ 'nextToken' => ['title' => '下一个版本名', 'description' => 'The next version.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'test', 'backendName' => 'nextToken'],
],
],
'ListAsyncInvokeConfigOutput' => [
- 'title' => '',
+ 'title' => '获取函数异步配置列表的响应信息',
'description' => 'The information about the response to the asynchronous invocation.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'configs' => [
- 'title' => '',
+ 'title' => '异步调用配置列表',
'description' => 'The configurations of the asynchronous invocation.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The configuration of the asynchronous invocation.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/AsyncConfig',
- ],
+ 'items' => ['description' => 'The configuration of the asynchronous invocation.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/AsyncConfig'],
'required' => false,
'backendName' => 'configs',
],
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '8bj81uI8n****',
- 'backendName' => 'nextToken',
- ],
+ 'nextToken' => ['title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '8bj81uI8n****', 'backendName' => 'nextToken'],
],
],
'ListAsyncTaskOutput' => [
- 'title' => '',
+ 'title' => '列举异步任务信息响应内容',
'description' => 'Lists the responses of asynchronous tasks.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM='."\n",
- 'backendName' => 'nextToken',
- ],
+ 'nextToken' => ['title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结', 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='."\n", 'backendName' => 'nextToken'],
'tasks' => [
- 'title' => '',
+ 'title' => '异步任务信息列表',
'description' => 'The asynchronous tasks.'."\n",
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The asynchronous task.'."\n",
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/AsyncTask',
- ],
+ 'items' => ['description' => 'The asynchronous task.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/AsyncTask'],
'required' => false,
'backendName' => 'tasks',
],
],
],
'ListConcurrencyConfigsOutput' => [
- 'title' => '',
+ 'title' => '获取函数的并发配置列表信息',
'description' => 'The concurrency configurations of the function.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'configs' => [
- 'title' => '',
+ 'title' => '并发配置列表',
'description' => 'The list of concurrency configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The concurrency configuration.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/ConcurrencyConfig',
- ],
+ 'items' => ['description' => 'The concurrency configuration.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/ConcurrencyConfig'],
'required' => false,
'backendName' => 'configs',
],
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. If this parameter is not returned, all the concurrency configurations are returned.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- 'backendName' => 'nextToken',
- ],
+ 'nextToken' => ['title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. If this parameter is not returned, all the concurrency configurations are returned.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'nextToken'],
],
],
'ListCustomDomainOutput' => [
- 'title' => '',
+ 'title' => '获取自定义域名列表的响应信息',
'description' => 'The information about the response that is returned to obtain custom domain names.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'customDomains' => [
- 'title' => '',
+ 'title' => '自定义域名列表',
'description' => 'The custom domain names.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The details of the custom domain name.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'items' => ['description' => 'The details of the custom domain name.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/CustomDomain'],
'required' => false,
'backendName' => 'customDomains',
],
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_domain_name',
- 'backendName' => 'nextToken',
- ],
+ 'nextToken' => ['title' => '当符合查询条件的数据未读取完时,服务端会返回nextToken,此时可以使用nextToken继续读取后面的数据。第一次查询不需要提供这个参数。', 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_domain_name', 'backendName' => 'nextToken'],
],
],
'ListFunctionsOutput' => [
- 'title' => '',
+ 'title' => '获取函数列表响应信息',
'description' => 'The information about the response to functions.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'functions' => [
- 'title' => '',
+ 'title' => '函数信息列表',
'description' => 'The information about functions.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The Information about the function.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Function',
- ],
+ 'items' => ['description' => 'The Information about the function.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Function'],
'required' => false,
'backendName' => 'functions',
],
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_function_name',
- 'backendName' => 'nextToken',
- ],
+ 'nextToken' => ['title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_function_name', 'backendName' => 'nextToken'],
],
],
'ListInstancesOutput' => [
- 'title' => 'The instances.'."\n",
- 'description' => 'public',
- 'visibility' => 'Public',
+ 'title' => '查询返回的实例信息列表',
+ 'description' => 'List of instance information returned by the query.',
'type' => 'object',
'properties' => [
'instances' => [
- 'title' => 'The information of the instance.'."\n",
- 'description' => 'public',
- 'visibility' => 'Public',
+ 'title' => '实例列表信息',
+ 'description' => 'List of instance information.',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/InstanceInfo',
- ],
+ 'items' => ['description' => 'Instance information.', '$ref' => '#/components/schemas/InstanceInfo', 'title' => '', 'example' => '', 'visibility' => 'Public', 'extendType' => 'true'],
'required' => false,
- 'backendName' => 'instances',
- ],
- 'requestId' => [
+ 'example' => '',
'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'requestId',
+ 'backendName' => 'instances',
],
+ 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => '', 'visibility' => 'Public', 'backendName' => 'requestId'],
],
+ 'example' => '',
+ 'visibility' => 'Public',
],
'ListLayersOutput' => [
- 'title' => '',
+ 'title' => '获取层列表',
'description' => 'The information about layers.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'layers' => [
- 'title' => '',
+ 'title' => '层的列表。',
'description' => 'The layers.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The information about the layer.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Layer',
- ],
+ 'items' => ['description' => 'The information about the layer.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Layer'],
'required' => false,
'backendName' => 'layers',
],
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The name of the start layer for the next query, which is also the token used to obtain more results.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next-layer-name',
- 'backendName' => 'nextToken',
- ],
+ 'nextToken' => ['title' => '剩余列表的起始层名,用来返回更多结果。', 'description' => 'The name of the start layer for the next query, which is also the token used to obtain more results.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next-layer-name', 'backendName' => 'nextToken'],
],
],
'ListLayerVersionOutput' => [
- 'title' => '',
+ 'title' => '获取指定层的版本列表',
'description' => 'The configurations of getting versions of the specified layer.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'layers' => [
- 'title' => '',
+ 'title' => '层版本的列表。',
'description' => 'The list of layer versions.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The layer version.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Layer',
- ],
+ 'items' => ['description' => 'The layer version.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Layer'],
'required' => false,
'backendName' => 'layers',
],
- 'nextVersion' => [
- 'title' => '',
- 'description' => 'The next version, which is used to return more results.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- 'backendName' => 'nextVersion',
- ],
+ 'nextVersion' => ['title' => '剩余列表的起始版本名,用来返回更多结果。', 'description' => 'The next version, which is used to return more results.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'backendName' => 'nextVersion'],
],
],
'ListProvisionConfigsOutput' => [
- 'title' => '',
+ 'title' => '获取函数预留配置信息',
'description' => 'The information about provisioned configurations of the function.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- 'backendName' => 'nextToken',
- ],
+ 'nextToken' => ['title' => '下次查询的起始Token。如果这个值没有返回,则说明没有更多结果。', 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'nextToken'],
'provisionConfigs' => [
- 'title' => '',
+ 'title' => '函数预留配置',
'description' => 'The provisioned configurations of the function.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The information about the provisioned configuration.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/ProvisionConfig',
- ],
+ 'items' => ['description' => 'The information about the provisioned configuration.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/ProvisionConfig'],
'required' => false,
'backendName' => 'provisionConfigs',
],
],
],
- 'ListSessionsOutput' => [
- 'title' => '',
- 'description' => 'The list of function sessions.'."\n",
- 'visibility' => 'Public',
+ 'ListScalingConfigsOutput' => [
'type' => 'object',
'properties' => [
- 'nextToken' => [
+ 'nextToken' => ['description' => 'Paging token for the next request.', 'type' => 'string', 'title' => '', 'example' => 'next_token'],
+ 'scalingConfigs' => [
+ 'type' => 'array',
+ 'items' => ['description' => 'Function scaling configuration information', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/ScalingConfigStatus'],
+ 'description' => 'Function scaling configuration information',
'title' => '',
- 'description' => 'The starting position for the next session list query.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'MTIzNCNhYmM=',
- 'backendName' => 'nextToken',
+ 'example' => '',
],
+ ],
+ 'description' => 'Scaling configuration list',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ListSessionsOutput' => [
+ 'title' => '函数会话列表',
+ 'description' => 'The list of function sessions.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'nextToken' => ['title' => '下一次查询会话列表的起始位置。', 'description' => 'The starting position for the next session list query.'."\n", 'type' => 'string', 'example' => 'MTIzNCNhYmM='],
'sessions' => [
- 'title' => '',
+ 'title' => '会话列表信息',
'description' => 'The list of sessions.',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'title' => '',
- 'description' => 'The session.',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Session',
- ],
- 'backendName' => 'sessions',
+ 'items' => ['title' => '函数会话列表', 'description' => 'The session.', '$ref' => '#/components/schemas/Session', 'example' => ''],
+ 'example' => '',
],
],
+ 'example' => '',
],
'ListTaggedResourcesOutput' => [
- 'title' => '',
+ 'title' => '具有指定标签的资源列表',
'description' => 'The information about the tagged resources.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- 'backendName' => 'nextToken',
- ],
+ 'nextToken' => ['title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'nextToken'],
'resources' => [
- 'title' => '',
+ 'title' => '被打标签的资源列表。',
'description' => 'The tagged resources.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The information about the resource.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Resource',
- ],
+ 'items' => ['description' => 'The information about the resource.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Resource'],
'required' => false,
'backendName' => 'resources',
],
],
],
'ListTagResourcesOutput' => [
- 'title' => '',
+ 'title' => '查询绑定指定标签的资源信息',
'description' => 'Queries the information about the resources to which a specified tag is bound.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'NextToken' => [
- 'title' => '',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- 'backendName' => 'NextToken',
- ],
- 'RequestId' => [
- 'title' => 'TODO',
- 'description' => 'The request ID.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'xxx',
- 'backendName' => 'RequestId',
- ],
+ 'NextToken' => ['title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'NextToken'],
+ 'RequestId' => ['title' => 'TODO', 'description' => 'The request ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'xxx', 'backendName' => 'RequestId'],
'TagResources' => [
- 'title' => '',
+ 'title' => '被打标签的资源列表。',
'description' => 'The information about the queried resources and tags.'."\n",
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The resource and tag information, including the resource ID, resource type, and tag key.'."\n",
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/TagResource',
- ],
+ 'items' => ['description' => 'The resource and tag information, including the resource ID, resource type, and tag key.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/TagResource'],
'required' => false,
'backendName' => 'TagResources',
],
],
],
- 'ListTriggersOutput' => [
- 'title' => '',
- 'description' => 'The information about the response struct to obtain triggers.'."\n",
- 'visibility' => 'public',
+ 'ListTimedResidentResourcePoolApplicationsOutput' => [
'type' => 'object',
'properties' => [
- 'nextToken' => [
+ 'nextToken' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'applications' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/TimedResidentResourcePoolApplication', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
'title' => '',
- 'description' => 'The name of the next trigger. The pagination token that is used in the next request to retrieve a new page of results. If this parameter is not returned, all the layers are returned.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- 'backendName' => 'nextToken',
+ 'example' => '',
],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ListTriggersOutput' => [
+ 'title' => '获取触发器列表的响应结构体',
+ 'description' => 'The information about the response struct to obtain triggers.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'nextToken' => ['title' => '下一个触发器的名称。用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'description' => 'The name of the next trigger. The pagination token that is used in the next request to retrieve a new page of results. If this parameter is not returned, all the layers are returned.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'nextToken'],
'triggers' => [
- 'title' => '',
+ 'title' => '触发器列表',
'description' => 'The triggers.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The information about the trigger.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Trigger',
- ],
+ 'items' => ['description' => 'The information about the trigger.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Trigger'],
'required' => false,
'backendName' => 'triggers',
],
],
],
'ListVersionsOutput' => [
- 'title' => '',
+ 'title' => '列出版本的请求参数',
'description' => 'The request parameters for listing versions.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'direction' => [
- 'title' => '',
- 'description' => 'The sorting method of versions.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'FORWARD',
- 'backendName' => 'direction',
- ],
- 'nextToken' => [
- 'title' => '',
- 'description' => 'The ID of the next version.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '3',
- 'backendName' => 'nextToken',
- ],
+ 'direction' => ['title' => '版本排序方式', 'description' => 'The sorting method of versions.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'FORWARD', 'backendName' => 'direction'],
+ 'nextToken' => ['title' => '下一个版本ID', 'description' => 'The ID of the next version.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '3', 'backendName' => 'nextToken'],
'versions' => [
- 'title' => '',
+ 'title' => '版本ID列表',
'description' => 'The version IDs.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The version information.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Version',
- ],
+ 'items' => ['description' => 'The version information.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Version'],
'required' => false,
'backendName' => 'versions',
],
],
],
'ListVpcBindingsOutput' => [
- 'title' => '',
+ 'title' => '列出服务/函数下的全部 vpc binding 的请求参数',
'description' => 'The request parameters for listing all virtual private cloud (VPC) bindings of a service or function.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'vpcIds' => [
- 'title' => '',
+ 'title' => 'VPC实例ID列表',
'description' => 'The VPC IDs.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'VPC ID'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'vpc-8vb8x8dggvr0axxxxxxxx',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'VPC ID'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'vpc-8vb8x8dggvr0axxxxxxxx', 'extendType' => 'true'],
'required' => false,
'backendName' => 'vpcIds',
],
],
],
'LogConfig' => [
- 'title' => '',
- 'description' => 'The function log configurations.'."\n",
- 'visibility' => 'public',
+ 'title' => '函数日志配置',
+ 'description' => 'The log configuration for the function.',
'type' => 'object',
'properties' => [
- 'enableInstanceMetrics' => [
- 'title' => '',
- 'description' => 'Specifies whether to enable the collection of instance-level metrics. If you enable this feature, you can view core metrics, such as CPU utilization, memory usage, network conditions of instances, and the number of requests that an instance concurrently processes. Valid values: false: disables the collection of instance-level metrics. This is the default value. true: enables the collection of instance-level metrics.'."\n",
- 'visibility' => 'public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'enableInstanceMetrics',
- ],
- 'enableRequestMetrics' => [
- 'title' => '',
- 'description' => 'Specifies whether to enable request-level metrics. If you enable this feature, you can view the amount of time and memory consumed for a specific invocation of each function in the service. Valid values: false: disables request-level metrics. true: enables request-level metrics. This is the default value.'."\n",
- 'visibility' => 'public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'enableRequestMetrics',
- ],
- 'logBeginRule' => [
- 'title' => '',
- 'description' => 'The log segmentation rule.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DefaultRegex',
- 'backendName' => 'logBeginRule',
- ],
- 'logstore' => [
- 'title' => '',
- 'description' => 'The name of the Logstore of Simple Log Service.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-logstore',
- 'maxLength' => 63,
- 'backendName' => 'logstore',
- ],
- 'project' => [
- 'title' => '',
- 'description' => 'The name of the project in Simple Log Service.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-project',
- 'maxLength' => 63,
- 'backendName' => 'project',
- ],
+ 'enableInstanceMetrics' => ['title' => '是否开启实例级别指标。开启该功能后,您可以查看实例级别的CPU使用情况、内存使用情况、实例网络情况和实例内请求数等核心指标信息。false:默认值,表示关闭实例级别指标。true:表示开启实例级别指标。', 'description' => 'Specifies whether to enable instance-level metrics. When this feature is enabled, you can view core metrics for each instance, such as CPU usage, memory usage, network conditions, and the number of requests. The default value is \\`false\\`, which disables instance-level metrics. Set the value to \\`true\\` to enable them.', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'enableRequestMetrics' => ['title' => '是否开启请求级别指标。开启该功能后,您可以查看该服务下所有函数的某次调用所消耗的时间及内存。false:表示关闭请求级别指标。true:默认值,表示开启请求级别指标。', 'description' => 'Specifies whether to enable request-level metrics. When this feature is enabled, you can view the time and memory consumed by each function invocation in the service. The default value is \\`true\\`, which enables request-level metrics. Set the value to \\`false\\` to disable them.', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'logBeginRule' => ['title' => '日志行首匹配规则', 'description' => 'The rule for matching the first line of a log entry.', 'type' => 'string', 'required' => false, 'example' => 'DefaultRegex'],
+ 'logstore' => ['title' => '日志服务的Logstore名称。', 'description' => 'The name of the Logstore in Simple Log Service.', 'type' => 'string', 'required' => false, 'example' => 'test-logstore', 'maxLength' => 63],
+ 'project' => ['title' => '日志服务的Project名称', 'description' => 'The name of the Project in Simple Log Service.', 'type' => 'string', 'required' => false, 'example' => 'test-project', 'maxLength' => 63],
+ 'enableLlmMetrics' => ['title' => '是否开启LLM指标。开启该功能后,您可以查看LLM指标信息,建议只对LLM推理服务开启。false:默认值,表示关闭LLM指标。true:表示开启LLM指标。', 'type' => 'boolean', 'description' => '', 'example' => '', 'default' => 'false'],
],
+ 'example' => '',
],
- 'MCPSSESessionAffinityConfig' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
+ 'MicroSandboxConfig' => [
'type' => 'object',
'properties' => [
- 'sseEndpointPath' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '/sse',
- 'backendName' => 'sseEndpointPath',
- ],
- 'sessionConcurrencyPerInstance' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '20',
- 'backendName' => 'sessionConcurrencyPerInstance',
- ],
+ 'osType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'startCommand' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'readyCommand' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
- ],
- 'MCPStreamableSessionAffinityConfig' => [
- 'title' => '',
'description' => '',
- 'visibility' => 'Public',
- 'type' => 'object',
- 'properties' => [
- 'sessionTTLInSeconds' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- 'backendName' => 'sessionTTLInSeconds',
- ],
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- 'backendName' => 'sessionIdleTimeoutInSeconds',
- ],
- 'sessionConcurrencyPerInstance' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '20',
- 'backendName' => 'sessionConcurrencyPerInstance',
- ],
- ],
+ 'title' => '',
+ 'example' => '',
],
'MNSTopicTriggerConfig' => [
- 'title' => '',
+ 'title' => 'MNS 主题触发器配置',
'description' => 'Simple Message Queue (formerly MNS) topic trigger configurations.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'filterTag' => [
- 'title' => '',
- 'description' => 'The filtering tag. Function execution is triggered only when a message that contains the specified filter tag is received.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'serverless',
- 'backendName' => 'filterTag',
- ],
- 'notifyContentFormat' => [
- 'title' => '',
- 'description' => 'The format of the event content. The following two formats are supported:'."\n"
- ."\n"
- .'* **JSON**'."\n"
- .'* **STREAM**'."\n"
- ."\n"
- .'> The default format is STREAM.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'JSON',
- 'backendName' => 'notifyContentFormat',
- ],
- 'notifyStrategy' => [
- 'title' => '',
- 'description' => 'The retry policy.'."\n"
- ."\n"
- .'* **BACKOFF_RETRY**: a backoff retry policy. A total of 3 retries are made. The interval between 2 retries is a random value between 10 and 20 seconds. This is the default value.'."\n"
- .'* **EXPONENTIAL_DECAY_RETRY**: an exponential decay retry policy. A total of 176 retries are made, with the interval of each retry increases exponentially to 512 seconds, and the total retry period is 1 day. The interval between two consecutive retries exponentially increases to a maximum of 512 seconds. For example, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512... 512. The number of 512s is 167.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'BACKOFF_RETRY',
- 'backendName' => 'notifyStrategy',
- ],
+ 'filterTag' => ['title' => '过滤标签。只有收到包含了此处设置的过滤标签字符串的消息时,才会触发函数执行。', 'description' => 'The filtering tag. Function execution is triggered only when a message that contains the specified filter tag is received.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'serverless', 'backendName' => 'filterTag'],
+ 'notifyContentFormat' => ['title' => '触发事件的内容格式。有 JSON 与 STREAM 两种格式,默认为 STREAM', 'description' => 'The format of the event content. The following two formats are supported:'."\n"
+ ."\n"
+ .'* **JSON**'."\n"
+ .'* **STREAM**'."\n"
+ ."\n"
+ .'> The default format is STREAM.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'JSON', 'backendName' => 'notifyContentFormat'],
+ 'notifyStrategy' => ['title' => '重试策略。BACKOFF_RETRY:表示退避重试;重试3次,每次重试的间隔时间是10秒到20秒之间的随机值,默认值。EXPONENTIAL_DECAY_RETRY:表示指数衰减重试;重试176次,每次重试的间隔时间指数递增至512秒,总计重试时间为1天。每次重试的具体间隔为:1,2,4,8,16,32,64,128,256,512,512...512 (共167个512)。', 'description' => 'The retry policy.'."\n"
+ ."\n"
+ .'* **BACKOFF_RETRY**: a backoff retry policy. A total of 3 retries are made. The interval between 2 retries is a random value between 10 and 20 seconds. This is the default value.'."\n"
+ .'* **EXPONENTIAL_DECAY_RETRY**: an exponential decay retry policy. A total of 176 retries are made, with the interval of each retry increases exponentially to 512 seconds, and the total retry period is 1 day. The interval between two consecutive retries exponentially increases to a maximum of 512 seconds. For example, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512... 512. The number of 512s is 167.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'BACKOFF_RETRY', 'backendName' => 'notifyStrategy'],
],
],
'NASConfig' => [
- 'title' => '',
+ 'title' => 'NAS配置',
'description' => 'The information about the configurations of the File Storage NAS (NAS) file system.',
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'groupId' => [
- 'title' => '',
- 'description' => 'The group ID.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- 'backendName' => 'groupId',
- ],
+ 'groupId' => ['title' => '群组ID。', 'description' => 'The group ID.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'backendName' => 'groupId'],
'mountPoints' => [
- 'title' => '',
+ 'title' => '挂载点列表。',
'description' => 'The mount targets.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The information about the mount target.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/NASMountConfig',
- ],
+ 'items' => ['description' => 'The information about the mount target.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/NASMountConfig'],
'required' => false,
'maxItems' => 5,
'backendName' => 'mountPoints',
],
- 'userId' => [
- 'title' => '',
- 'description' => 'The account ID.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- 'backendName' => 'userId',
- ],
+ 'userId' => ['title' => '账号ID。', 'description' => 'The account ID.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'backendName' => 'userId'],
],
],
'NASMountConfig' => [
- 'title' => '',
+ 'title' => 'NAS挂载点列表',
'description' => 'The information about the File Storage NAS (NAS) mount targets.',
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'enableTLS' => [
- 'title' => '',
- 'description' => 'Specifies whether to use the Transport Layer Security (TLS) protocol to secure data transmission. Note: Only General-purpose NAS supports transmission encryption.'."\n",
- 'visibility' => 'public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'enableTLS',
- ],
- 'mountDir' => [
- 'title' => '',
- 'description' => 'The local mount directory.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/home/test',
- 'maxLength' => 64,
- 'backendName' => 'mountDir',
- ],
- 'serverAddr' => [
- 'title' => '',
- 'description' => 'The address of a NAS server.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '***-uni85.cn-hangzhou.nas.com:/',
- 'maxLength' => 128,
- 'backendName' => 'serverAddr',
- ],
+ 'enableTLS' => ['title' => '使用传输加密方式挂载。 说明:仅通用型NAS支持传输加密', 'description' => 'Specifies whether to use the Transport Layer Security (TLS) protocol to secure data transmission. Note: Only General-purpose NAS supports transmission encryption.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'enableTLS'],
+ 'mountDir' => ['title' => '本地挂载目录。', 'description' => 'The local mount directory.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '/home/test', 'maxLength' => 64, 'backendName' => 'mountDir'],
+ 'serverAddr' => ['title' => 'NAS服务器地址。', 'description' => 'The address of a NAS server.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '***-uni85.cn-hangzhou.nas.com:/', 'maxLength' => 128, 'backendName' => 'serverAddr'],
],
],
'OSSMountConfig' => [
- 'title' => '',
+ 'title' => 'OSS挂载配置',
'description' => 'The mount configurations of Object Storage Service (OSS).'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'mountPoints' => [
- 'title' => '',
+ 'title' => 'OSS挂载点配置。',
'description' => 'The OSS mount targets.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The configurations of the OSS mount target.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/OSSMountPoint',
- ],
+ 'items' => ['description' => 'The configurations of the OSS mount target.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/OSSMountPoint'],
'required' => false,
'maxItems' => 5,
'backendName' => 'mountPoints',
@@ -3804,2882 +1657,1134 @@
],
],
'OSSMountPoint' => [
- 'title' => '',
+ 'title' => 'OSS挂载点配置',
'description' => 'OSS mount target configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'bucketName' => [
- 'title' => '',
- 'description' => 'The OSS bucket that you want to mount.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-bucket',
- 'maxLength' => 64,
- 'minLength' => 3,
- 'backendName' => 'bucketName',
- ],
- 'bucketPath' => [
- 'title' => '',
- 'description' => 'The path of the mounted OSS bucket.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/my-dir',
- 'maxLength' => 128,
- 'backendName' => 'bucketPath',
- ],
- 'endpoint' => [
- 'title' => '',
- 'description' => 'The OSS endpoint.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://oss-cn-shanghai.aliyuncs.com',
- 'maxLength' => 128,
- 'backendName' => 'endpoint',
- ],
- 'mountDir' => [
- 'title' => '',
- 'description' => 'The mount directory.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/mnt/dir',
- 'maxLength' => 64,
- 'minLength' => 2,
- 'backendName' => 'mountDir',
- ],
- 'readOnly' => [
- 'title' => '',
- 'description' => 'Specifies whether it is read-only.'."\n",
- 'visibility' => 'public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'readOnly',
- ],
+ 'bucketName' => ['title' => '挂载的OSS Bucket。', 'description' => 'The OSS bucket that you want to mount.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my-bucket', 'maxLength' => 64, 'minLength' => 3, 'backendName' => 'bucketName'],
+ 'bucketPath' => ['title' => '挂载的OSS Bucket路径。', 'description' => 'The path of the mounted OSS bucket.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '/my-dir', 'maxLength' => 128, 'backendName' => 'bucketPath'],
+ 'endpoint' => ['title' => 'OSS访问地址。', 'description' => 'The OSS endpoint.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'http://oss-cn-shanghai.aliyuncs.com', 'maxLength' => 128, 'backendName' => 'endpoint'],
+ 'mountDir' => ['title' => '挂载目录。', 'description' => 'The mount directory.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '/mnt/dir', 'maxLength' => 64, 'minLength' => 2, 'backendName' => 'mountDir'],
+ 'readOnly' => ['title' => '是否只读。', 'description' => 'Specifies whether it is read-only.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'readOnly'],
],
],
'OSSTriggerConfig' => [
- 'title' => '',
+ 'title' => 'OSS 触发器配置',
'description' => 'The OSS trigger configurations.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'events' => [
- 'title' => '',
+ 'title' => '事件列表,请填写OSS对象存储相关的事件。事件类型请参考:https://help.aliyun.com/zh/fc/overview-of-oss-event-triggers?spm=a2c4g.11186623.0.i174',
'description' => 'The list of events. Enter an event related to OSS. For more information about event types,see [OSS events](~~2513613~~).',
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The name of the event type. The name of the event type can contain wildcard characters. For more information about event types, see [OSS events](~~2513613~~).',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'oss:ObjectCreated:*',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The name of the event type. The name of the event type can contain wildcard characters. For more information about event types, see [OSS events](~~2513613~~).', 'visibility' => 'Public', 'type' => 'string', 'example' => 'oss:ObjectCreated:*', 'extendType' => 'true'],
'required' => false,
'backendName' => 'events',
],
- 'filter' => [
- 'title' => '',
- 'description' => 'The event filtering rule.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'filter',
- '$ref' => '#/components/schemas/Filter',
- ],
+ 'filter' => ['title' => '事件过滤规则', 'description' => 'The event filtering rule.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'filter', '$ref' => '#/components/schemas/Filter'],
],
],
'OutputCodeLocation' => [
- 'title' => '',
+ 'title' => '代码包配置',
'description' => 'The code package configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'location' => [
- 'title' => '',
- 'description' => 'The address of the code package.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx',
- 'backendName' => 'location',
- ],
- 'repositoryType' => [
- 'title' => '',
- 'description' => 'The type of the code package.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OSS',
- 'backendName' => 'repositoryType',
- ],
+ 'location' => ['title' => '代码包的地址。', 'description' => 'The address of the code package.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx', 'backendName' => 'location'],
+ 'repositoryType' => ['title' => '代码包的类型。', 'description' => 'The type of the code package.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'OSS', 'backendName' => 'repositoryType'],
],
],
'OutputFuncCode' => [
- 'title' => '',
+ 'title' => '函数代码包信息',
'description' => 'The information about the function code package.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'checksum' => [
- 'title' => '',
- 'description' => 'The CRC-64 value of the function code package.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1234567890',
- 'backendName' => 'checksum',
- ],
- 'url' => [
- 'title' => '',
- 'description' => 'The URL of the function code package.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f',
- 'backendName' => 'url',
- ],
+ 'checksum' => ['title' => '函数代码包的CRC64值。', 'description' => 'The CRC-64 value of the function code package.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1234567890', 'backendName' => 'checksum'],
+ 'url' => ['title' => '函数代码包的URL。', 'description' => 'The URL of the function code package.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f', 'backendName' => 'url'],
],
],
'PathConfig' => [
- 'title' => '',
+ 'title' => '自定义域名路由配置',
'description' => 'The custom domain name configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'functionName' => [
- 'title' => '',
- 'description' => 'The name of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'myFunction',
- 'backendName' => 'functionName',
- ],
+ 'functionName' => ['title' => '函数名', 'description' => 'The name of the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'myFunction', 'backendName' => 'functionName'],
'methods' => [
- 'title' => '',
+ 'title' => '支持的方法',
'description' => 'The supported methods.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The HTTP method. The following methods are supported: HEAD, GET, POST, PUT, DELETE, PATCH, and OPTIONS.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'GET',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The HTTP method. The following methods are supported: HEAD, GET, POST, PUT, DELETE, PATCH, and OPTIONS.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'GET', 'extendType' => 'true'],
'required' => false,
'backendName' => 'methods',
],
- 'path' => [
- 'title' => '',
- 'description' => 'The route matching rule.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/api/*',
- 'maxLength' => 2048,
- 'backendName' => 'path',
- ],
- 'qualifier' => [
- 'title' => '',
- 'description' => 'The version or alias.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'myAlias',
- 'backendName' => 'qualifier',
- ],
- 'rewriteConfig' => [
- 'title' => '',
- 'description' => 'The rewrite configuration.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'rewriteConfig',
- '$ref' => '#/components/schemas/RewriteConfig',
- ],
+ 'path' => ['title' => '路由匹配规则', 'description' => 'The route matching rule.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/api/*', 'maxLength' => 2048, 'backendName' => 'path'],
+ 'qualifier' => ['title' => '版本或者别名', 'description' => 'The version or alias.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'myAlias', 'backendName' => 'qualifier'],
+ 'rewriteConfig' => ['title' => '重写配置', 'description' => 'The rewrite configuration.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'rewriteConfig', '$ref' => '#/components/schemas/RewriteConfig'],
],
],
'PolarFsConfig' => [
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'groupId' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- 'backendName' => 'groupId',
- ],
- 'userId' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- 'backendName' => 'userId',
- ],
+ 'groupId' => ['description' => 'The group ID.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'userId' => ['description' => 'The account ID.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'mountPoints' => [
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The mount points.',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/PolarFsMountConfig',
- ],
- 'backendName' => 'mountPoints',
+ 'items' => ['description' => '挂载点信息。', '$ref' => '#/components/schemas/PolarFsMountConfig', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PolarFsMountConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'instanceId' => ['description' => 'The ID of the PolarFS file system instance to mount.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'mountDir' => ['description' => 'The local mount directory in the function\'s runtime environment.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'remoteDir' => ['description' => 'The directory within the PolarFS file system to mount.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'readOnly' => ['title' => '只读挂载', 'description' => 'Specifies whether the file system is mounted as read-only. If `true`, write operations are prohibited.', 'type' => 'boolean', 'example' => ''],
+ ],
+ 'description' => 'Specifies the configuration for mounting a PolarFS file system.',
+ 'title' => '',
+ 'example' => '',
],
'ProvisionConfig' => [
- 'title' => 'The actual number of provisioned instances.'."\n",
+ 'title' => '函数预留配置',
'description' => 'public',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'scheduledActions' => [
- 'title' => 'Specifies whether to always allocate CPU resources to function instances.'."\n",
+ 'title' => '定时策略配置。',
'description' => 'public',
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'Specifies whether to always allocate GPU resources to function instances.'."\n",
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/ScheduledAction',
- ],
+ 'items' => ['description' => 'Specifies whether to always allocate GPU resources to function instances.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/ScheduledAction'],
'required' => false,
'backendName' => 'scheduledActions',
],
- 'currentError' => [
- 'title' => 'The configurations of metric-based auto scaling.'."\n",
- 'description' => 'public',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'image not found',
- 'backendName' => 'currentError',
- ],
- 'defaultTarget' => [
- 'title' => 'The metric-based auto scaling policy.'."\n",
- 'description' => 'public',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '5',
- 'backendName' => 'defaultTarget',
- ],
- 'current' => [
- 'title' => 'The Alibaba Cloud Resource Name (ARN) of the function.'."\n",
- 'description' => 'public',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'current',
- ],
- 'alwaysAllocateCPU' => [
- 'title' => 'acs:fc:cn-shanghai:124:functions/myFunction',
- 'description' => 'The target number of provisioned instances at the current time. If a metric-based or scheduled auto scaling policy is in effect, the value of this parameter is the number of provisioned instances as calculated by the policy. Otherwise, the value is the default number of provisioned instances when all auto scaling policies become invalid.'."\n"
- ."\n"
- .'> Comparison between this parameter and defaultTarget\\'."\n"
- .'Assume that after the number of provisioned instances is set to 1, a scheduled auto scaling policy is added, and this auto scaling policy increases the number of provisioned instances during a specified time period to 5.'."\n"
- ."\n"
- .'* During the time period when the scheduled policy **takes effect**, the value of the target parameter is 5, while the value of the defaultTarget parameter is 1.'."\n"
- ."\n"
- .'* When the scheduled policy **is ineffective**, both the target value and defaultTarget value are 1.'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'alwaysAllocateCPU',
- ],
- 'alwaysAllocateGPU' => [
- 'title' => 'public',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'alwaysAllocateGPU',
- ],
+ 'currentError' => ['title' => '预留实例创建失败时的错误信息。', 'description' => 'public', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'image not found', 'backendName' => 'currentError'],
+ 'defaultTarget' => ['title' => '所有指标追踪伸缩策略和定时策略失效时的默认资源个数。', 'description' => 'public', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '5', 'backendName' => 'defaultTarget'],
+ 'current' => ['title' => '实际资源个数。', 'description' => 'public', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'backendName' => 'current'],
+ 'alwaysAllocateCPU' => ['title' => '是否始终分配CPU给函数实例。', 'description' => 'The target number of provisioned instances at the current time. If a metric-based or scheduled auto scaling policy is in effect, the value of this parameter is the number of provisioned instances as calculated by the policy. Otherwise, the value is the default number of provisioned instances when all auto scaling policies become invalid.'."\n"
+ ."\n"
+ .'> Comparison between this parameter and defaultTarget\\'."\n"
+ .'Assume that after the number of provisioned instances is set to 1, a scheduled auto scaling policy is added, and this auto scaling policy increases the number of provisioned instances during a specified time period to 5.'."\n"
+ ."\n"
+ .'* During the time period when the scheduled policy **takes effect**, the value of the target parameter is 5, while the value of the defaultTarget parameter is 1.'."\n"
+ ."\n"
+ .'* When the scheduled policy **is ineffective**, both the target value and defaultTarget value are 1.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'alwaysAllocateCPU'],
+ 'alwaysAllocateGPU' => ['title' => '是否始终分配GPU给函数实例。', 'description' => '是否始终分配GPU给函数实例。', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'alwaysAllocateGPU'],
'targetTrackingPolicies' => [
- 'title' => '',
- 'description' => '',
+ 'title' => '指标追踪伸缩策略配置。',
+ 'description' => '指标追踪伸缩策略配置。',
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/TargetTrackingPolicy',
- ],
+ 'items' => ['description' => '指标追踪策略。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/TargetTrackingPolicy'],
'required' => false,
'backendName' => 'targetTrackingPolicies',
],
- 'functionArn' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:124:functions/myFunction/prod',
- 'backendName' => 'functionArn',
- ],
- 'target' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '5',
- 'backendName' => 'target',
- ],
+ 'functionArn' => ['title' => '函数的资源描述', 'description' => '函数的资源描述', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:124:functions/myFunction/prod', 'backendName' => 'functionArn'],
+ 'target' => ['title' => '当前目标资源个数,如果存在指标追踪伸缩策略或定时策略,为策略计算的资源个数,否则为默认预留实例数', 'description' => '当前目标资源个数,如果存在指标追踪伸缩策略或定时策略,为策略计算的资源个数,否则为默认预留实例数。'."\n"
+ ."\n\n"
+ .'> 与 defaultTarget 有什么区别?\\'."\n"
+ .'> 假设配置预留实例数为1后,新增了定时伸缩策略,设置某个时间段内的预留实例数为5。'."\n"
+ .'> - 在定时伸缩策略**生效期间**,target 与 defaultTarget 分别为 5 和 1。'."\n"
+ .'>- 在定时伸缩策略**失效期间**,target 与 defaultTarget 都为 1。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '5', 'backendName' => 'target'],
],
],
'PublishVersionInput' => [
- 'title' => '',
+ 'title' => '发布版本的请求参数',
'description' => 'The request parameters of publishing versions.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the layer version.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my version',
- 'maxLength' => 256,
- 'backendName' => 'description',
- ],
+ 'description' => ['title' => '版本描述信息', 'description' => 'The description of the layer version.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my version', 'maxLength' => 256, 'backendName' => 'description'],
],
],
'PutAsyncInvokeConfigInput' => [
- 'title' => '',
+ 'title' => '函数异步配置信息',
'description' => 'The asynchronous invocation configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'asyncTask' => [
- 'title' => '',
- 'description' => 'Optional. Specify whether to enable the asynchronous task feature.'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'asyncTask',
- ],
- 'destinationConfig' => [
- 'title' => '',
- 'description' => 'Optional. The struct of the destination of asynchronous invocations.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'destinationConfig',
- '$ref' => '#/components/schemas/DestinationConfig',
- ],
- 'maxAsyncEventAgeInSeconds' => [
- 'title' => '',
- 'description' => 'Optional. The maximum validity period of a message. Valid values: \\[1,604800]. Default value: 86400. Unit: seconds.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '300',
- 'backendName' => 'maxAsyncEventAgeInSeconds',
- ],
- 'maxAsyncRetryAttempts' => [
- 'title' => '',
- 'description' => 'Optional. The maximum number of retries if an asynchronous invocation fails. Valid values: \\[0,8]. If you do not configure this parameter, the default number of retries is 3.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '3',
- 'backendName' => 'maxAsyncRetryAttempts',
- ],
+ 'asyncTask' => ['title' => '是否开启异步任务(非必填)', 'description' => 'Optional. Specify whether to enable the asynchronous task feature.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'asyncTask'],
+ 'destinationConfig' => ['title' => '异步调用目标的配置结构体(非必填)。', 'description' => 'Optional. The struct of the destination of asynchronous invocations.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'destinationConfig', '$ref' => '#/components/schemas/DestinationConfig'],
+ 'maxAsyncEventAgeInSeconds' => ['title' => '消息最大存活时长(非必填),取值范围[1,2592000]。单位:秒。', 'description' => 'Optional. The maximum validity period of a message. Valid values: \\[1,604800]. Default value: 86400. Unit: seconds.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '300', 'backendName' => 'maxAsyncEventAgeInSeconds'],
+ 'maxAsyncRetryAttempts' => ['title' => '异步调用失败后的最大重试次数,非必填。取值范围[0,8]。当您未进行配置时,系统内部默认重试次数为3。', 'description' => 'Optional. The maximum number of retries if an asynchronous invocation fails. Valid values: \\[0,8]. If you do not configure this parameter, the default number of retries is 3.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3', 'backendName' => 'maxAsyncRetryAttempts'],
],
],
'PutConcurrencyInput' => [
- 'title' => '',
+ 'title' => '设置函数的并发配置',
'description' => 'The function concurrency configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'reservedConcurrency' => [
- 'title' => '',
- 'description' => 'The reserved concurrency of the function. Other functions cannot use the concurrency. The reserved concurrency includes the total concurrency of provisioned instances and on-demand instances.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '10',
- 'backendName' => 'reservedConcurrency',
- ],
+ 'reservedConcurrency' => ['title' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。', 'description' => 'The reserved concurrency of the function. Other functions cannot use the concurrency. The reserved concurrency includes the total concurrency of provisioned instances and on-demand instances.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10', 'backendName' => 'reservedConcurrency'],
],
],
'PutProvisionConfigInput' => [
- 'title' => 'public',
+ 'title' => '申请或更新预留资源的配置',
'description' => 'Specify whether to always allocate GPUs. Default value: true.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'scheduledActions' => [
- 'title' => 'The configurations of metric-based auto scaling.'."\n",
+ 'title' => '定时策略配置。',
'description' => 'public',
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The metric-based auto scaling policy.'."\n",
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/ScheduledAction',
- ],
+ 'items' => ['description' => 'The metric-based auto scaling policy.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/ScheduledAction'],
'required' => false,
'backendName' => 'scheduledActions',
],
- 'defaultTarget' => [
- 'title' => 'public',
- 'description' => 'The number of target provisioned instances. Valid values: \\[0,10000].'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '5',
- 'nullable' => true,
- 'backendName' => 'defaultTarget',
- ],
- 'alwaysAllocateCPU' => [
- 'title' => 'public',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'alwaysAllocateCPU',
- ],
- 'alwaysAllocateGPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'alwaysAllocateGPU',
- ],
+ 'defaultTarget' => ['title' => '预留的默认目标资源个数,没有指标追踪伸缩策略或定时策略生效时使用,取值范围为[0,10000]。', 'description' => 'The number of target provisioned instances. Valid values: \\[0,10000].'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '5', 'nullable' => true, 'backendName' => 'defaultTarget'],
+ 'alwaysAllocateCPU' => ['title' => '是否始终分配CPU,默认为true。', 'description' => '是否始终分配CPU,默认为true。', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'alwaysAllocateCPU'],
+ 'alwaysAllocateGPU' => ['title' => '是否始终分配GPU,默认为true。', 'description' => '是否始终分配GPU,默认为true。', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'alwaysAllocateGPU'],
'targetTrackingPolicies' => [
- 'title' => '',
- 'description' => '',
+ 'title' => '指标追踪伸缩策略配置。',
+ 'description' => '指标追踪伸缩策略配置。',
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/TargetTrackingPolicy',
- ],
+ 'items' => ['description' => '指标追踪策略。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/TargetTrackingPolicy'],
'required' => false,
'backendName' => 'targetTrackingPolicies',
],
- 'target' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'deprecated' => true,
- 'required' => true,
- 'example' => '1',
- 'nullable' => true,
- 'backendName' => 'target',
- ],
+ 'target' => ['title' => '预留的目标资源个数。取值范围为[0,10000]。', 'description' => '><notice>建议不再使用该参数,请使用 defaultTarget 参数。 </notice>'."\n"
+ .'预留的目标资源个数。取值范围为[0,10000]。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'required' => true, 'example' => '1', 'nullable' => true, 'backendName' => 'target'],
],
],
'PutScalingConfigInput' => [
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'residentPoolId' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'fc-pool-a2b664c1f87171j4******',
- 'backendName' => 'residentPoolId',
- ],
- 'minInstances' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- 'backendName' => 'minInstances',
- ],
- 'enableOnDemandScaling' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'True',
- 'backendName' => 'enableOnDemandScaling',
- ],
+ 'residentPoolId' => ['description' => 'The ID of the resident resource pool.', 'type' => 'string', 'example' => 'fc-pool-a2b664c1f87171j4******', 'title' => ''],
+ 'minInstances' => ['description' => 'The minimum number of instances.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'enableOnDemandScaling' => ['description' => 'Specifies whether to enable on-demand scaling.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
'scheduledPolicies' => [
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/ScheduledPolicy',
- ],
- 'backendName' => 'scheduledPolicies',
+ 'items' => ['description' => 'A scheduled elastic policy.', '$ref' => '#/components/schemas/ScheduledPolicy', 'title' => '', 'example' => ''],
+ 'description' => 'The scheduled elastic policies.',
+ 'title' => '',
+ 'example' => '',
],
'horizontalScalingPolicies' => [
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/ScalingPolicy',
- ],
- 'backendName' => 'horizontalScalingPolicies',
- ],
- 'enableMixMode' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'False',
- 'backendName' => 'enableMixMode',
- ],
- 'requestDispatchPolicy' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Balanced',
- 'backendName' => 'requestDispatchPolicy',
+ 'items' => ['description' => 'A horizontal scaling policy.', '$ref' => '#/components/schemas/ScalingPolicy', 'title' => '', 'example' => ''],
+ 'description' => 'The horizontal scaling policies.',
+ 'title' => '',
+ 'example' => '',
],
+ 'enableMixMode' => ['description' => 'Specifies whether to enable the mix mode.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
+ 'requestDispatchPolicy' => ['description' => 'The request dispatch policy.', 'type' => 'string', 'example' => 'Balanced', 'title' => ''],
],
+ 'description' => 'The elastic scaling configuration of the function.',
+ 'title' => '',
+ 'example' => '',
],
'RegexRule' => [
- 'title' => '',
+ 'title' => '自定义域名正则重写规则配置',
'description' => 'The regex rewrite configurations for custom domain names.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'match' => [
- 'title' => '',
- 'description' => 'The matching rule.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '^/api/.+?/(.*)',
- 'maxLength' => 256,
- 'backendName' => 'match',
- ],
- 'replacement' => [
- 'title' => '',
- 'description' => 'The replacement rule.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/api/v2/$1',
- 'maxLength' => 256,
- 'backendName' => 'replacement',
- ],
+ 'match' => ['title' => '匹配规则', 'description' => 'The matching rule.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '^/api/.+?/(.*)', 'maxLength' => 256, 'backendName' => 'match'],
+ 'replacement' => ['title' => '替换规则', 'description' => 'The replacement rule.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/api/v2/$1', 'maxLength' => 256, 'backendName' => 'replacement'],
],
],
'RegistryAuthConfig' => [
- 'title' => 'The username that is used to log on to the image repository.'."\n",
+ 'title' => '镜像仓库的认证信息',
'description' => 'The authentication credentials for the image repository.',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'password' => [
- 'title' => '',
- 'description' => 'The image repository password.',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'abc***',
- 'backendName' => 'password',
- 'sensitive' => true,
- ],
- 'userName' => [
- 'title' => '',
- 'description' => 'The image repository username.',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'admin',
- 'backendName' => 'userName',
- ],
+ 'password' => ['title' => '镜像仓库密码', 'description' => 'The image repository password.', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'abc***', 'backendName' => 'password', 'sensitive' => true],
+ 'userName' => ['title' => '镜像仓库用户名', 'description' => 'The image repository username.', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'admin', 'backendName' => 'userName'],
],
],
'RegistryCertConfig' => [
- 'title' => '',
+ 'title' => '镜像仓库的证书信息',
'description' => 'The certificate information of the image repository.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'insecure' => [
- 'title' => '',
- 'description' => 'Whether to skip certificate verification.'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'backendName' => 'insecure',
- ],
- 'rootCaCertBase64' => [
- 'title' => '',
- 'description' => 'The certificate authority (CA) certificate of the image repository.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cm9vdF9jYV9jZXJ0',
- 'backendName' => 'rootCaCertBase64',
- ],
+ 'insecure' => ['title' => '是否跳过证书验证', 'description' => 'Whether to skip certificate verification.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'backendName' => 'insecure'],
+ 'rootCaCertBase64' => ['title' => '镜像仓库CA证书', 'description' => 'The certificate authority (CA) certificate of the image repository.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cm9vdF9jYV9jZXJ0', 'backendName' => 'rootCaCertBase64'],
],
],
'RegistryConfig' => [
'title' => '',
- 'description' => 'The configurations of the image repository.'."\n",
- 'visibility' => 'Public',
+ 'description' => 'The configuration of the image repository.',
'type' => 'object',
'properties' => [
- 'authConfig' => [
- 'title' => 'TODO',
- 'description' => 'The permission authentication configurations.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'authConfig',
- '$ref' => '#/components/schemas/RegistryAuthConfig',
- ],
- 'certConfig' => [
- 'title' => 'TODO',
- 'description' => 'The certificate configurations.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'certConfig',
- '$ref' => '#/components/schemas/RegistryCertConfig',
- ],
- 'networkConfig' => [
- 'title' => 'TODO',
- 'description' => 'The network settings.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'networkConfig',
- '$ref' => '#/components/schemas/RegistryNetworkConfig',
- ],
+ 'authConfig' => ['title' => '', 'description' => 'The authentication configuration.', 'required' => false, '$ref' => '#/components/schemas/RegistryAuthConfig', 'example' => ''],
+ 'certConfig' => ['title' => '', 'description' => 'The certificate configuration.', 'required' => false, '$ref' => '#/components/schemas/RegistryCertConfig', 'example' => ''],
+ 'networkConfig' => ['title' => '', 'description' => 'The network configuration.', 'required' => false, '$ref' => '#/components/schemas/RegistryNetworkConfig', 'example' => ''],
],
+ 'example' => '',
],
'RegistryNetworkConfig' => [
- 'title' => '',
+ 'title' => '镜像仓库的网络信息',
'description' => 'The network information of the image repository.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'securityGroupId' => [
- 'title' => '',
- 'description' => 'The ID of the security group that can be used to connect to the image repository.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sg-xxxxxxxxxxxxxx',
- 'backendName' => 'securityGroupId',
+ 'securityGroupId' => ['title' => '可以连通镜像仓库的SecurityGroup ID', 'description' => 'The ID of the security group that can be used to connect to the image repository.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'sg-xxxxxxxxxxxxxx', 'backendName' => 'securityGroupId'],
+ 'vSwitchId' => ['title' => '可以连通镜像仓库的VSwitch ID', 'description' => 'The ID of the vSwitch that can be used to connect to the image repository.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vsw-xxxxxxxxxxxxxx', 'backendName' => 'vSwitchId'],
+ 'vpcId' => ['title' => '可以连通镜像仓库的VPC ID', 'description' => 'The ID of the virtual private cloud (VPC) that can be used to connect to the image repository.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vpc-xxxxxxxxxxxxxx', 'backendName' => 'vpcId'],
+ ],
+ ],
+ 'ResidentResourceAllocation' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'functionName' => [
+ 'title' => '函数名', 'description' => '使用该资源池的函数名', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'hasServerDefaultValue' => false, 'backendName' => 'functionName', 'sensitive' => false,
+ 'extMonitorInfo' => false, 'descriptionEn' => 'The name of function using this resource pool', 'example' => '',
],
- 'vSwitchId' => [
- 'title' => '',
- 'description' => 'The ID of the vSwitch that can be used to connect to the image repository.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vsw-xxxxxxxxxxxxxx',
- 'backendName' => 'vSwitchId',
+ 'qualifier' => [
+ 'title' => '函数的别名', 'description' => '函数的别名', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'hasServerDefaultValue' => false, 'backendName' => 'qualifier', 'sensitive' => false,
+ 'extMonitorInfo' => false, 'descriptionEn' => 'Alias of functions', 'example' => '',
],
- 'vpcId' => [
- 'title' => '',
- 'description' => 'The ID of the virtual private cloud (VPC) that can be used to connect to the image repository.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc-xxxxxxxxxxxxxx',
- 'backendName' => 'vpcId',
+ 'instanceCount' => [
+ 'title' => '实例数', 'description' => '实例数', 'type' => 'integer', 'format' => 'int32', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'hasServerDefaultValue' => false, 'backendName' => 'instanceCount',
+ 'sensitive' => false, 'extMonitorInfo' => false, 'descriptionEn' => 'Number of instances', 'example' => '',
+ ],
+ 'totalCpuCores' => [
+ 'title' => 'CPU 占用总核数', 'description' => 'CPU 占用总核数', 'type' => 'number', 'format' => 'double', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'hasServerDefaultValue' => false, 'backendName' => 'totalCpuCores',
+ 'sensitive' => false, 'extMonitorInfo' => false, 'descriptionEn' => 'Total number of used CPU cores', 'example' => '',
+ ],
+ 'totalMemorySize' => [
+ 'title' => '内存占用大小', 'description' => '内存占用大小,单位 GB', 'type' => 'number', 'format' => 'double', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'hasServerDefaultValue' => false, 'backendName' => 'totalMemorySize',
+ 'sensitive' => false, 'extMonitorInfo' => false, 'descriptionEn' => 'Total number of used memory, in GB', 'example' => '',
+ ],
+ 'totalGpuMemorySize' => [
+ 'title' => '占用显存大小', 'description' => '占用显存大小,单位 GB', 'type' => 'number', 'format' => 'double', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'hasServerDefaultValue' => false, 'backendName' => 'totalGpuMemorySize',
+ 'sensitive' => false, 'extMonitorInfo' => false, 'descriptionEn' => 'Total number of used GPU Memory, in GB', 'example' => '',
],
+ 'totalDiskSize' => [
+ 'title' => '占用磁盘大小', 'description' => '占用磁盘大小,单位 GB', 'type' => 'number', 'format' => 'double', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'hasServerDefaultValue' => false, 'backendName' => 'totalDiskSize',
+ 'sensitive' => false, 'extMonitorInfo' => false, 'descriptionEn' => 'Total number of used disk size, in GB', 'example' => '',
+ ],
+ 'instanceType' => ['type' => 'string', 'backendName' => 'instanceType', 'description' => '', 'title' => '', 'example' => ''],
],
- ],
- 'Resource' => [
+ 'description' => '',
'title' => '',
- 'description' => 'The details of the resource tags.'."\n",
- 'visibility' => 'public',
+ 'example' => '',
+ ],
+ 'ResidentResourceAllocationStatus' => [
'type' => 'object',
'properties' => [
- 'resouceType' => [
- 'title' => '',
- 'description' => 'The name of the resource type. Valid values: ALIYUN::FC::FUNCTION and ALIYUN::FC::SERVICE. The former name is used in Function Compute 3.0, and the latter name is used in earlier versions of Function Compute.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ALIYUN::FC::FUNCTION',
- 'backendName' => 'resouceType',
- ],
- 'resourceArn' => [
+ 'lastAllocatedTime' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'lastAllocation' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ResidentResourceAllocation', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
'title' => '',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:****:functions/demo',
- 'backendName' => 'resourceArn',
+ 'example' => '',
],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ResidentResourceCapacity' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'totalGpuCards' => ['title' => 'GPU总卡数', 'description' => 'GPU总卡数', 'type' => 'integer', 'format' => 'int64', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'totalMemorySize' => ['title' => '总内存大小', 'description' => '总内存大小,单位 GB', 'type' => 'integer', 'format' => 'int64', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'totalDiskSize' => ['title' => '总磁盘大小', 'description' => '总磁盘大小,单位 GB', 'type' => 'integer', 'format' => 'int64', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'totalGpuMemorySize' => ['title' => '总显存大小', 'description' => '总显存大小,单位 GB', 'type' => 'integer', 'format' => 'int64', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'totalCpuCores' => ['title' => 'CPU 总核数', 'description' => 'CPU 总核数', 'type' => 'integer', 'format' => 'int64', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'gpuType' => ['title' => 'GPU 卡型', 'description' => 'GPU 卡型', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ ],
+ ],
+ 'ResidentResourcePool' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'residentResourcePoolName' => ['title' => '', 'description' => 'The resource property field that represents the resource name.', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => false, 'default' => '', 'example' => ''],
+ 'createdTime' => ['title' => '', 'description' => 'The resource property field that represents the creation time.', 'type' => 'string', 'format' => 'iso8601', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'example' => ''],
+ 'allocationStatus' => ['title' => '', 'description' => 'The real-time allocation status of the resource pool, including the specific allocation details for each function.', 'deprecated' => false, 'readOnly' => true, '$ref' => '#/components/schemas/ResidentResourceAllocationStatus', 'example' => ''],
+ 'lastModifiedTime' => ['title' => '', 'description' => 'The last modification time, including operations such as scaling, renewal, and renaming.', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'example' => ''],
+ 'expireTime' => ['title' => '', 'description' => 'The expiration time of the resource pool.', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => '', 'example' => ''],
+ 'resourcePoolCapacity' => ['title' => '', 'description' => 'The overall specifications of the resource pool.', 'deprecated' => false, 'readOnly' => true, '$ref' => '#/components/schemas/ResidentResourceCapacity', 'example' => ''],
+ 'resourcePoolConfig' => ['deprecated' => false, '$ref' => '#/components/schemas/ResidentResourceCapacity', 'description' => '', 'title' => '', 'example' => ''],
+ 'residentResourcePoolId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'poolType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'associatedPoolId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'timedConfig' => ['$ref' => '#/components/schemas/TimedPoolConfig', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Resource' => [
+ 'title' => '资源标签信息',
+ 'description' => 'The resource tag information.',
+ 'type' => 'object',
+ 'properties' => [
+ 'resouceType' => ['title' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。', 'description' => 'The name of the resource type. For a function in Function Compute 3.0, use ALIYUN::FC::FUNCTION. For a service in an earlier version of Function Compute, use ALIYUN::FC::SERVICE.', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN::FC::FUNCTION'],
+ 'resourceArn' => ['title' => '阿里云资源描述符。', 'description' => 'The Alibaba Cloud resource descriptor.', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:****:functions/demo'],
'tags' => [
- 'title' => '',
- 'description' => 'The tag dictionary.'."\n",
- 'visibility' => 'public',
+ 'title' => '标签字典。取值说明如下:key:表示标签键,value:表示标签值。',
+ 'description' => 'The tag dictionary.',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'value1',
- 'description' => '',
- ],
- 'backendName' => 'tags',
+ 'additionalProperties' => ['type' => 'string', 'example' => 'value1', 'description' => '', 'title' => ''],
+ 'example' => '',
],
],
+ 'example' => '',
],
'RetryStrategy' => [
- 'title' => '',
+ 'title' => 'EventBridge 触发器的重试策略配置',
'description' => 'The information about the retry policy that is used if the event fails to be pushed.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'PushRetryStrategy' => [
- 'title' => '',
- 'description' => 'The retry policy. Valid values:'."\n"
- ."\n"
- .'* **BACKOFF_RETRY**: retries with a fixed backoff interval.'."\n"
- .'* **EXPONENTIAL_DECAY_RETRY**: retries with exponential backoff.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'BACKOFF_RETRY',
- 'backendName' => 'PushRetryStrategy',
- ],
+ 'PushRetryStrategy' => ['title' => '重试策略。BACKOFF_RETRY:退避重试。EXPONENTIAL_DECAY_RETRY:指数衰减重试。', 'description' => 'The retry policy. Valid values:'."\n"
+ ."\n"
+ .'* **BACKOFF_RETRY**: retries with a fixed backoff interval.'."\n"
+ .'* **EXPONENTIAL_DECAY_RETRY**: retries with exponential backoff.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'BACKOFF_RETRY', 'backendName' => 'PushRetryStrategy'],
],
],
'RewriteConfig' => [
- 'title' => '',
+ 'title' => '重写规则配置',
'description' => 'Configurations of rewrite rules.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'equalRules' => [
- 'title' => '',
+ 'title' => '精确匹配规则列表',
'description' => 'The exact match rules.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The exact match rule.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/EqualRule',
- ],
+ 'items' => ['description' => 'The exact match rule.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/EqualRule'],
'required' => false,
'backendName' => 'equalRules',
],
'regexRules' => [
- 'title' => '',
+ 'title' => '正则匹配规则列表',
'description' => 'The regex matching rules.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The regex matching rule.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/RegexRule',
- ],
+ 'items' => ['description' => 'The regex matching rule.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/RegexRule'],
'required' => false,
'backendName' => 'regexRules',
],
'wildcardRules' => [
- 'title' => '',
+ 'title' => '通配匹配规则列表',
'description' => 'The wildcard matching rules.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The wildcard matching rule.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/WildcardRule',
- ],
+ 'items' => ['description' => 'The wildcard matching rule.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/WildcardRule'],
'required' => false,
'backendName' => 'wildcardRules',
],
],
],
'RouteConfig' => [
- 'title' => '',
+ 'title' => '路由匹配规则配置',
'description' => 'The information about the configurations of the route matching rule.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'routes' => [
- 'title' => '',
+ 'title' => '路由配置列表',
'description' => 'The route configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The route configuration.'."\n",
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/PathConfig',
- ],
+ 'items' => ['description' => 'The route configuration.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/PathConfig'],
'required' => false,
'backendName' => 'routes',
],
],
],
'RunOptions' => [
- 'title' => '',
+ 'title' => 'EventBridge 触发器运行环境参数配置',
'description' => 'The runtime configurations of the EventBridge-based trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'batchWindow' => [
- 'title' => '',
- 'description' => 'The batch window configurations.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'batchWindow',
- '$ref' => '#/components/schemas/BatchWindow',
- ],
- 'deadLetterQueue' => [
- 'title' => '',
- 'description' => 'Whether to enable dead-letter queues. If you configure this parameter, dead-letter queues are enabled. By default, dead-letter queues are not enabled and messages are discarded when the retry policy is exhausted. Queues of Simple Message Queue (formerly MNS), ApsaraMQ for RocketMQ, and ApsaraMQ for Kafka, and EventBridge event buses can be used as dead-letter queues.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'deadLetterQueue',
- '$ref' => '#/components/schemas/DeadLetterQueue',
- ],
- 'errorsTolerance' => [
- 'title' => '',
- 'description' => 'The fault tolerance policy. Valid values:'."\n"
- ."\n"
- .'* **NONE**: does not tolerate exceptions.'."\n"
- .'* **ALL**: tolerates all exceptions.'."\n"
- ."\n"
- .'> The default value is **NONE**.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ALL',
- 'backendName' => 'errorsTolerance',
- ],
- 'mode' => [
- 'title' => '',
- 'description' => 'The underlying application mode when message data is pushed to Function Compute. Valid values:'."\n"
- ."\n"
- .'* **event-streaming**: the event streaming mode. In this mode, events are pushed in arrays. One or more message events are pushed to the function in batches based on your push configurations. This mode is suitable for end-to-end streaming data processing scenarios. The event streaming mode supports the following event sources: Simple Message Queue (formerly MNS), ApsaraMQ for RocketMQ, ApsaraMQ for RabbitMQ, ApsaraMQ for Kafka, ApsaraMQ for MQTT, and Data Transmission Service (DTS).'."\n"
- .'* **event-driven**: the event mode. In event mode, a single message is passed to the function as event parameters at a time. Events follow the CloudEvents specifications. The event mode supports the following event sources: Default, Simple Message Queue (formerly MNS), ApsaraMQ for RocketMQ, and ApsaraMQ for RabbitMQ. In this mode, batch configurations are not supported.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'event-streaming',
- 'backendName' => 'mode',
- ],
- 'retryStrategy' => [
- 'title' => '',
- 'description' => 'The retry policy that you want to use if events fail to be pushed.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'retryStrategy',
- '$ref' => '#/components/schemas/RetryStrategy',
- ],
+ 'batchWindow' => ['title' => '攒批窗口配置。', 'description' => 'The batch window configurations.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'batchWindow', '$ref' => '#/components/schemas/BatchWindow'],
+ 'deadLetterQueue' => ['title' => '是否启用死信队列。配置该参数即为启用死信队列,默认不启用死信队列,超过重试策略后的消息将被丢弃。支持配置消息服务 MNS、云消息队列 RocketMQ 版、消息队列 Kafka 版以及事件总线 EventBridge。', 'description' => 'Whether to enable dead-letter queues. If you configure this parameter, dead-letter queues are enabled. By default, dead-letter queues are not enabled and messages are discarded when the retry policy is exhausted. Queues of Simple Message Queue (formerly MNS), ApsaraMQ for RocketMQ, and ApsaraMQ for Kafka, and EventBridge event buses can be used as dead-letter queues.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'deadLetterQueue', '$ref' => '#/components/schemas/DeadLetterQueue'],
+ 'errorsTolerance' => ['title' => '异常容忍策略。NONE:不容忍异常,默认值。ALL:容忍所有异常。', 'description' => 'The fault tolerance policy. Valid values:'."\n"
+ ."\n"
+ .'* **NONE**: does not tolerate exceptions.'."\n"
+ .'* **ALL**: tolerates all exceptions.'."\n"
+ ."\n"
+ .'> The default value is **NONE**.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'ALL', 'backendName' => 'errorsTolerance'],
+ 'mode' => ['title' => '消息数据推送到函数计算时的底层应用模式。event-streaming:事件流模式,按照数组格式推送事件,会根据用户推送配置将一个或多个消息事件以批的形式推送到函数中进行处理,适合端到端的流式数据处理场景,该模式下支持的事件源类型有 MNS、RocketMQ、RabbitMQ、Kafka、MQTT 以及 DTS。event-driven:事件模式,每次会将单个消息作为事件参数传入函数中,事件遵循CloudEvents规范,,该模式下支持的事件源有 Default、MNS、RocketMQ 以及 RabbitMQ,注意:该模式下,不支持攒批配置。', 'description' => 'The underlying application mode when message data is pushed to Function Compute. Valid values:'."\n"
+ ."\n"
+ .'* **event-streaming**: the event streaming mode. In this mode, events are pushed in arrays. One or more message events are pushed to the function in batches based on your push configurations. This mode is suitable for end-to-end streaming data processing scenarios. The event streaming mode supports the following event sources: Simple Message Queue (formerly MNS), ApsaraMQ for RocketMQ, ApsaraMQ for RabbitMQ, ApsaraMQ for Kafka, ApsaraMQ for MQTT, and Data Transmission Service (DTS).'."\n"
+ .'* **event-driven**: the event mode. In event mode, a single message is passed to the function as event parameters at a time. Events follow the CloudEvents specifications. The event mode supports the following event sources: Default, Simple Message Queue (formerly MNS), ApsaraMQ for RocketMQ, and ApsaraMQ for RabbitMQ. In this mode, batch configurations are not supported.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'event-streaming', 'backendName' => 'mode'],
+ 'retryStrategy' => ['title' => '事件推送失败时的重试策略。', 'description' => 'The retry policy that you want to use if events fail to be pushed.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'retryStrategy', '$ref' => '#/components/schemas/RetryStrategy'],
],
],
'ScalingConfigStatus' => [
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'functionArn' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'acs:fc:cn-shanghai:124:functions/myFunction/prod',
- 'backendName' => 'functionArn',
- ],
- 'residentPoolId' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'fc-pool-a2b664c1f87171j4******',
- 'backendName' => 'residentPoolId',
- ],
- 'minInstances' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- 'backendName' => 'qualifier',
- ],
- 'currentInstances' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- 'backendName' => 'currentInstances',
- ],
- 'currentError' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'image not found',
- 'backendName' => 'currentError',
- ],
- 'targetInstances' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- 'backendName' => 'targetInstances',
- ],
- 'enableOnDemandScaling' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'True',
- 'backendName' => 'enableOnDemandScaling',
- ],
+ 'functionArn' => ['description' => 'The resource identifier of the function.', 'type' => 'string', 'example' => 'acs:fc:cn-shanghai:124:functions/myFunction/prod', 'title' => ''],
+ 'residentPoolId' => ['description' => 'The ID of the resident resource pool.', 'type' => 'string', 'example' => 'fc-pool-a2b664c1f87171j4******', 'title' => ''],
+ 'minInstances' => ['description' => 'The minimum number of instances.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'currentInstances' => ['description' => 'The current number of instances.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'currentError' => ['description' => 'The error message that is returned when an instance fails to be created.', 'type' => 'string', 'example' => 'image not found', 'title' => ''],
+ 'targetInstances' => ['description' => 'The target number of instances.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''],
+ 'enableOnDemandScaling' => ['description' => 'Specifies whether on-demand scaling is enabled.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
'scheduledPolicies' => [
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/ScheduledPolicy',
- ],
- 'backendName' => 'residentConfig',
+ 'items' => ['description' => 'The scheduled scaling policy.', '$ref' => '#/components/schemas/ScheduledPolicy', 'title' => '', 'example' => ''],
+ 'description' => 'The scheduled scaling policies.',
+ 'title' => '',
+ 'example' => '',
],
'horizontalScalingPolicies' => [
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/ScalingPolicy',
- ],
- 'backendName' => 'horizontalScalingPolicies',
- ],
- 'enableMixMode' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'False',
- 'backendName' => 'enableMixMode',
- ],
- 'requestDispatchPolicy' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Balanced',
- 'backendName' => 'requestDispatchPolicy',
+ 'items' => ['description' => 'The horizontal scaling policy.', '$ref' => '#/components/schemas/ScalingPolicy', 'title' => '', 'example' => ''],
+ 'description' => 'The horizontal scaling policies.',
+ 'title' => '',
+ 'example' => '',
],
+ 'enableMixMode' => ['description' => 'Specifies whether mix mode is enabled.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
+ 'requestDispatchPolicy' => ['description' => 'The request dispatch policy.', 'type' => 'string', 'example' => 'Balanced', 'title' => ''],
],
+ 'description' => 'The elastic scaling configuration of the function.',
+ 'title' => '',
+ 'example' => '',
],
'ScalingPolicy' => [
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'name' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'test',
- 'backendName' => 'name',
- ],
- 'startTime' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2023-03-10T10:10:10Z',
- 'backendName' => 'startTime',
- ],
- 'endTime' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2024-03-10T10:10:10Z',
- 'backendName' => 'endTime',
- ],
- 'metricType' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'CPUUtilization',
- 'backendName' => 'metricType',
- ],
- 'metricTarget' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.6',
- 'backendName' => 'metricTarget',
- ],
- 'minInstances' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- 'backendName' => 'minInstances',
- ],
- 'maxInstances' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- 'backendName' => 'maxInstances',
- ],
- 'timeZone' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Asia/Shanghai',
- 'backendName' => 'timeZone',
- ],
- ],
+ 'name' => ['description' => 'The name of the policy.', 'type' => 'string', 'title' => '', 'example' => 'test'],
+ 'startTime' => ['description' => 'The time when the policy takes effect.', 'type' => 'string', 'title' => '', 'example' => '2023-03-10T10:10:10Z'],
+ 'endTime' => ['description' => 'The time when the policy expires.', 'type' => 'string', 'title' => '', 'example' => '2024-03-10T10:10:10Z'],
+ 'metricType' => ['description' => 'The type of metric to track. ProvisionedConcurrencyUtilization is the concurrency utilization of provisioned instances. CPUUtilization is the CPU utilization. GPUMemUtilization is the GPU memory utilization.', 'type' => 'string', 'title' => '', 'example' => 'CPUUtilization'],
+ 'metricTarget' => ['description' => 'The target value for the metric.', 'type' => 'number', 'title' => '', 'example' => '0.6', 'format' => 'float'],
+ 'minInstances' => ['description' => 'The minimum number of instances.', 'type' => 'integer', 'title' => '', 'example' => '1', 'format' => 'int64'],
+ 'maxInstances' => ['description' => 'The maximum number of instances.', 'type' => 'integer', 'title' => '', 'example' => '10', 'format' => 'int64'],
+ 'timeZone' => ['description' => 'The time zone. If this parameter is empty, the times for startTime, endTime, and scheduleExpression must be in Coordinated Universal Time (UTC).', 'type' => 'string', 'title' => '', 'example' => 'Asia/Shanghai'],
+ ],
+ 'description' => 'A horizontal scaling policy.',
+ 'title' => '',
+ 'example' => '',
],
'ScheduledAction' => [
- 'title' => '',
+ 'title' => '定时策略配置',
'description' => 'The configurations of scheduled auto scaling.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'endTime' => [
- 'title' => '',
- 'description' => 'The time when the policy expires.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-03-10T10:10:10Z',
- 'backendName' => 'endTime',
- ],
- 'name' => [
- 'title' => '',
- 'description' => 'The policy name.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_1',
- 'backendName' => 'name',
- ],
- 'scheduleExpression' => [
- 'title' => '',
- 'description' => 'The schedule expression.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cron(0 0 22 * * *)',
- 'backendName' => 'scheduleExpression',
- ],
- 'startTime' => [
- 'title' => '',
- 'description' => 'The time when the policy takes effect.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-10T10:10:10Z',
- 'backendName' => 'startTime',
- ],
- 'target' => [
- 'title' => '',
- 'description' => 'The number of target provisioned instances.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '50',
- 'backendName' => 'target',
- ],
- 'timeZone' => [
- 'title' => '',
- 'description' => 'The time zone. If the time zone parameter is empty, the value of startTime, endTime, and scheduleExpression must be in UTC format.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Asia/Shanghai',
- 'backendName' => 'timeZone',
- ],
+ 'endTime' => ['title' => '策略失效时间。', 'description' => 'The time when the policy expires.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2024-03-10T10:10:10Z', 'backendName' => 'endTime'],
+ 'name' => ['title' => '策略名称。', 'description' => 'The policy name.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'test_1', 'backendName' => 'name'],
+ 'scheduleExpression' => ['title' => '定时配置。', 'description' => 'The schedule expression.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'cron(0 0 22 * * *)', 'backendName' => 'scheduleExpression'],
+ 'startTime' => ['title' => '策略生效时间。', 'description' => 'The time when the policy takes effect.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2023-03-10T10:10:10Z', 'backendName' => 'startTime'],
+ 'target' => ['title' => '预留的目标资源个数。', 'description' => 'The number of target provisioned instances.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50', 'backendName' => 'target'],
+ 'timeZone' => ['title' => '时区。时区参数为空时,startTime、endTime和scheduleExpression的时间需为UTC格式。', 'description' => 'The time zone. If the time zone parameter is empty, the value of startTime, endTime, and scheduleExpression must be in UTC format.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'Asia/Shanghai', 'backendName' => 'timeZone'],
],
],
'ScheduledPolicy' => [
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'name' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'student_app_shop_analyzer',
- 'backendName' => 'name',
- ],
- 'startTime' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '1764432000000',
- 'backendName' => 'startTime',
- ],
- 'endTime' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '1633449590000',
- 'backendName' => 'endTime',
- ],
- 'target' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '5',
- 'backendName' => 'target',
- ],
- 'scheduleExpression' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '。',
- 'backendName' => 'scheduleExpression',
- ],
- 'timeZone' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '。',
- 'backendName' => 'timeZone',
- ],
- ],
+ 'name' => ['description' => 'The policy name.', 'type' => 'string', 'title' => '', 'example' => 'student_app_shop_analyzer'],
+ 'startTime' => ['description' => 'The start time.', 'type' => 'string', 'title' => '', 'example' => '1764432000000'],
+ 'endTime' => ['description' => 'The end time.', 'type' => 'string', 'title' => '', 'example' => '1633449590000'],
+ 'target' => ['description' => 'The current number of target resources. If a metric-based auto scaling policy or a scheduled policy is in effect, this parameter specifies the number of resources calculated by the policy. Otherwise, this parameter specifies the default number of provisioned instances.'."\n"
+ ."\n"
+ .'> How is this different from defaultTarget?<br>'."\n"
+ .'> Assume that you set the number of provisioned instances to 1 and then add a scheduled auto scaling policy to set the number to 5 for a specific time period.<br>'."\n"
+ .'>'."\n"
+ .'> - When the scheduled policy is active, target is 5 and defaultTarget is 1.'."\n"
+ .'>'."\n"
+ .'> - When the scheduled policy is inactive, both target and defaultTarget are 1.', 'type' => 'integer', 'title' => '', 'example' => '5', 'format' => 'int64'],
+ 'scheduleExpression' => ['description' => 'The schedule configuration.', 'type' => 'string', 'title' => '', 'example' => '。'],
+ 'timeZone' => ['description' => 'The time zone. If this parameter is left empty, the times for startTime, endTime, and scheduleExpression must be in UTC format.', 'type' => 'string', 'title' => '', 'example' => '。'],
+ ],
+ 'description' => 'The policy.',
+ 'title' => '',
+ 'example' => '',
],
'Session' => [
'title' => '',
- 'description' => 'The session information.'."\n",
- 'visibility' => 'Public',
+ 'description' => 'The session information.',
'type' => 'object',
'properties' => [
- 'sessionId' => [
- 'title' => '',
- 'description' => 'The unique identifier of the function session.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '81f70ae156904eb9b7d43e12f511fe58',
- 'backendName' => 'sessionId',
- ],
- 'functionName' => [
- 'title' => '',
- 'description' => 'The name of the function to which the session belongs.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'functionName1',
- 'backendName' => 'functionName',
- ],
- 'sessionAffinityType' => [
- 'title' => '',
- 'description' => 'The session affinity type.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'HEADER_FIELD',
- 'backendName' => 'sessionAffinityType',
- ],
- 'sessionTTLInSeconds' => [
- 'title' => '',
- 'description' => 'The maximum session lifecycle.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- 'backendName' => 'sessionTTLInSeconds',
- ],
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => '',
- 'description' => 'The timeout period for idle sessions.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- 'backendName' => 'sessionIdleTimeoutInSeconds',
- ],
- 'createdTime' => [
- 'title' => '',
- 'description' => 'The time when the session was created.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2025-04-01T08:15:27Z',
- 'backendName' => 'createdTime',
- ],
- 'lastModifiedTime' => [
- 'title' => '',
- 'description' => 'The time when the session was last updated.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2025-04-01T18:15:27Z',
- 'backendName' => 'lastModifiedTime',
- ],
- 'sessionStatus' => [
- 'title' => '',
- 'description' => 'The session status, which can be either Active (session is valid) or Expired (session has expired).'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Active',
- 'backendName' => 'sessionStatus',
- ],
- 'containerId' => [
- 'title' => '',
- 'description' => 'The ID of the function instance associated with the session.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'c-68999e02-16a1955c-d2a03d1ccs',
- 'backendName' => 'containerId',
- ],
- 'qualifier' => [
- 'title' => '',
- 'description' => 'The qualifier specified when creating a session. If not provided, the default value is LATEST.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'AliasName1',
- 'backendName' => 'qualifier',
- ],
- 'nasConfig' => [
- 'description' => 'The File Storage NAS (NAS) configuration. Once configured, the instance associated with the session can access designated NAS resources.',
- 'visibility' => 'Public',
- 'backendName' => 'nasConfig',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- ],
+ 'sessionId' => ['title' => '', 'description' => 'The unique identifier of the function session.', 'type' => 'string', 'example' => '81f70ae156904eb9b7d43e12f511fe58'],
+ 'functionName' => ['title' => '', 'description' => 'The name of the function to which the session belongs.', 'type' => 'string', 'example' => 'functionName1'],
+ 'sessionAffinityType' => ['title' => '', 'description' => 'The session affinity type.', 'type' => 'string', 'example' => 'HEADER_FIELD'],
+ 'sessionTTLInSeconds' => ['title' => '', 'description' => 'The maximum lifetime of the session.', 'type' => 'integer', 'format' => 'int64', 'example' => '21600'],
+ 'sessionIdleTimeoutInSeconds' => ['title' => '', 'description' => 'The idle timeout period of the session.', 'type' => 'integer', 'format' => 'int64', 'example' => '1800'],
+ 'createdTime' => ['title' => '', 'description' => 'The time when the session was created.', 'type' => 'string', 'example' => '2025-04-01T08:15:27Z'],
+ 'lastModifiedTime' => ['title' => '', 'description' => 'The time when the session was last updated.', 'type' => 'string', 'example' => '2025-04-01T18:15:27Z'],
+ 'sessionStatus' => ['title' => '', 'description' => 'The session status. Valid values:'."\n"
+ .'- Active: The session is valid.'."\n"
+ .'- Expired: The session has expired.', 'type' => 'string', 'example' => 'Active'],
+ 'containerId' => ['title' => '', 'description' => 'The instance ID of the function instance associated with the session.', 'type' => 'string', 'example' => 'c-68999e02-16a1955c-d2a03d1ccs'],
+ 'qualifier' => ['title' => '', 'description' => 'The qualifier passed in when the customer created the session. If not specified, the default value is LATEST.', 'type' => 'string', 'example' => 'AliasName1'],
+ 'nasConfig' => ['description' => 'The NAS configuration. After configuration, the instance associated with the session can access the specified NAS resource.', '$ref' => '#/components/schemas/NASConfig', 'title' => '', 'example' => ''],
+ 'disableSessionIdReuse' => ['title' => '', 'description' => 'Specifies whether to disable session ID reuse. Default value: False, which indicates that after the session expires, you can use the same session ID to initiate requests. The system treats the request as a new session and binds it to a new instance. If you set this parameter to True, the session ID cannot be reused after the session expires.', 'type' => 'boolean', 'example' => 'false'],
+ 'ossMountConfig' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'polarFsConfig' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => '', 'description' => '', 'example' => '', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'enableAutoPause' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ 'enableAutoResume' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
],
'SLSTriggerConfig' => [
- 'title' => '',
+ 'title' => 'SLS 触发器配置',
'description' => 'The configurations of the Simple Log Service trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'enable' => [
- 'title' => '',
- 'description' => 'Specifies whether to enable the trigger.'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'enable',
- ],
+ 'enable' => ['title' => '是否启用触发器', 'description' => 'Specifies whether to enable the trigger.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'enable'],
'functionParameter' => [
- 'title' => '',
+ 'title' => '调用参数。日志服务将该配置内容作为event的一部分传入函数,该配置内容必须是JSON格式的字符串。',
'description' => 'The invocation configurations. Simple Log Service passes the configurations into the function as part of the event. The configuration content must be a JSON string.'."\n",
'visibility' => 'Public',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'description' => 'The content of the invocation configuration. Simple Log Service passes the configurations into the function as part of the event. The configuration content must be a JSON string.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '{"foo":"bar"}',
- ],
+ 'additionalProperties' => ['description' => 'The content of the invocation configuration. Simple Log Service passes the configurations into the function as part of the event. The configuration content must be a JSON string.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => '{"foo":"bar"}'],
'backendName' => 'functionParameter',
],
- 'jobConfig' => [
- 'title' => '',
- 'description' => 'The interval at which the trigger reads logs, and the retry configuration upon errors.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'jobConfig',
- '$ref' => '#/components/schemas/JobConfig',
- ],
- 'logConfig' => [
- 'title' => '',
- 'description' => 'The log configurations of the trigger.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'logConfig',
- '$ref' => '#/components/schemas/SLSTriggerLogConfig',
- ],
- 'sourceConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the trigger source.'."\n",
- 'visibility' => 'Public',
- 'required' => false,
- 'backendName' => 'sourceConfig',
- '$ref' => '#/components/schemas/SourceConfig',
- ],
+ 'jobConfig' => ['title' => '触发器读取日志间隔及错误重试配置。', 'description' => 'The interval at which the trigger reads logs, and the retry configuration upon errors.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'jobConfig', '$ref' => '#/components/schemas/JobConfig'],
+ 'logConfig' => ['title' => '触发操作自身的日志配置。', 'description' => 'The log configurations of the trigger.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'logConfig', '$ref' => '#/components/schemas/SLSTriggerLogConfig'],
+ 'sourceConfig' => ['title' => '触发源配置。', 'description' => 'The configurations of the trigger source.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'sourceConfig', '$ref' => '#/components/schemas/SourceConfig'],
],
],
'SLSTriggerLogConfig' => [
- 'title' => '',
+ 'title' => 'SLS 触发器日志配置',
'description' => 'The log configurations of the Simple Log Service trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'logstore' => [
- 'title' => '',
- 'description' => 'The name of the Logstore. Exceptions and function execution statistics during function triggering are recorded in the Logstore.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-sls-logstore-name',
- 'backendName' => 'logstore',
- ],
- 'project' => [
- 'title' => '',
- 'description' => 'The name of the project. Exceptions that occur during function triggering and execution statistics are recorded in the Logstore under the project.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-sls-project-name',
- 'backendName' => 'project',
- ],
+ 'logstore' => ['title' => 'Logstore名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Logstore。', 'description' => 'The name of the Logstore. Exceptions and function execution statistics during function triggering are recorded in the Logstore.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my-sls-logstore-name', 'backendName' => 'logstore'],
+ 'project' => ['title' => 'Project名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Project下的Logstore中。', 'description' => 'The name of the project. Exceptions that occur during function triggering and execution statistics are recorded in the Logstore under the project.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my-sls-project-name', 'backendName' => 'project'],
],
],
'SourceConfig' => [
- 'title' => '',
+ 'title' => 'SLS 触发器配置事件源配置',
'description' => 'The event source configurations of the Simple Log Service.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'logstore' => [
- 'title' => '',
- 'description' => 'The name of the Logstore. The trigger periodically subscribes to data from this Logstore and then triggers the function.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-sls-logstore-name',
- 'backendName' => 'logstore',
- ],
- 'startTime' => [
- 'title' => '',
- 'description' => 'The start time of consumption. Unit: seconds. If you do not specify this parameter, consumption starts from the latest data. If this parameter is specified, a trigger event is generated for data written after the specified time. For consumption of existing data, the trigger interval is ignored to catch up with the consumption delay until the real-time trigger progress is caught up. When the catch-up is complete, the trigger starts to trigger function invocations based on the specified trigger event interval without delay.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1704790317',
- 'backendName' => 'startTime',
- ],
+ 'logstore' => ['title' => 'Logstore名称。当前触发器会定时从此Logstore中订阅数据,然后触发函数。', 'description' => 'The name of the Logstore. The trigger periodically subscribes to data from this Logstore and then triggers the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my-sls-logstore-name', 'backendName' => 'logstore'],
+ 'startTime' => ['title' => '消费起始时间,单位为秒,若不指定,则会从最新数据开始消费。若指定,则会对指定时间之后写入的数据产生触发事件,针对存量数据消费,在追上实时触发进度以前会忽略触发间隔来追赶消费延迟,当追赶完成后,此时触发没有延迟,开始按照设置的触发事件间隔来触发函数调用。', 'description' => 'The start time of consumption. Unit: seconds. If you do not specify this parameter, consumption starts from the latest data. If this parameter is specified, a trigger event is generated for data written after the specified time. For consumption of existing data, the trigger interval is ignored to catch up with the consumption delay until the real-time trigger progress is caught up. When the catch-up is complete, the trigger starts to trigger function invocations based on the specified trigger event interval without delay.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1704790317', 'backendName' => 'startTime'],
],
],
'SourceDTSParameters' => [
- 'title' => '',
+ 'title' => 'EventBridge 数据传输服务DTS版的自定义事件源参数',
'description' => 'The custom event source configurations of Data Transmission Service (DTS) in EventBridge.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'BrokerUrl' => [
- 'title' => '',
- 'description' => 'The network address and port number of the change tracking instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dts-cn-shanghai-vpc.com:18003',
- 'backendName' => 'BrokerUrl',
- ],
- 'InitCheckPoint' => [
- 'title' => '',
- 'description' => 'The UNIX timestamp that is generated when the SDK client consumes the first data record.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1677340805',
- 'backendName' => 'InitCheckPoint',
- ],
- 'Password' => [
- 'title' => '',
- 'description' => 'The consumer group password.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dtsTest123',
- 'backendName' => 'Password',
- ],
- 'RegionId' => [
- 'title' => '',
- 'description' => 'The region of the DTS instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- 'backendName' => 'RegionId',
- ],
- 'Sid' => [
- 'title' => '',
- 'description' => 'The consumer group ID.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dtse34j22j025a****',
- 'backendName' => 'Sid',
- ],
- 'TaskId' => [
- 'title' => '',
- 'description' => 'The task ID.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e34z2gm325q****',
- 'backendName' => 'TaskId',
- ],
- 'Topic' => [
- 'title' => '',
- 'description' => 'The name of the tracked topic of the change tracking instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn_shanghai_vpc_rm_uf6398ykj0218****_dts_trigger_upgrade_from_old_version2',
- 'backendName' => 'Topic',
- ],
- 'Username' => [
- 'title' => '',
- 'description' => 'The account of the consumer group.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dts_trigger',
- 'backendName' => 'Username',
- ],
+ 'BrokerUrl' => ['title' => '数据订阅通道的网络地址及端口号信息。', 'description' => 'The network address and port number of the change tracking instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'dts-cn-shanghai-vpc.com:18003', 'backendName' => 'BrokerUrl'],
+ 'InitCheckPoint' => ['title' => '消费位点,即SDK客户端消费第一条数据的时间戳,格式为Unix时间戳。', 'description' => 'The UNIX timestamp that is generated when the SDK client consumes the first data record.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1677340805', 'backendName' => 'InitCheckPoint'],
+ 'Password' => ['title' => '消费组的账号密码。', 'description' => 'The consumer group password.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'dtsTest123', 'backendName' => 'Password'],
+ 'RegionId' => ['title' => '数据传输服务DTS版的实例所属地域。', 'description' => 'The region of the DTS instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
+ 'Sid' => ['title' => '消费组ID。', 'description' => 'The consumer group ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'dtse34j22j025a****', 'backendName' => 'Sid'],
+ 'TaskId' => ['title' => '任务 ID。', 'description' => 'The task ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'e34z2gm325q****', 'backendName' => 'TaskId'],
+ 'Topic' => ['title' => '数据订阅通道的订阅Topic。', 'description' => 'The name of the tracked topic of the change tracking instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn_shanghai_vpc_rm_uf6398ykj0218****_dts_trigger_upgrade_from_old_version2', 'backendName' => 'Topic'],
+ 'Username' => ['title' => '消费组的账号。', 'description' => 'The account of the consumer group.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'dts_trigger', 'backendName' => 'Username'],
],
],
'SourceKafkaParameters' => [
- 'title' => '',
+ 'title' => 'EventBridge 消息队列Kafka版的自定义事件源参数',
'description' => 'The custom configurations when the event source is ApsaraMQ for Kafka in EventBridge.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'ConsumerGroup' => [
- 'title' => '',
- 'description' => 'The group ID of the consumer that subscribes to the topic.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DEFAULT_GROUP',
- 'backendName' => 'ConsumerGroup',
- ],
- 'InstanceId' => [
- 'title' => '',
- 'description' => 'The ID of the EventBridge instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'r-8vb64581862c****',
- 'backendName' => 'InstanceId',
- ],
- 'Network' => [
- 'title' => '',
- 'description' => 'The network type. Default value: Default. The value PublicNetwork specifies a virtual private cloud (VPC) network.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Default',
- 'backendName' => 'Network',
- ],
- 'OffsetReset' => [
- 'title' => '',
- 'description' => 'The offset. earliest: consumes messages from the earliest offset. latest: consumes messages from the latest offset.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'latest',
- 'backendName' => 'OffsetReset',
- ],
- 'RegionId' => [
- 'title' => '',
- 'description' => 'The region in which the ApsaraMQ for Kafka instance resides.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- 'backendName' => 'RegionId',
- ],
- 'SecurityGroupId' => [
- 'title' => '',
- 'description' => 'The ID of the security group.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sg-bp1iv19sp1msc7zot4****',
- 'backendName' => 'SecurityGroupId',
- ],
- 'Topic' => [
- 'title' => '',
- 'description' => 'The name of the topic in the ApsaraMQ for Kafka instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'popvip_center_robot_order',
- 'backendName' => 'Topic',
- ],
- 'VSwitchIds' => [
- 'title' => '',
- 'description' => 'The ID of the vSwitch.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vsw-bp179l3llg3jjxwrq72****',
- 'backendName' => 'VSwitchIds',
- ],
- 'VpcId' => [
- 'title' => '',
- 'description' => 'The ID of the VPC.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc-8vblalsi0vbhizr77****',
- 'backendName' => 'VpcId',
- ],
+ 'ConsumerGroup' => ['title' => '订阅该Topic的消费者所对应的Group ID。', 'description' => 'The group ID of the consumer that subscribes to the topic.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'DEFAULT_GROUP', 'backendName' => 'ConsumerGroup'],
+ 'InstanceId' => ['title' => '消息队列Kafka版的实例的ID。', 'description' => 'The ID of the EventBridge instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'r-8vb64581862c****', 'backendName' => 'InstanceId'],
+ 'Network' => ['title' => '网络配置 :默认值Default,VPC网络是PublicNetwork。', 'description' => 'The network type. Default value: Default. The value PublicNetwork specifies a virtual private cloud (VPC) network.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Default', 'backendName' => 'Network'],
+ 'OffsetReset' => ['title' => '偏移量。earliest:最早消费位点。latest:最新消费位点。', 'description' => 'The offset. earliest: consumes messages from the earliest offset. latest: consumes messages from the latest offset.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'latest', 'backendName' => 'OffsetReset'],
+ 'RegionId' => ['title' => '消息队列Kafka版的实例所属地域。', 'description' => 'The region in which the ApsaraMQ for Kafka instance resides.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
+ 'SecurityGroupId' => ['title' => '安全组 ID', 'description' => 'The ID of the security group.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'sg-bp1iv19sp1msc7zot4****', 'backendName' => 'SecurityGroupId'],
+ 'Topic' => ['title' => '消息队列 Kafka 版实例下的 Topic 名称', 'description' => 'The name of the topic in the ApsaraMQ for Kafka instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'popvip_center_robot_order', 'backendName' => 'Topic'],
+ 'VSwitchIds' => ['title' => '交换机 ID', 'description' => 'The ID of the vSwitch.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp179l3llg3jjxwrq72****', 'backendName' => 'VSwitchIds'],
+ 'VpcId' => ['title' => 'VPC 网络的 ID', 'description' => 'The ID of the VPC.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vpc-8vblalsi0vbhizr77****', 'backendName' => 'VpcId'],
],
],
'SourceMNSParameters' => [
- 'title' => '',
+ 'title' => 'EventBridge 消息服务MNS版的自定义事件源参数',
'description' => 'Custom event source parameters of Simple Message Queue (formerly MNS) for EventBridge.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'IsBase64Decode' => [
- 'title' => '',
- 'description' => 'Specify whether to enable Base64 encoding. Default value: true. Valid values: true false'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'IsBase64Decode',
- ],
- 'QueueName' => [
- 'title' => '',
- 'description' => 'The name of the queue of Simple Message Queue (formerly MNS).'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo',
- 'backendName' => 'QueueName',
- ],
- 'RegionId' => [
- 'title' => '',
- 'description' => 'The region to which the queue of Simple Message Queue (formerly MNS) belongs.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
- 'backendName' => 'RegionId',
- ],
+ 'IsBase64Decode' => ['title' => '是否开启Base64编码。true:开启 Base64 编码,默认值。false:不开启 Base64 编码。', 'description' => 'Specify whether to enable Base64 encoding. Default value: true. Valid values: true false'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'IsBase64Decode'],
+ 'QueueName' => ['title' => '消息服务MNS的Queue的名称。', 'description' => 'The name of the queue of Simple Message Queue (formerly MNS).'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'demo', 'backendName' => 'QueueName'],
+ 'RegionId' => ['title' => '消息服务MNS Queue所属地域。', 'description' => 'The region to which the queue of Simple Message Queue (formerly MNS) belongs.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'backendName' => 'RegionId'],
],
],
'SourceMQTTParameters' => [
- 'title' => '',
+ 'title' => 'EventBridge 消息队列MQTT版的自定义事件源参数',
'description' => 'The custom configurations when the event source is ApsaraMQ for MQTT in EventBridge.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'InstanceId' => [
- 'title' => '',
- 'description' => 'The ID of the ApsaraMQ for MQTT instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'mqtt-****',
- 'backendName' => 'InstanceId',
- ],
- 'RegionId' => [
- 'title' => '',
- 'description' => 'The region in which the ApsaraMQ for MQTT instance resides.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- 'backendName' => 'RegionId',
- ],
- 'Topic' => [
- 'title' => '',
- 'description' => 'The name of the topic in the ApsaraMQ for MQTT instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'testTopic',
- 'backendName' => 'Topic',
- ],
+ 'InstanceId' => ['title' => '消息队列MQTT版的实例的ID。', 'description' => 'The ID of the ApsaraMQ for MQTT instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'mqtt-****', 'backendName' => 'InstanceId'],
+ 'RegionId' => ['title' => '消息队列MQTT版的实例所属地域。', 'description' => 'The region in which the ApsaraMQ for MQTT instance resides.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
+ 'Topic' => ['title' => '消息队列MQTT版实例的Topic的名称。', 'description' => 'The name of the topic in the ApsaraMQ for MQTT instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'testTopic', 'backendName' => 'Topic'],
],
],
'SourceRabbitMQParameters' => [
- 'title' => '',
+ 'title' => 'EventBridge 消息队列RabbitMQ版的自定义事件源参数',
'description' => 'The custom event source configurations of ApsaraMQ for RabbitMQ in EventBridge.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'InstanceId' => [
- 'title' => '',
- 'description' => 'The ID of the ApsaraMQ for RabbitMQ instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'amqp-cn-nif22u74****',
- 'backendName' => 'InstanceId',
- ],
- 'QueueName' => [
- 'title' => '',
- 'description' => 'The queue name of the ApsaraMQ for RabbitMQ instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo',
- 'backendName' => 'QueueName',
- ],
- 'RegionId' => [
- 'title' => '',
- 'description' => 'The region in which the ApsaraMQ for RabbitMQ instance resides.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- 'backendName' => 'RegionId',
- ],
- 'VirtualHostName' => [
- 'title' => '',
- 'description' => 'The vhost name of the ApsaraMQ for RabbitMQ instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'eb-connect',
- 'backendName' => 'VirtualHostName',
- ],
+ 'InstanceId' => ['title' => '消息队列RabbitMQ版的实例的ID。', 'description' => 'The ID of the ApsaraMQ for RabbitMQ instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'amqp-cn-nif22u74****', 'backendName' => 'InstanceId'],
+ 'QueueName' => ['title' => '消息队列RabbitMQ版实例的Queue的名称。', 'description' => 'The queue name of the ApsaraMQ for RabbitMQ instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'demo', 'backendName' => 'QueueName'],
+ 'RegionId' => ['title' => '消息队列RabbitMQ版的实例所属地域。', 'description' => 'The region in which the ApsaraMQ for RabbitMQ instance resides.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
+ 'VirtualHostName' => ['title' => '消息队列RabbitMQ版实例的Vhost的名称。', 'description' => 'The vhost name of the ApsaraMQ for RabbitMQ instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'eb-connect', 'backendName' => 'VirtualHostName'],
],
],
'SourceRocketMQParameters' => [
- 'title' => '',
+ 'title' => 'EventBridge 消息队列RocketMQ版的自定义事件源参数',
'description' => 'The custom event source configurations of ApsaraMQ for RocketMQ.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'AuthType' => [
- 'title' => '',
- 'description' => 'The authentication type. Set the value to ACL or leave the value empty. The value ACL indicates that authentication is enabled. In this case, you must specify InstanceUsername and InstancePassword.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ACL',
- 'backendName' => 'AuthType',
- ],
- 'FilterType' => [
- 'title' => '',
- 'description' => 'The message filter type.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Tag',
- 'backendName' => 'FilterType',
- ],
- 'GroupID' => [
- 'title' => '',
- 'description' => 'The ID of the consumer group of the ApsaraMQ for RocketMQ instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'GID_group1',
- 'backendName' => 'GroupID',
- ],
- 'InstanceEndpoint' => [
- 'title' => '',
- 'description' => 'The information about the endpoint of the ApsaraMQ for RocketMQ instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com',
- 'backendName' => 'InstanceEndpoint',
- ],
- 'InstanceId' => [
- 'title' => '',
- 'description' => 'The ID of the ApsaraMQ for RocketMQ instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MQ_INST_164901546557****_BAAN****',
- 'backendName' => 'InstanceId',
- ],
- 'InstanceNetwork' => [
- 'title' => '',
- 'description' => 'The network type.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'PrivateNetwork',
- 'backendName' => 'InstanceNetwork',
- ],
- 'InstancePassword' => [
- 'title' => '',
- 'description' => 'The password of the ApsaraMQ for RocketMQ instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123',
- 'backendName' => 'InstancePassword',
- ],
- 'InstanceSecurityGroupId' => [
- 'title' => '',
- 'description' => 'The security group ID.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sg-hp35r2hc3a3sv8q2****',
- 'backendName' => 'InstanceSecurityGroupId',
- ],
- 'InstanceType' => [
- 'title' => '',
- 'description' => 'The type of ApsaraMQ for RocketMQ instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Cloud_5',
- 'backendName' => 'InstanceType',
- ],
- 'InstanceUsername' => [
- 'title' => '',
- 'description' => 'The username of the ApsaraMQ for RocketMQ instance. If you use the Internet, you must configure the username and password of the instance in the SDK code for authentication.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '6W0xz2uPfiwp****',
- 'backendName' => 'InstanceUsername',
- ],
- 'InstanceVSwitchIds' => [
- 'title' => '',
- 'description' => 'The ID of the vSwitch associated with the instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vsw-uf6gwtbn6etadpvz7****',
- 'backendName' => 'InstanceVSwitchIds',
- ],
- 'InstanceVpcId' => [
- 'title' => '',
- 'description' => 'The ID of the virtual private cloud (VPC) associated with the instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc-uf6of9452b2pba82c****',
- 'backendName' => 'InstanceVpcId',
- ],
- 'Offset' => [
- 'title' => '',
- 'description' => 'The consumer offset of the message. CONSUME_FROM_LAST_OFFSET: consumes messages from the latest offset. This is the default value. CONSUME_FROM_FIRST_OFFSET: consumes messages from the earliest offset. CONSUME_FROM_TIMESTAMP: consumes messages from the offset at the specified point in time.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CONSUME_FROM_TIMESTAMP',
- 'backendName' => 'Offset',
- ],
- 'RegionId' => [
- 'title' => '',
- 'description' => 'The region to which the ApsaraMQ for RocketMQ queue belongs.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
- 'backendName' => 'RegionId',
- ],
- 'Tag' => [
- 'title' => '',
- 'description' => 'The tags that are used to filter messages.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- 'backendName' => 'Tag',
- ],
- 'Timestamp' => [
- 'title' => '',
- 'description' => 'The timestamp. This parameter is valid only when you set Offset to CONSUME_FROM_TIMESTAMP.'."\n",
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1636597951964',
- 'backendName' => 'Timestamp',
- ],
- 'Topic' => [
- 'title' => '',
- 'description' => 'The name of the topic in the ApsaraMQ for RocketMQ instance.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'myTopic',
- 'backendName' => 'Topic',
- ],
+ 'AuthType' => ['title' => '认证类型。取值为 ACL 或为空。取值为 ACL 表示开启鉴权,需填写 InstanceUsername 和 InstancePassword。', 'description' => 'The authentication type. Set the value to ACL or leave the value empty. The value ACL indicates that authentication is enabled. In this case, you must specify InstanceUsername and InstancePassword.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'ACL', 'backendName' => 'AuthType'],
+ 'FilterType' => ['title' => '消息过滤类型。', 'description' => 'The message filter type.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Tag', 'backendName' => 'FilterType'],
+ 'GroupID' => ['title' => '消息队列 RocketMQ 版的 Group ID', 'description' => 'The ID of the consumer group of the ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'GID_group1', 'backendName' => 'GroupID'],
+ 'InstanceEndpoint' => ['title' => '消息队列 RocketMQ 版的实例接入点信息。', 'description' => 'The information about the endpoint of the ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com', 'backendName' => 'InstanceEndpoint'],
+ 'InstanceId' => ['title' => '消息队列 RocketMQ 版的实例 ID', 'description' => 'The ID of the ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'MQ_INST_164901546557****_BAAN****', 'backendName' => 'InstanceId'],
+ 'InstanceNetwork' => ['title' => '网络类型。', 'description' => 'The network type.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'PrivateNetwork', 'backendName' => 'InstanceNetwork'],
+ 'InstancePassword' => ['title' => '消息队列 RocketMQ 版的实例的密码。', 'description' => 'The password of the ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '123', 'backendName' => 'InstancePassword'],
+ 'InstanceSecurityGroupId' => ['title' => '安全组 ID。', 'description' => 'The security group ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'sg-hp35r2hc3a3sv8q2****', 'backendName' => 'InstanceSecurityGroupId'],
+ 'InstanceType' => ['title' => '消息队列 RocketMQ 版的实例类型。', 'description' => 'The type of ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Cloud_5', 'backendName' => 'InstanceType'],
+ 'InstanceUsername' => ['title' => '消息队列 RocketMQ 版的实例的用户名。使用公网访问时,SDK 代码中需要配置实例的用户名和密码,进行身份验证。', 'description' => 'The username of the ApsaraMQ for RocketMQ instance. If you use the Internet, you must configure the username and password of the instance in the SDK code for authentication.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '6W0xz2uPfiwp****', 'backendName' => 'InstanceUsername'],
+ 'InstanceVSwitchIds' => ['title' => '实例所关联的交换机 ID。', 'description' => 'The ID of the vSwitch associated with the instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vsw-uf6gwtbn6etadpvz7****', 'backendName' => 'InstanceVSwitchIds'],
+ 'InstanceVpcId' => ['title' => '实例所关联的专有网络的 ID。', 'description' => 'The ID of the virtual private cloud (VPC) associated with the instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vpc-uf6of9452b2pba82c****', 'backendName' => 'InstanceVpcId'],
+ 'Offset' => ['title' => '消息的消费位点。CONSUME_FROM_LAST_OFFSET:从最新位点开始消费,默认值。CONSUME_FROM_FIRST_OFFSET:从最早位点开始消费。CONSUME_FROM_TIMESTAMP:从指定时间点的位点开始消费。', 'description' => 'The consumer offset of the message. CONSUME_FROM_LAST_OFFSET: consumes messages from the latest offset. This is the default value. CONSUME_FROM_FIRST_OFFSET: consumes messages from the earliest offset. CONSUME_FROM_TIMESTAMP: consumes messages from the offset at the specified point in time.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'CONSUME_FROM_TIMESTAMP', 'backendName' => 'Offset'],
+ 'RegionId' => ['title' => '消息队列RocketMQ版Queue所属地域。', 'description' => 'The region to which the ApsaraMQ for RocketMQ queue belongs.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'backendName' => 'RegionId'],
+ 'Tag' => ['title' => '消息的过滤标签。', 'description' => 'The tags that are used to filter messages.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'test', 'backendName' => 'Tag'],
+ 'Timestamp' => ['title' => '时间戳。仅当参数 Offset 取值为 CONSUME_FROM_TIMESTAMP 时,该参数有效。', 'description' => 'The timestamp. This parameter is valid only when you set Offset to CONSUME_FROM_TIMESTAMP.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1636597951964', 'backendName' => 'Timestamp'],
+ 'Topic' => ['title' => '消息队列 RocketMQ 版实例的 Topic 名称。', 'description' => 'The name of the topic in the ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'myTopic', 'backendName' => 'Topic'],
],
],
'Tag' => [
- 'title' => '',
+ 'title' => '标签',
'description' => 'The tag information.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'title' => '',
- 'description' => 'The tag key.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'k1',
- 'backendName' => 'Key',
- ],
- 'Value' => [
- 'title' => '',
- 'description' => 'The tag value.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v1',
- 'backendName' => 'Value',
- ],
+ 'Key' => ['title' => '标签名', 'description' => 'The tag key.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'k1', 'backendName' => 'Key'],
+ 'Value' => ['title' => '标签值', 'description' => 'The tag value.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'v1', 'backendName' => 'Value'],
],
],
'TagResource' => [
- 'title' => '',
+ 'title' => '资源标签信息',
'description' => 'The details of the resource tags.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'ResourceId' => [
- 'title' => '',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:****:functions/demo',
- 'backendName' => 'ResourceId',
- ],
- 'ResourceType' => [
- 'title' => '',
- 'description' => 'The name of the resource type.'."\n"
- ."\n"
- .'The function type in Function Compute 3.0 is ALIYUN::FC::FUNCTION, which is abbreviated as "function".'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'function',
- 'backendName' => 'ResourceType',
- ],
- 'TagKey' => [
- 'title' => '',
- 'description' => 'The tag key.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'key1',
- 'backendName' => 'TagKey',
- ],
- 'TagValue' => [
- 'title' => '',
- 'description' => 'The tag value.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'key1',
- 'backendName' => 'TagValue',
- ],
+ 'ResourceId' => ['title' => '阿里云资源描述符。', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:****:functions/demo', 'backendName' => 'ResourceId'],
+ 'ResourceType' => ['title' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。', 'description' => 'The name of the resource type.'."\n"
+ ."\n"
+ .'The function type in Function Compute 3.0 is ALIYUN::FC::FUNCTION, which is abbreviated as "function".'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'function', 'backendName' => 'ResourceType'],
+ 'TagKey' => ['title' => '标签键', 'description' => 'The tag key.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'key1', 'backendName' => 'TagKey'],
+ 'TagValue' => ['title' => '标签值', 'description' => 'The tag value.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'key1', 'backendName' => 'TagValue'],
],
],
'TagResourceInput' => [
- 'title' => '',
- 'description' => 'The resource to which you want to add a tag.'."\n",
- 'visibility' => 'public',
+ 'title' => '给指定资源打标签',
+ 'description' => 'Tags a specified resource.',
'type' => 'object',
'properties' => [
- 'resourceArn' => [
- 'title' => '',
- 'description' => 'The resource descriptor.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1',
- 'minLength' => 1,
- 'backendName' => 'resourceArn',
- ],
+ 'resourceArn' => ['title' => '资源描述符。', 'description' => 'Resource descriptor.', 'type' => 'string', 'required' => true, 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1', 'minLength' => 1, 'visibility' => 'Public', 'backendName' => 'resourceArn'],
'tags' => [
- 'title' => '',
- 'description' => 'The tag dictionary.'."\n",
- 'visibility' => 'public',
+ 'title' => '标签字典。',
+ 'description' => 'Tag dictionary.',
'type' => 'object',
'required' => true,
- 'additionalProperties' => [
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'value1',
- 'description' => '',
- ],
+ 'additionalProperties' => ['type' => 'string', 'example' => 'value1', 'description' => '', 'title' => '', 'visibility' => 'Public'],
+ 'example' => '',
+ 'visibility' => 'Public',
'backendName' => 'tags',
],
],
+ 'example' => '',
+ 'visibility' => 'Public',
],
'TagResourcesInput' => [
- 'title' => '',
+ 'title' => '给指定资源打标签',
'description' => 'The resource to which you want to add a tag.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'ResourceId' => [
- 'title' => '',
+ 'title' => '资源ID列表',
'description' => 'The resource IDs.'."\n",
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The resource ID.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The resource ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1', 'extendType' => 'true'],
'required' => true,
'backendName' => 'ResourceId',
],
- 'ResourceType' => [
- 'title' => '',
- 'description' => 'The type of the resource.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'FUNCTION',
- 'backendName' => 'ResourceType',
- ],
+ 'ResourceType' => ['title' => '资源类型', 'description' => 'The type of the resource.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'FUNCTION', 'backendName' => 'ResourceType'],
'Tag' => [
- 'title' => '',
+ 'title' => '标签列表',
'description' => 'The tags.'."\n",
'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The information about the tags.'."\n",
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Tag',
- ],
+ 'items' => ['description' => 'The information about the tags.'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Tag'],
'required' => true,
'backendName' => 'Tag',
],
],
],
'TargetTrackingPolicy' => [
- 'title' => '',
+ 'title' => '指标追踪伸缩策略配置',
'description' => 'The configurations of metric-based auto scaling.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'endTime' => [
- 'title' => '',
- 'description' => 'The end time of the policy, in UTC.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-03-10T10:10:10Z',
- 'backendName' => 'endTime',
- ],
- 'maxCapacity' => [
- 'title' => '',
- 'description' => 'The maximum number of provisioned instances for scale-out.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '10',
- 'backendName' => 'maxCapacity',
- ],
- 'metricTarget' => [
- 'title' => '',
- 'description' => 'The threshold value for metric-based auto scaling.'."\n",
- 'visibility' => 'public',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'example' => '0.6',
- 'backendName' => 'metricTarget',
- ],
- 'metricType' => [
- 'title' => '',
- 'description' => 'The metric type for tracing. ProvisionedConcurrencyUtilization: the concurrency utilization of provisioned instances. CPUUtilization: the CPU utilization. GPUMemUtilization: the GPU utilization.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'CPUUtilization',
- 'backendName' => 'metricType',
- ],
- 'minCapacity' => [
- 'title' => '',
- 'description' => 'The minimum number of provisioned instances for scale-in.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- 'backendName' => 'minCapacity',
- ],
- 'name' => [
- 'title' => '',
- 'description' => 'The policy name.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_1',
- 'backendName' => 'name',
- ],
- 'startTime' => [
- 'title' => '',
- 'description' => 'The time when the policy starts to take effect, in UTC.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-10T10:10:10Z',
- 'backendName' => 'startTime',
- ],
- 'timeZone' => [
+ 'endTime' => ['title' => '策略结束时间。', 'description' => 'The end time of the policy, in UTC.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2024-03-10T10:10:10Z', 'backendName' => 'endTime'],
+ 'maxCapacity' => ['title' => '扩容的最大值。', 'description' => 'The maximum number of provisioned instances for scale-out.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10', 'backendName' => 'maxCapacity'],
+ 'metricTarget' => ['title' => '指标的追踪值。', 'description' => 'The threshold value for metric-based auto scaling.'."\n", 'visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '0.6', 'backendName' => 'metricTarget'],
+ 'metricType' => ['title' => '跟踪的指标类型:ProvisionedConcurrencyUtilization:预留模式实例并发度利用率。CPUUtilization:CPU利用率。GPUMemUtilization:GPU利用率。', 'description' => 'The metric type for tracing. ProvisionedConcurrencyUtilization: the concurrency utilization of provisioned instances. CPUUtilization: the CPU utilization. GPUMemUtilization: the GPU utilization.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'CPUUtilization', 'backendName' => 'metricType'],
+ 'minCapacity' => ['title' => '缩容的最小值。', 'description' => 'The minimum number of provisioned instances for scale-in.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1', 'backendName' => 'minCapacity'],
+ 'name' => ['title' => '策略名称。', 'description' => 'The policy name.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'test_1', 'backendName' => 'name'],
+ 'startTime' => ['title' => '策略开始生效时间。', 'description' => 'The time when the policy starts to take effect, in UTC.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2023-03-10T10:10:10Z', 'backendName' => 'startTime'],
+ 'timeZone' => ['title' => '时区。时区参数为空时,startTime和endTime的时间需为UTC格式。', 'description' => 'The time zone. If the time zone parameter is empty, the time of startTime and endTime must be in UTC format.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'Asia/Shanghai', 'backendName' => 'timeZone'],
+ ],
+ ],
+ 'TimedPoolConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'effectiveStartDate' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'effectiveEndDate' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'elasticIntervals' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ElasticInterval', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
'title' => '',
- 'description' => 'The time zone. If the time zone parameter is empty, the time of startTime and endTime must be in UTC format.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Asia/Shanghai',
- 'backendName' => 'timeZone',
+ 'example' => '',
],
+ 'timeZone' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
- 'TimerTriggerConfig' => [
+ 'TimedResidentResourcePoolApplication' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'timedPoolId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'accountId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'operationType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'status' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'content' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'createdTime' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'lastModifiedTime' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
'title' => '',
+ 'example' => '',
+ ],
+ 'TimerTriggerConfig' => [
+ 'title' => '定时触发器配置',
'description' => 'The configurations of the time trigger.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'cronExpression' => [
- 'title' => '',
- 'description' => 'The trigger period expression. You can specify to trigger based on a time interval. For example, the expression @every 4m indicates that the triggering is performed every four minutes. You can also specify to trigger based on a cron expression, for example, 0 0 4 \\* \\* \\*.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0 0 4 * * *',
- 'backendName' => 'cronExpression',
- ],
- 'enable' => [
- 'title' => '',
- 'description' => 'Specify whether to enable the trigger.'."\n",
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'enable',
- ],
- 'payload' => [
- 'title' => '',
- 'description' => 'Enter custom parameters. The trigger message is used as the value of the payload in the event.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"workflowInstanceId":"39639"}',
- 'backendName' => 'payload',
- ],
+ 'cronExpression' => ['title' => '触发周期表达式。按照时间间隔触发:以每间隔4分钟为例,表达式为 “@every 4m”。按照CRON表达式触发:常见格式类似 “0 0 4 * * *”', 'description' => 'The trigger period expression. You can specify to trigger based on a time interval. For example, the expression @every 4m indicates that the triggering is performed every four minutes. You can also specify to trigger based on a cron expression, for example, 0 0 4 \\* \\* \\*.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '0 0 4 * * *', 'backendName' => 'cronExpression'],
+ 'enable' => ['title' => '是否启用触发器', 'description' => 'Specify whether to enable the trigger.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'enable'],
+ 'payload' => ['title' => '输入自定义的参数,该触发消息将会作为event中payload的值。', 'description' => 'Enter custom parameters. The trigger message is used as the value of the payload in the event.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '{"workflowInstanceId":"39639"}', 'backendName' => 'payload'],
],
],
'TLSConfig' => [
- 'title' => '',
+ 'title' => 'TLS配置',
'description' => 'The TLS configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'cipherSuites' => [
- 'title' => '',
+ 'title' => 'TLS加密套件列表。',
'description' => 'The TLS cipher suites.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The TLS cipher suite.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'TLS_RSA_WITH_RC4_128_SHA',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The TLS cipher suite.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'TLS_RSA_WITH_RC4_128_SHA', 'extendType' => 'true'],
'required' => true,
'backendName' => 'cipherSuites',
],
- 'maxVersion' => [
- 'title' => '',
- 'description' => 'The maximum TLS version. Valid values: TLSv1.3 and TLSv1.2.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TLSv1.3',
- 'backendName' => 'maxVersion',
- ],
- 'minVersion' => [
- 'title' => '',
- 'description' => 'The minimum TLS version. Valid values: TLSv1.3 and TLSv1.2.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'TLSv1.0',
- 'backendName' => 'minVersion',
- ],
+ 'maxVersion' => ['title' => 'TLS最大版本号。枚举值:TLSv1.3, TLSv1.2, TLSv1.1, TLSv1.0', 'description' => 'The maximum TLS version. Valid values: TLSv1.3 and TLSv1.2.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'TLSv1.3', 'backendName' => 'maxVersion'],
+ 'minVersion' => ['title' => 'TLS最小版本号。枚举值:TLSv1.3, TLSv1.2, TLSv1.1, TLSv1.0', 'description' => 'The minimum TLS version. Valid values: TLSv1.3 and TLSv1.2.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'TLSv1.0', 'backendName' => 'minVersion'],
],
],
'TracingConfig' => [
- 'title' => '',
- 'description' => 'The configurations of Managed Service for OpenTelemetry.'."\n",
- 'visibility' => 'public',
+ 'title' => '链路追踪配置',
+ 'description' => 'The Tracing Analysis configuration.',
'type' => 'object',
'properties' => [
'params' => [
- 'title' => '',
- 'description' => 'The parameters of Managed Service for OpenTelemetry. Specify the value in the map\\[string]string format, where the key is "endpoint", and the value is the internal endpoint of Tracing Analysis. Example: endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces.'."\n",
- 'visibility' => 'public',
+ 'title' => '链路追踪参数。参数为map[string]string,其中key为"endpoint",value为您的链路追踪内网接入点。 例如 endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces 。',
+ 'description' => 'The parameters for Tracing Analysis. The value is a map\\[string]string where the key is "endpoint" and the value is the internal network endpoint for Tracing Analysis. For example: endpoint: http\\://tracing-analysis-dc-hz.aliyuncs.com/adapt\\_xxx/api/otlp/traces.',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces',
- 'description' => '',
- ],
+ 'additionalProperties' => ['type' => 'string', 'example' => 'http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces', 'description' => '', 'title' => '', 'visibility' => 'Public'],
+ 'example' => '',
+ 'visibility' => 'Public',
'backendName' => 'params',
],
- 'type' => [
- 'title' => '',
- 'description' => 'The type of protocol for Managed Service for OpenTelemetry. Only Jaeger is supported.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Jaeger',
- 'backendName' => 'type',
- ],
+ 'type' => ['title' => '链路追踪协议类型,目前只支持Jaeger。', 'description' => 'The Protocol Type for Tracing Analysis. Only Jaeger is supported.', 'type' => 'string', 'required' => false, 'example' => 'Jaeger', 'visibility' => 'Public', 'backendName' => 'type'],
],
+ 'example' => '',
+ 'visibility' => 'Public',
],
'Trigger' => [
- 'title' => '',
+ 'title' => '触发器的配置信息',
'description' => 'The trigger configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'createdTime' => [
- 'title' => '',
- 'description' => 'The time when the trigger was created.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2020-08-20T02:28:21Z',
- 'backendName' => 'createdTime',
- ],
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the trigger.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_description',
- 'backendName' => 'description',
- ],
- 'httpTrigger' => [
- 'title' => '',
- 'description' => 'The information about the HTTP trigger.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'httpTrigger',
- '$ref' => '#/components/schemas/HTTPTrigger',
- ],
- 'invocationRole' => [
- 'title' => '',
- 'description' => 'The role that is used by the event source such as OSS to invoke the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::151641468453****:role/my-role',
- 'backendName' => 'invocationRole',
- ],
- 'lastModifiedTime' => [
- 'title' => '',
- 'description' => 'The time when the trigger was last modified.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2020-04-23T06:32:43Z',
- 'backendName' => 'lastModifiedTime',
- ],
- 'qualifier' => [
- 'title' => '',
- 'description' => 'The version or alias of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- 'backendName' => 'qualifier',
- ],
- 'sourceArn' => [
- 'title' => '',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the event source for the trigger.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:oss:cn-hangzhou:151641468453****:my-bucket',
- 'backendName' => 'sourceArn',
- ],
- 'status' => [
- 'title' => '',
- 'description' => 'The status of the trigger.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OK',
- 'backendName' => 'status',
- ],
- 'targetArn' => [
- 'title' => '',
- 'description' => 'The ARN of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:oss:cn-hangzhou:151641468453****:my-bucket',
- 'backendName' => 'targetArn',
- ],
- 'triggerConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the trigger. The configurations vary based on trigger types.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{'."\n"
- .' "events": ['."\n"
- .' "oss:ObjectCreated:*"'."\n"
- .' ],'."\n"
- .' "filter": {'."\n"
- .' "key": {'."\n"
- .' "prefix": "/prefix",'."\n"
- .' "suffix": ".zip"'."\n"
- .' }'."\n"
- .' }'."\n"
- .'}',
- 'backendName' => 'triggerConfig',
- ],
- 'triggerId' => [
- 'title' => '',
- 'description' => 'The unique ID of the trigger.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '546959b5-ce1a-4991-8891-df7a02b25086',
- 'backendName' => 'triggerId',
- ],
- 'triggerName' => [
- 'title' => '',
- 'description' => 'The name of the trigger. The name contains only letters, digits, hyphens (-), and underscores (\\_). The name must be 1 to 128 characters in length and cannot start with a digit or hyphen (-).'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'defaultTrigger',
- 'backendName' => 'triggerName',
- ],
- 'triggerType' => [
- 'title' => '',
- 'description' => 'The type of the trigger.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http',
- 'backendName' => 'triggerType',
- ],
+ 'createdTime' => ['title' => '触发器的创建时间。', 'description' => 'The time when the trigger was created.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2020-08-20T02:28:21Z', 'backendName' => 'createdTime'],
+ 'description' => ['title' => '触发器的描述。', 'description' => 'The description of the trigger.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'test_description', 'backendName' => 'description'],
+ 'httpTrigger' => ['title' => 'HTTP 触发器信息。', 'description' => 'The information about the HTTP trigger.'."\n", 'visibility' => 'Public', 'required' => false, 'backendName' => 'httpTrigger', '$ref' => '#/components/schemas/HTTPTrigger'],
+ 'invocationRole' => ['title' => '事件源(如OSS)调用函数所需的角色。', 'description' => 'The role that is used by the event source such as OSS to invoke the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::151641468453****:role/my-role', 'backendName' => 'invocationRole'],
+ 'lastModifiedTime' => ['title' => '触发器的上次修改时间。', 'description' => 'The time when the trigger was last modified.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2020-04-23T06:32:43Z', 'backendName' => 'lastModifiedTime'],
+ 'qualifier' => ['title' => '函数的版本或别名。', 'description' => 'The version or alias of the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'backendName' => 'qualifier'],
+ 'sourceArn' => ['title' => '触发器事件源的Aliyun Resource Name。', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the event source for the trigger.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:oss:cn-hangzhou:151641468453****:my-bucket', 'backendName' => 'sourceArn'],
+ 'status' => ['title' => '触发器的状态。', 'description' => 'The status of the trigger.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'OK', 'backendName' => 'status'],
+ 'targetArn' => ['title' => '函数的资源标识。', 'description' => 'The ARN of the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:oss:cn-hangzhou:151641468453****:my-bucket', 'backendName' => 'targetArn'],
+ 'triggerConfig' => ['title' => '触发器配置,针对不同类型的触发器,配置有所不同。', 'description' => 'The configurations of the trigger. The configurations vary based on trigger types.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
+ .' "events": ['."\n"
+ .' "oss:ObjectCreated:*"'."\n"
+ .' ],'."\n"
+ .' "filter": {'."\n"
+ .' "key": {'."\n"
+ .' "prefix": "/prefix",'."\n"
+ .' "suffix": ".zip"'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .'}', 'backendName' => 'triggerConfig'],
+ 'triggerId' => ['title' => '触发器的唯一ID。', 'description' => 'The unique ID of the trigger.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '546959b5-ce1a-4991-8891-df7a02b25086', 'backendName' => 'triggerId'],
+ 'triggerName' => ['title' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。', 'description' => 'The name of the trigger. The name contains only letters, digits, hyphens (-), and underscores (\\_). The name must be 1 to 128 characters in length and cannot start with a digit or hyphen (-).'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'defaultTrigger', 'backendName' => 'triggerName'],
+ 'triggerType' => ['title' => '触发器的类型。', 'description' => 'The type of the trigger.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'http', 'backendName' => 'triggerType'],
],
],
'UpdateAliasInput' => [
- 'title' => '',
- 'description' => 'The request parameters to update an alias.'."\n",
- 'visibility' => 'public',
+ 'title' => '更新别名的请求参数',
+ 'description' => 'Request parameters for updating an alias',
'type' => 'object',
'properties' => [
'additionalVersionWeight' => [
- 'title' => '',
- 'description' => 'The weight of the canary release version.'."\n",
- 'visibility' => 'public',
+ 'title' => '灰度版本',
+ 'description' => 'Weight of the canary release version',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'visibility' => 'public',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.5',
- 'description' => '',
- ],
+ 'additionalProperties' => ['type' => 'number', 'format' => 'float', 'example' => '0.5', 'description' => '', 'title' => '', 'visibility' => 'Public'],
+ 'example' => '',
+ 'visibility' => 'Public',
'backendName' => 'additionalVersionWeight',
],
- 'description' => [
- 'title' => '',
- 'description' => 'The alias description.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my alias',
- 'maxLength' => 256,
- 'backendName' => 'description',
- ],
- 'versionId' => [
- 'title' => '',
- 'description' => 'The version to which the alias points.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- 'maxLength' => 10,
- 'minLength' => 1,
- 'backendName' => 'versionId',
- ],
+ 'description' => ['title' => '别名的描述信息', 'description' => 'Description of the alias', 'type' => 'string', 'required' => false, 'example' => 'my alias', 'maxLength' => 256, 'visibility' => 'Public', 'backendName' => 'description'],
+ 'versionId' => ['title' => '别名指向的版本', 'description' => 'Version that the alias points to', 'type' => 'string', 'required' => false, 'example' => '1', 'maxLength' => 10, 'minLength' => 1, 'visibility' => 'Public', 'backendName' => 'versionId'],
],
+ 'example' => '',
+ 'visibility' => 'Public',
],
'UpdateCustomDomainInput' => [
- 'title' => '',
- 'description' => 'The information about the request parameters for updating the custom domain name.'."\n",
- 'visibility' => 'public',
+ 'title' => '更新自定义域名的请求信息',
+ 'description' => 'The information required to update a custom domain name.',
'type' => 'object',
'properties' => [
- 'authConfig' => [
- 'title' => '',
- 'description' => 'The configuration of permission authentication.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'authConfig',
- '$ref' => '#/components/schemas/AuthConfig',
- ],
- 'certConfig' => [
- 'title' => '',
- 'description' => 'The configuration of the HTTPS certificate.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'certConfig',
- '$ref' => '#/components/schemas/CertConfig',
- ],
- 'protocol' => [
- 'title' => '',
- 'description' => 'The protocol type that is supported by the custom domain name. Valid values: HTTP HTTPS HTTP,HTTPS'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'HTTP',
- 'backendName' => 'protocol',
- ],
- 'routeConfig' => [
- 'title' => '',
- 'description' => 'The route table that maps paths to functions when the function is invoked by using the custom domain name.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'routeConfig',
- '$ref' => '#/components/schemas/RouteConfig',
- ],
- 'tlsConfig' => [
- 'title' => '',
- 'description' => 'The Transport Layer Security (TLS) configuration.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'tlsConfig',
- '$ref' => '#/components/schemas/TLSConfig',
- ],
- 'wafConfig' => [
- 'title' => '',
- 'description' => 'The Web Application Firewall (WAF) configuration.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'wafConfig',
- '$ref' => '#/components/schemas/WAFConfig',
- ],
+ 'authConfig' => ['title' => '权限认证配置', 'description' => 'The authentication configuration.', 'required' => false, '$ref' => '#/components/schemas/AuthConfig', 'example' => ''],
+ 'certConfig' => ['title' => 'HTTPS证书的信息。', 'description' => 'Information about the HTTPS certificate.', 'required' => false, '$ref' => '#/components/schemas/CertConfig', 'example' => ''],
+ 'corsConfig' => ['title' => 'CORS 配置', 'description' => '', 'example' => '', 'required' => false, '$ref' => '#/components/schemas/CORSConfig'],
+ 'protocol' => ['title' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。', 'description' => 'The protocol type that the domain name supports. \\`HTTP\\`: supports only the HTTP protocol. \\`HTTPS\\`: supports only the HTTPS protocol. \\`HTTP,HTTPS\\`: supports both HTTP and HTTPS protocols.', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
+ 'routeConfig' => ['title' => '路由表:自定义域名访问时的PATH到Function的映射。', 'description' => 'The route table that maps the access paths of the custom domain name to functions.', 'required' => false, '$ref' => '#/components/schemas/RouteConfig', 'example' => ''],
+ 'tlsConfig' => ['title' => 'TLS配置信息。', 'description' => 'The TLS configuration.', 'required' => false, '$ref' => '#/components/schemas/TLSConfig', 'example' => ''],
+ 'wafConfig' => ['title' => 'Web应用防火墙配置信息。', 'description' => 'The Web Application Firewall (WAF) configuration.', 'required' => false, '$ref' => '#/components/schemas/WAFConfig', 'example' => ''],
],
+ 'example' => '',
],
'UpdateFunctionInput' => [
'title' => '',
- 'description' => 'The request parameters for updating the function.'."\n",
- 'visibility' => 'public',
+ 'description' => 'The function update request parameters.',
'type' => 'object',
'properties' => [
- 'customRuntimeConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the custom runtime.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'customRuntimeConfig',
- '$ref' => '#/components/schemas/CustomRuntimeConfig',
- ],
- 'handler' => [
- 'title' => '',
- 'description' => 'The handler of the function. The format of the handler is related to the runtime you use.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index.handler',
- 'maxLength' => 128,
- 'minLength' => 1,
- 'backendName' => 'handler',
- ],
- 'logConfig' => [
- 'title' => '',
- 'description' => 'The logging configurations. Logs generated by the function are written to the specified Logstore.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'logConfig',
- '$ref' => '#/components/schemas/LogConfig',
- ],
- 'code' => [
- 'title' => '',
- 'description' => 'The code package of the function. Configure either code or customContainerConfig.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'code',
- '$ref' => '#/components/schemas/InputCodeLocation',
- ],
- 'role' => [
- 'title' => '',
- 'description' => 'The Resource Access Management (RAM) role that grants the necessary permissions to Function Compute. The role can be used in the following scenarios: 1. When Function Compute sends logs generated by the function to your Logstore. 2. When Function Compute obtains a Security Token Service (STS) token, which serves as a temporary key for your function to access other Alibaba Cloud services.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::188077086902****:role/fc-test',
- 'maxLength' => 300,
- 'backendName' => 'role',
- ],
- 'disableOndemand' => [
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'backendName' => 'disableOndemand',
- ],
- 'instanceLifecycleConfig' => [
- 'title' => '',
- 'description' => 'The configurations of instance lifecycle hooks.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'instanceLifecycleConfig',
- '$ref' => '#/components/schemas/InstanceLifecycleConfig',
- ],
- 'tracingConfig' => [
- 'title' => '',
- 'description' => 'The configurations of Managed Service for OpenTelemetry. After Function Compute is integrated with Managed Service for OpenTelemetry, you can record the invocation duration of a request, view the cold start duration of a function, and track the execution duration of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'tracingConfig',
- '$ref' => '#/components/schemas/TracingConfig',
- ],
- 'gpuConfig' => [
- 'title' => '',
- 'description' => 'The GPU configurations of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'gpuConfig',
- '$ref' => '#/components/schemas/GPUConfig',
- ],
- 'nasConfig' => [
- 'title' => '',
- 'description' => 'The File Storage NAS (NAS) configurations. The configurations allow the function to access the specified NAS file system.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'nasConfig',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'cpu' => [
- 'title' => '',
- 'description' => 'The CPU power allocated to the function. Unit: vCPUs. The value must be a multiple of 0.05.'."\n",
- 'visibility' => 'public',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'cpu',
- ],
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my function',
- 'maxLength' => 256,
- 'backendName' => 'description',
- ],
- 'runtime' => [
- 'title' => '',
- 'description' => 'The runtime of the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'nodejs14',
- 'backendName' => 'runtime',
- ],
- 'customContainerConfig' => [
- 'title' => '',
- 'description' => 'The configurations of the Custom Container runtime. After you configure a Custom Container runtime for your function, Function Compute can execute the function in a custom container image. Configure either code or customContainerConfig.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'customContainerConfig',
- '$ref' => '#/components/schemas/CustomContainerConfig',
- ],
- 'instanceConcurrency' => [
- 'title' => '',
- 'description' => 'The maximum number of requests that a function instance can process at a time.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'instanceConcurrency',
- ],
- 'timeout' => [
- 'title' => '',
- 'description' => 'The timeout period for function execution. Unit: seconds. Minimum value: 1. Default value: 3. The execution of the function is terminated when the timeout period expires.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '60',
- 'backendName' => 'timeout',
- ],
- 'diskSize' => [
- 'title' => '',
- 'description' => 'The disk size of the function. Unit: MB. Valid values: 512 and 10240.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- 'backendName' => 'diskSize',
- ],
- 'memorySize' => [
- 'title' => '',
- 'description' => 'The memory capacity for the function. Unit: MB. The value must be a multiple of 64. The capacity varies based on the type of the function instance.'."\n",
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- 'backendName' => 'memorySize',
- ],
- 'customDNS' => [
- 'title' => '',
- 'description' => 'The custom DNS settings of the function.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'customDNS',
- '$ref' => '#/components/schemas/CustomDNS',
- ],
- 'internetAccess' => [
- 'title' => 'service config',
- 'description' => 'Specifies whether to allow the function to access the Internet.'."\n",
- 'visibility' => 'public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'internetAccess',
- ],
+ 'code' => ['title' => '', 'description' => 'The ZIP package of the function code. Specify either code or customContainerConfig.', 'required' => false, '$ref' => '#/components/schemas/InputCodeLocation', 'example' => ''],
+ 'cpu' => ['title' => '', 'description' => 'The CPU specification of the function. Unit: vCPU. The value must be a multiple of 0.05 vCPU.', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1'],
+ 'customContainerConfig' => ['title' => '', 'description' => 'The configuration of the custom container runtime. After this parameter is configured, the function can use a custom container image for execution. Specify either code or customContainerConfig.', 'required' => false, '$ref' => '#/components/schemas/CustomContainerConfig', 'example' => ''],
+ 'customDNS' => ['title' => '', 'description' => 'The custom DNS configuration.', 'required' => false, '$ref' => '#/components/schemas/CustomDNS', 'example' => ''],
+ 'customRuntimeConfig' => ['title' => '', 'description' => 'The custom runtime configuration.', 'required' => false, '$ref' => '#/components/schemas/CustomRuntimeConfig', 'example' => ''],
+ 'description' => ['title' => '', 'description' => 'The description of the function.', 'type' => 'string', 'required' => false, 'example' => 'my function', 'maxLength' => 256],
+ 'diskSize' => ['title' => '', 'description' => 'The disk specification of the function. Unit: MB. Valid values: 512 and 10240.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
'environmentVariables' => [
'title' => '',
- 'description' => 'The environment variables of the function. You can access the specified environment variables in the runtime.'."\n",
- 'visibility' => 'public',
+ 'description' => 'The environment variables of the function. You can access the configured environment variables in the runtime environment.',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'value1',
- 'description' => '',
- ],
- 'backendName' => 'environmentVariables',
- ],
- 'vpcConfig' => [
- 'title' => '',
- 'description' => 'The Virtual Private Cloud (VPC) configurations. The configurations allow the function to access the specified VPC resources.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'vpcConfig',
- '$ref' => '#/components/schemas/VPCConfig',
+ 'additionalProperties' => ['type' => 'string', 'example' => 'value1', 'description' => '', 'title' => ''],
+ 'example' => '',
],
+ 'gpuConfig' => ['title' => '', 'description' => 'The GPU configuration of the function.', 'required' => false, '$ref' => '#/components/schemas/GPUConfig', 'example' => ''],
+ 'handler' => ['title' => '', 'description' => 'The function entry point. The specific format depends on the runtime.', 'type' => 'string', 'required' => false, 'example' => 'index.handler', 'maxLength' => 128, 'minLength' => 1],
+ 'instanceConcurrency' => ['title' => '', 'description' => 'The maximum concurrency of an instance.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'instanceLifecycleConfig' => ['title' => '', 'description' => 'The instance lifecycle hook configuration.', 'required' => false, '$ref' => '#/components/schemas/InstanceLifecycleConfig', 'example' => ''],
+ 'internetAccess' => ['title' => '', 'description' => 'Specifies whether to allow access to the Internet.', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'layers' => [
'title' => '',
- 'description' => 'The layers. Multiple layers are merged based on the order of array subscripts. If two layers have the same file name, the content of the layer with the smaller subscript will overwrite the content of the layer with the larger subscript.'."\n",
- 'visibility' => 'public',
+ 'description' => 'The list of layers. Multiple layers are merged in descending order of array index. Files in a layer with a smaller index overwrite files with the same name in a layer with a larger index.',
'type' => 'array',
- 'items' => [
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the layer.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => '层ARN。', 'type' => 'string', 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1', 'title' => ''],
'required' => false,
- 'backendName' => 'layers',
+ 'example' => '',
+ ],
+ 'logConfig' => ['title' => '', 'description' => 'The log configuration. Logs generated by the function are written to the configured Logstore.', 'required' => false, '$ref' => '#/components/schemas/LogConfig', 'example' => ''],
+ 'memorySize' => ['title' => '', 'description' => 'The memory specification of the function. Unit: MB. The value must be a multiple of 64 MB. The memory specification varies based on the function instance type.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
+ 'nasConfig' => ['title' => '', 'description' => 'The NAS configuration. After this parameter is configured, the function can access the specified NAS resources.', 'required' => false, '$ref' => '#/components/schemas/NASConfig', 'example' => ''],
+ 'ossMountConfig' => ['title' => '', 'description' => 'The OSS mount configuration.', 'required' => false, '$ref' => '#/components/schemas/OSSMountConfig', 'example' => ''],
+ 'role' => ['title' => '', 'description' => 'The Alibaba Cloud Resource Access Management (RAM) role that grants Function Compute the required permissions. Scenarios include: 1. Sending logs generated by the function to your Logstore. 2. Generating temporary access tokens for the function to access other cloud resources during the execute procedure.', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::188077086902****:role/fc-test', 'maxLength' => 300],
+ 'runtime' => ['title' => '', 'description' => 'The runtime environment of the function.', 'type' => 'string', 'required' => false, 'example' => 'nodejs14'],
+ 'timeout' => ['title' => '', 'description' => 'The timeout period for function execution. Unit: seconds. Minimum value: 1. Default value: 3. The function is terminated if it exceeds this time limit.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
+ 'tracingConfig' => ['title' => '', 'description' => '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 function operations.', 'required' => false, '$ref' => '#/components/schemas/TracingConfig', 'example' => ''],
+ 'vpcConfig' => ['title' => '', 'description' => 'The VPC configuration. After this parameter is configured, the function can access the specified VPC resources.', 'required' => false, '$ref' => '#/components/schemas/VPCConfig', 'example' => ''],
+ 'disableOndemand' => ['title' => '', 'description' => '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.', 'type' => 'boolean', 'example' => '', 'deprecated' => true],
+ 'sessionAffinity' => ['title' => '', 'description' => '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.', 'type' => 'string', 'example' => 'MCP_SSE'],
+ 'enableLongLiving' => ['title' => '', 'description' => 'Specifies whether to allow provisioned instances of GPU functions to be long-running. When this feature is enabled, function instances that are created are not injected with STS tokens.', 'type' => 'boolean', 'example' => '', 'deprecated' => true],
+ 'instanceIsolationMode' => [
+ 'title' => '',
+ 'description' => 'The instance isolation mode.',
+ 'type' => 'string',
+ 'example' => '',
+ 'enum' => ['SHARE', 'REQUEST_EXCLUSIVE', 'SESSION_EXCLUSIVE'],
],
- 'ossMountConfig' => [
+ 'sessionAffinityConfig' => ['title' => '', 'description' => 'The affinity configuration that corresponds to the sessionAffinity type. For MCP_SSE affinity, configure MCPSSESessionAffinityConfig. For cookie-based affinity, configure CookieSessionAffinityConfig. For header field affinity, configure HeaderFieldSessionAffinityConfig.', 'type' => 'string', 'example' => '{\\"sseEndpointPath\\":\\"/sse\\", \\"sessionConcurrencyPerInstance\\":20}'],
+ 'idleTimeout' => ['title' => '', 'description' => 'The deferred release time of the instance.', 'type' => 'integer', 'example' => '100', 'format' => 'int32'],
+ 'disableInjectCredentials' => [
'title' => '',
- 'description' => 'The Object Storage Service (OSS) mounting configurations.'."\n",
- 'visibility' => 'public',
- 'required' => false,
- 'backendName' => 'ossMountConfig',
- '$ref' => '#/components/schemas/OSSMountConfig',
+ 'description' => 'Specifies whether to disable STS token injection. Valid values:'."\n"
+ .'- None: STS tokens are injected in all methods.'."\n"
+ .'- Env: STS tokens are not injected through environment variables.'."\n"
+ .'- Request: STS tokens are not injected through requests, including context and headers.'."\n"
+ .'- All: STS tokens are not injected in any method.',
+ 'type' => 'string',
+ 'example' => 'Env',
+ 'default' => 'None',
+ 'enum' => ['None', 'Env', 'Request', 'All'],
],
+ 'polarFsConfig' => ['description' => 'The PolarFs configuration. After this parameter is configured, the function can access the specified PolarFs resources.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => '', 'description' => '', 'example' => '', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'microSandboxConfig' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/MicroSandboxConfig'],
],
+ 'example' => '',
],
'UpdateSessionInput' => [
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The parameters for updating a session.',
'type' => 'object',
'properties' => [
- 'sessionTTLInSeconds' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- 'backendName' => 'sessionTTLInSeconds',
- ],
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- 'backendName' => 'sessionIdleTimeoutInSeconds',
- ],
- ],
+ 'sessionTTLInSeconds' => ['title' => '', 'description' => 'The session lifetime.', 'type' => 'integer', 'example' => '21600', 'format' => 'int64'],
+ 'sessionIdleTimeoutInSeconds' => ['title' => '', 'description' => 'The session idle timeout period.', 'type' => 'integer', 'example' => '1800', 'format' => 'int64'],
+ 'disableSessionIdReuse' => ['title' => '', 'description' => 'Specifies whether to disable session ID reuse after the session expires. Valid values:'."\n"
+ .'- False: After the session associated with a SessionID expires, you can use the same SessionID to initiate requests. The system treats this as a new session and binds it to a new instance.'."\n"
+ .'- True: After the session associated with a SessionID expires, the SessionID cannot be reused.'."\n"
+ .'Default value: False.', 'type' => 'boolean', 'example' => 'false'],
+ 'nasConfig' => ['title' => '', 'description' => '', 'example' => '', '$ref' => '#/components/schemas/NASConfig'],
+ 'ossMountConfig' => ['title' => '', 'description' => '', 'example' => '', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'polarFsConfig' => ['title' => '', 'description' => '', 'example' => '', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => '', 'description' => '', 'example' => '', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'enableAutoPause' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ 'enableAutoResume' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
],
'UpdateTriggerInput' => [
- 'title' => '',
+ 'title' => '更新触发器的请求参数',
'description' => 'The information about request parameters for updating the trigger.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the trigger.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'trigger for test',
- 'maxLength' => 256,
- 'backendName' => 'description',
- ],
- 'invocationRole' => [
- 'title' => '',
- 'description' => 'The role that is used by the event source such as object Storage Service (OSS) to invoke the function.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::1234567890:role/fc-test',
- 'maxLength' => 300,
- 'backendName' => 'invocationRole',
- ],
- 'qualifier' => [
- 'title' => '',
- 'description' => 'The version or alias of the service to which the function belongs.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- 'backendName' => 'qualifier',
- ],
- 'triggerConfig' => [
- 'title' => '',
- 'description' => 'The configuration of the trigger. The configuration vary based on the trigger type.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}}',
- 'backendName' => 'triggerConfig',
- ],
+ 'description' => ['title' => '触发器的描述。', 'description' => 'The description of the trigger.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'trigger for test', 'maxLength' => 256, 'backendName' => 'description'],
+ 'invocationRole' => ['title' => '事件源(如OSS)调用函数所需的角色。', 'description' => 'The role that is used by the event source such as object Storage Service (OSS) to invoke the function.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1234567890:role/fc-test', 'maxLength' => 300, 'backendName' => 'invocationRole'],
+ 'qualifier' => ['title' => '函数的版本或别名。', 'description' => 'The version or alias of the service to which the function belongs.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'backendName' => 'qualifier'],
+ 'triggerConfig' => ['title' => '触发器配置,针对不同类型的触发器,配置有所不同。', 'description' => 'The configuration of the trigger. The configuration vary based on the trigger type.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '{"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}}', 'backendName' => 'triggerConfig'],
],
],
'Version' => [
- 'title' => '',
+ 'title' => '版本信息',
'description' => 'The version information.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'createdTime' => [
- 'title' => '',
- 'description' => 'The time when the version was created.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- 'backendName' => 'createdTime',
- ],
- 'description' => [
- 'title' => '',
- 'description' => 'The description of the layer version.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my version',
- 'backendName' => 'description',
- ],
- 'lastModifiedTime' => [
- 'title' => '',
- 'description' => 'The time when the version was last updated.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- 'backendName' => 'lastModifiedTime',
- ],
- 'versionId' => [
- 'title' => '',
- 'description' => 'The version ID.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- 'backendName' => 'versionId',
- ],
+ 'createdTime' => ['title' => '创建时间', 'description' => 'The time when the version was created.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'createdTime'],
+ 'description' => ['title' => '版本描述信息', 'description' => 'The description of the layer version.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my version', 'backendName' => 'description'],
+ 'lastModifiedTime' => ['title' => '更新时间', 'description' => 'The time when the version was last updated.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'lastModifiedTime'],
+ 'versionId' => ['title' => '版本ID', 'description' => 'The version ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1', 'backendName' => 'versionId'],
],
],
'VPCConfig' => [
- 'title' => '',
+ 'title' => 'VPC配置',
'description' => 'The Virtual Private Cloud (VPC) configurations.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'securityGroupId' => [
- 'title' => '',
- 'description' => 'The security group ID.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sg-bp18hj1wtxgy3b0***',
- 'maxLength' => 50,
- 'backendName' => 'securityGroupId',
- ],
+ 'securityGroupId' => ['title' => '安全组ID。', 'description' => 'The security group ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'sg-bp18hj1wtxgy3b0***', 'maxLength' => 50, 'backendName' => 'securityGroupId'],
'vSwitchIds' => [
- 'title' => '',
+ 'title' => '交换机列表。',
'description' => 'The list of vSwitches.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'The vSwitch ID.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'vsw-bp1ozpcrdc6r****',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'The vSwitch ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'vsw-bp1ozpcrdc6r****', 'extendType' => 'true'],
'required' => false,
'maxItems' => 10,
'backendName' => 'vSwitchIds',
],
- 'vpcId' => [
- 'title' => '',
- 'description' => 'The VPC ID.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc-***',
- 'maxLength' => 50,
- 'backendName' => 'vpcId',
- ],
- 'role' => [
- 'title' => '',
- 'description' => 'The RAM role that is assumed by Function Compute to access VPC.'."\n",
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'acs:ram::188077086902****:role/fc-test',
- 'backendName' => 'role',
- ],
+ 'vpcId' => ['title' => 'VPC网络ID。', 'description' => 'The VPC ID.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vpc-***', 'maxLength' => 50, 'backendName' => 'vpcId'],
+ 'role' => ['title' => '授予函数计算访问用户VPC所需权限的RAM角色', 'description' => 'The RAM role that is assumed by Function Compute to access VPC.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'acs:ram::188077086902****:role/fc-test', 'backendName' => 'role'],
],
],
'WAFConfig' => [
- 'title' => '',
+ 'title' => '自定义域名 WAF 开启/关闭 配置',
'description' => 'The Web Application Firewall (WAF) configuration of the custom domain name.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'enableWAF' => [
- 'title' => '',
- 'description' => 'Specifies whether to enable WAF protection.'."\n",
- 'visibility' => 'public',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'backendName' => 'enableWAF',
- ],
+ 'enableWAF' => ['title' => '是否开启 WAF 防护', 'description' => 'Specifies whether to enable WAF protection.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'enableWAF'],
],
],
'WildcardRule' => [
- 'title' => '',
+ 'title' => '自定义域名通配符重写规则配置',
'description' => 'The information about the configurations of the wildcard rewrite rule for custom domain names.'."\n",
- 'visibility' => 'public',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'match' => [
- 'title' => '',
- 'description' => 'The matching rule.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/api/*',
- 'maxLength' => 256,
- 'backendName' => 'match',
- ],
- 'replacement' => [
- 'title' => '',
- 'description' => 'The replacement rule.'."\n",
- 'visibility' => 'public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/$1',
- 'maxLength' => 256,
- 'backendName' => 'replacement',
- ],
+ 'match' => ['title' => '匹配规则', 'description' => 'The matching rule.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/api/*', 'maxLength' => 256, 'backendName' => 'match'],
+ 'replacement' => ['title' => '替换规则', 'description' => 'The replacement rule.'."\n", 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/$1', 'maxLength' => 256, 'backendName' => 'replacement'],
],
],
],
],
'apis' => [
'ChangeResourceGroup' => [
- 'summary' => 'Updates the resource group of a Function Compute resource.',
+ 'summary' => 'Changes the resource group of a Function Compute resource.',
'path' => '/2023-03-30/resource-groups',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcUV7P9M',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcUV7P9M'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -6687,135 +2792,126 @@
[
'name' => 'body',
'in' => 'body',
- 'schema' => [
- 'description' => 'The request details for updating the resource group.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ChangeResourceGroupInput',
- ],
+ 'schema' => ['description' => 'The request body to change the resource group.', '$ref' => '#/components/schemas/ChangeResourceGroupInput', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'The response details for updating the resource group.'."\n",
- '$ref' => '#/components/schemas/ChangeResourceGroupOutput',
- ],
+ 'schema' => ['description' => 'The response body after the resource group is changed.', '$ref' => '#/components/schemas/ChangeResourceGroupOutput', 'title' => '', 'example' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'ChangeResourceGroup',
+ 'description' => 'To change the resource group of a Function Compute resource, you must have the ChangeResourceGroup permission for both the current and target resource groups.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:ChangeResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'Function', 'arn' => 'acs:fc:{#regionId}:{#accountId}:functions/{#FunctionName}'],
+ ],
+ ],
+ ],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ResourceId\\": \\"\\",\\n \\"NewResourceGroupId\\": \\"\\",\\n \\"OldResourceGroupId\\": \\"\\"\\n}","type":"json"}]',
- 'title' => 'ChangeResourceGroup',
- 'description' => 'To update the resource group of a Function Compute resource, you must grant the user the ChangeResourceGroup permission on both the current resource group and the target resource group.'."\n",
],
- 'DescribeRegions' => [
- 'summary' => 'Queries the regions where Function Compute 3.0 is available.',
- 'path' => '/2023-03-30/regions',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'CreateAlias' => [
+ 'summary' => 'Creates an alias.',
+ 'path' => '/2023-03-30/functions/{functionName}/aliases',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- 'FEATUREfcAXUA30',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '178535',
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'AcceptLanguage',
- 'in' => 'query',
- 'schema' => [
- 'title' => '根据汉语、英语等语言筛选返回结果。更多详情,请参见RFC 7231。取值范围:'."\n"
- ."\n"
- .'zh-CN:中文。'."\n"
- .'en-US:英文。'."\n"
- .'ja:日语'."\n"
- .'默认值:zh-CN。',
- 'description' => 'The language in which the list of regions is returned. For more information, see RFC 7231. Valid values:'."\n"
- ."\n"
- .'* zh-CN: Simplified Chinese.'."\n"
- .'* en-US: English.'."\n"
- .'* ja: Japanese'."\n"
- ."\n"
- .'Default value: en-US'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh-CN',
- 'default' => 'zh-CN',
- 'enum' => [
- 'zh-CN',
- 'en-US',
- 'ja',
- ],
- ],
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The request parameters to create an alias.', 'required' => true, '$ref' => '#/components/schemas/CreateAliasInput', 'title' => '', 'example' => ''],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => 'The response parameters.'."\n",
- '$ref' => '#/components/schemas/DescribeRegionsOutput',
- ],
+ 'description' => '创建的别名信息',
+ 'schema' => ['description' => 'The information about the alias.', 'required' => false, '$ref' => '#/components/schemas/Alias', 'title' => '', 'example' => ''],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
+ 'examples' => [],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'IdempotentParameterMismatch',
- 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'CreateAlias',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAlias'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"RegionId\\": \\"\\",\\n \\"LocalName\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => 'DescribeRegions',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 0.5\\n },\\n \\"aliasName\\": \\"prod\\",\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"alias for pre env\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n}","type":"json"}]',
],
'CreateCustomDomain' => [
- 'summary' => 'Creates a custom domain name.',
'path' => '/2023-03-30/custom-domains',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
@@ -6823,9 +2919,7 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '178552',
- 'abilityTreeNodes' => [
- 'FEATUREfcJ7WA06',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcJ7WA06'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -6834,530 +2928,437 @@
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => 'The information about the custom domain name.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/CreateCustomDomainInput',
- ],
+ 'schema' => ['description' => 'The information about the custom domain name.', 'required' => true, '$ref' => '#/components/schemas/CreateCustomDomainInput', 'title' => '', 'example' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '自定义域名信息',
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => 'The information about the custom domain name.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'schema' => ['description' => 'The information about the custom domain name.', 'required' => false, '$ref' => '#/components/schemas/CustomDomain', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"accountId\\": \\"\\",\\n \\"apiVersion\\": \\"2023-03-30\\",\\n \\"authConfig\\": {\\n \\"authInfo\\": \\"{}\\",\\n \\"authType\\": \\"anonymous, function, jwt\\"\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"PEM format\\",\\n \\"privateKey\\": \\"PEM format\\"\\n },\\n \\"createdTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"domainName\\": \\"example.com\\",\\n \\"lastModifiedTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"myFunction\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/api/*\\",\\n \\"qualifier\\": \\"myAlias\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/api/.+?/(.*)\\",\\n \\"replacement\\": \\"/api/v2/$1\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"subdomainCount\\": \\"1\\",\\n \\"tlsConfig\\": {\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\",\\n \\"minVersion\\": \\"TLSv1.0\\"\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n },\\n \\"corsConfig\\": {\\n \\"allowOrigins\\": [\\n \\"\\"\\n ],\\n \\"allowMethods\\": [\\n \\"\\"\\n ],\\n \\"allowHeaders\\": [\\n \\"\\"\\n ],\\n \\"exposeHeaders\\": [\\n \\"\\"\\n ],\\n \\"allowCredentials\\": true,\\n \\"maxAge\\": 3600\\n }\\n}","type":"json"}]',
'title' => 'CreateCustomDomain',
- 'description' => 'If you want to use a fixed domain name to access an application or function in a production environment of Function Compute, or to resolve the issue of forced downloads when accessing an HTTP trigger, you can bind a custom domain name to the application or function.'."\n",
- ],
- 'DeleteCustomDomain' => [
- 'summary' => 'Deletes a custom domain name.',
- 'path' => '/2023-03-30/custom-domains/{domainName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'summary' => 'Creates a custom domain name.',
+ 'description' => 'You can attach a custom domain name to an application or function in Function Compute to access it through a fixed domain name in a production environment, or to resolve the forced download behavior when you access an HTTP trigger.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCustomDomain'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"accountId\\": \\"186851234023****\\",\\n \\"apiVersion\\": \\"2023-03-30\\",\\n \\"authConfig\\": {\\n \\"authInfo\\": \\"{}\\",\\n \\"authType\\": \\"anonymous\\"\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"PEM format\\",\\n \\"privateKey\\": \\"PEM format\\"\\n },\\n \\"createdTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"domainName\\": \\"example.com\\",\\n \\"lastModifiedTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"myFunction\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/api/*\\",\\n \\"qualifier\\": \\"myAlias\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/api/.+?/(.*)\\",\\n \\"replacement\\": \\"/api/v2/$1\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"subdomainCount\\": \\"1\\",\\n \\"tlsConfig\\": {\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\",\\n \\"minVersion\\": \\"TLSv1.0\\"\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n },\\n \\"corsConfig\\": {\\n \\"allowOrigins\\": [\\n \\"\\"\\n ],\\n \\"allowMethods\\": [\\n \\"\\"\\n ],\\n \\"allowHeaders\\": [\\n \\"\\"\\n ],\\n \\"exposeHeaders\\": [\\n \\"\\"\\n ],\\n \\"allowCredentials\\": true,\\n \\"maxAge\\": 3600\\n },\\n \\"isE2B\\": false\\n}","type":"json"}]',
+ ],
+ 'CreateFunction' => [
+ 'path' => '/2023-03-30/functions',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '178514',
- 'abilityTreeNodes' => [
- 'FEATUREfcJ7WA06',
- ],
+ 'abilityTreeCode' => '178509',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'domainName',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '域名',
- 'description' => 'The domain name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'foo.bar.com',
- ],
+ 'schema' => ['title' => '', 'description' => 'The function configuration information.', 'required' => true, '$ref' => '#/components/schemas/CreateFunctionInput', 'example' => ''],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'schema' => ['title' => '', 'description' => 'The function configuration information.', 'required' => false, '$ref' => '#/components/schemas/Function', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '', 'description' => 'The error message.', 'required' => false, '$ref' => '#/components/schemas/Error', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteCustomDomain',
- ],
- 'GetCustomDomain' => [
- 'summary' => 'Queries information about a custom domain name.',
- 'path' => '/2023-03-30/custom-domains/{domainName}',
- 'methods' => [
- 'get',
+ 'title' => 'Create a function',
+ 'summary' => 'Creates a function by calling the CreateFunction operation.',
+ 'description' => 'When you create a function by using an OSS code package, if the error "unable to access object xxx in bucket xxx" is reported, grant the current user access permissions on the OSS bucket. For example, you can use the system access policy AliyunOSSReadOnlyAccess or a custom policy with finer granularity of authorization such as oss:GetObject. For details about the policy content, see [Grant a Resource Access Management (RAM) user permissions to read all resources in a bucket](~~199058~~).',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFunction'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'CreateLayerVersion' => [
+ 'summary' => 'This operation publishes a layer version.',
+ 'path' => '/2023-03-30/layers/{layerName}/versions',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178522',
- 'abilityTreeNodes' => [
- 'FEATUREfcJ7WA06',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '178533',
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'domainName',
+ 'name' => 'layerName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '域名',
- 'description' => 'The domain name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'foo.bar.com',
- ],
+ 'schema' => ['description' => 'The name of the layer.', 'type' => 'string', 'required' => true, 'example' => 'my-layer', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The configuration of the layer.', 'required' => true, '$ref' => '#/components/schemas/CreateLayerVersionInput', 'title' => '', 'example' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '自定义域名信息',
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => 'The information about the custom domain name.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'description' => '层配置信息',
+ 'schema' => ['description' => 'The configuration of the layer.', 'required' => false, '$ref' => '#/components/schemas/Layer', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"accountId\\": \\"\\",\\n \\"apiVersion\\": \\"2023-03-30\\",\\n \\"authConfig\\": {\\n \\"authInfo\\": \\"{}\\",\\n \\"authType\\": \\"anonymous, function, jwt\\"\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"PEM format\\",\\n \\"privateKey\\": \\"PEM format\\"\\n },\\n \\"createdTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"domainName\\": \\"example.com\\",\\n \\"lastModifiedTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"myFunction\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/api/*\\",\\n \\"qualifier\\": \\"myAlias\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/api/.+?/(.*)\\",\\n \\"replacement\\": \\"/api/v2/$1\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"subdomainCount\\": \\"1\\",\\n \\"tlsConfig\\": {\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\",\\n \\"minVersion\\": \\"TLSv1.0\\"\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n },\\n \\"corsConfig\\": {\\n \\"allowOrigins\\": [\\n \\"\\"\\n ],\\n \\"allowMethods\\": [\\n \\"\\"\\n ],\\n \\"allowHeaders\\": [\\n \\"\\"\\n ],\\n \\"exposeHeaders\\": [\\n \\"\\"\\n ],\\n \\"allowCredentials\\": true,\\n \\"maxAge\\": 3600\\n }\\n}","type":"json"}]',
- 'title' => 'GetCustomDomain',
- ],
- 'ListCustomDomains' => [
- 'summary' => 'Queries custom domain names.',
- 'path' => '/2023-03-30/custom-domains',
- 'methods' => [
- 'get',
+ 'title' => 'CreateLayerVersion',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateLayerVersion'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'tags' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n}","type":"json"}]',
+ ],
+ 'CreateSession' => [
+ 'summary' => 'Creates an explicit session resource. The system automatically generates a unique SessionID, pre-allocates a function instance, and binds it to the session. You can specify TTL and IdleTimeout. This operation applies to the HEADER_FIELD or GENERATED_COOKIE affinity types, enabling session warm-up and configuration initialization. After the call, you can include the session in InvokeFunction requests for request routing.',
+ 'path' => '/2023-03-30/functions/{functionName}/sessions',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '178557',
- 'abilityTreeNodes' => [
- 'FEATUREfcJ7WA06',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'prefix',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '域名前缀',
- 'description' => 'The domain name prefix.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'foo',
- ],
- 'examples' => [],
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the function for which to create the session.', 'type' => 'string', 'example' => 'my-func', 'required' => false],
],
[
- 'name' => 'nextToken',
+ 'name' => 'qualifier',
'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '', 'description' => 'The version or alias of the function to which the session belongs.', 'type' => 'string', 'example' => 'aliasName1', 'required' => false],
],
[
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的自定义域名数量',
- 'description' => 'The number of custom domain names returned.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['title' => '', 'description' => 'The session configuration.', '$ref' => '#/components/schemas/CreateSessionInput', 'required' => false, 'example' => ''],
],
],
'responses' => [
200 => [
- 'description' => '自定义域名列表',
- 'schema' => [
- 'title' => '自定义域名列表',
- 'description' => 'The custom domain names.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListCustomDomainOutput',
- ],
- 'examples' => [],
- ],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '', 'description' => 'The session resource information.', '$ref' => '#/components/schemas/Session', 'example' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Create a session resource',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"customDomains\\": [\\n {\\n \\"accountId\\": \\"\\",\\n \\"apiVersion\\": \\"2023-03-30\\",\\n \\"authConfig\\": {\\n \\"authInfo\\": \\"{}\\",\\n \\"authType\\": \\"anonymous, function, jwt\\"\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"PEM format\\",\\n \\"privateKey\\": \\"PEM format\\"\\n },\\n \\"createdTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"domainName\\": \\"example.com\\",\\n \\"lastModifiedTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"myFunction\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/api/*\\",\\n \\"qualifier\\": \\"myAlias\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/api/.+?/(.*)\\",\\n \\"replacement\\": \\"/api/v2/$1\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"subdomainCount\\": \\"1\\",\\n \\"tlsConfig\\": {\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\",\\n \\"minVersion\\": \\"TLSv1.0\\"\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n },\\n \\"corsConfig\\": {\\n \\"allowOrigins\\": [\\n \\"\\"\\n ],\\n \\"allowMethods\\": [\\n \\"\\"\\n ],\\n \\"allowHeaders\\": [\\n \\"\\"\\n ],\\n \\"exposeHeaders\\": [\\n \\"\\"\\n ],\\n \\"allowCredentials\\": true,\\n \\"maxAge\\": 3600\\n }\\n }\\n ],\\n \\"nextToken\\": \\"next_domain_name\\"\\n}","type":"json"}]',
- 'title' => 'ListCustomDomains',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": false,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"readOnly\\": false\\n }\\n ]\\n },\\n \\"juiceFsConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"volumeName\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"token\\": \\"\\",\\n \\"args\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"envs\\": {\\n \\"key\\": \\"\\"\\n }\\n },\\n \\"enableAutoPause\\": false,\\n \\"enableAutoResume\\": false\\n}","type":"json"}]',
],
- 'UpdateCustomDomain' => [
- 'summary' => 'Update a custom domain name.',
- 'path' => '/2023-03-30/custom-domains/{domainName}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateTrigger' => [
+ 'path' => '/2023-03-30/functions/{functionName}/triggers',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178510',
- 'abilityTreeNodes' => [
- 'FEATUREfcJ7WA06',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '178518',
+ 'abilityTreeNodes' => ['FEATUREfc0CDUNQ'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'domainName',
+ 'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '域名',
- 'description' => 'The domain name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'foo.bar.com',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => 'The information about the custom domain name.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateCustomDomainInput',
- ],
+ 'schema' => ['description' => 'The trigger configuration.', 'required' => true, '$ref' => '#/components/schemas/CreateTriggerInput', 'title' => '', 'example' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '自定义域名信息',
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => 'The information about the custom domain name.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'schema' => ['description' => 'The trigger configuration.', 'required' => false, '$ref' => '#/components/schemas/Trigger', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"accountId\\": \\"\\",\\n \\"apiVersion\\": \\"2023-03-30\\",\\n \\"authConfig\\": {\\n \\"authInfo\\": \\"{}\\",\\n \\"authType\\": \\"anonymous, function, jwt\\"\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"PEM format\\",\\n \\"privateKey\\": \\"PEM format\\"\\n },\\n \\"createdTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"domainName\\": \\"example.com\\",\\n \\"lastModifiedTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"myFunction\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/api/*\\",\\n \\"qualifier\\": \\"myAlias\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/api/.+?/(.*)\\",\\n \\"replacement\\": \\"/api/v2/$1\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"subdomainCount\\": \\"1\\",\\n \\"tlsConfig\\": {\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\",\\n \\"minVersion\\": \\"TLSv1.0\\"\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n },\\n \\"corsConfig\\": {\\n \\"allowOrigins\\": [\\n \\"\\"\\n ],\\n \\"allowMethods\\": [\\n \\"\\"\\n ],\\n \\"allowHeaders\\": [\\n \\"\\"\\n ],\\n \\"exposeHeaders\\": [\\n \\"\\"\\n ],\\n \\"allowCredentials\\": true,\\n \\"maxAge\\": 3600\\n }\\n}","type":"json"}]',
- 'title' => 'UpdateCustomDomain',
- ],
- 'DeleteFunctionVersion' => [
- 'summary' => 'Deletes a function version.',
- 'path' => '/2023-03-30/functions/{functionName}/versions/{versionId}',
- 'methods' => [
- 'delete',
+ 'title' => 'CreateTrigger',
+ 'summary' => 'Creates a trigger.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTrigger'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2020-08-20T02:28:21Z\\",\\n \\"description\\": \\"test_description\\",\\n \\"httpTrigger\\": {\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n },\\n \\"invocationRole\\": \\"acs:ram::151641468453****:role/my-role\\",\\n \\"lastModifiedTime\\": \\"2020-04-23T06:32:43Z\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"sourceArn\\": \\"acs:oss:cn-hangzhou:151641468453****:my-bucket\\",\\n \\"status\\": \\"OK\\",\\n \\"targetArn\\": \\"acs:oss:cn-hangzhou:151641468453****:my-bucket\\",\\n \\"triggerConfig\\": \\"{\\\\n \\\\\\"events\\\\\\": [\\\\n \\\\\\"oss:ObjectCreated:*\\\\\\"\\\\n ],\\\\n \\\\\\"filter\\\\\\": {\\\\n \\\\\\"key\\\\\\": {\\\\n \\\\\\"prefix\\\\\\": \\\\\\"/prefix\\\\\\",\\\\n \\\\\\"suffix\\\\\\": \\\\\\".zip\\\\\\"\\\\n }\\\\n }\\\\n}\\",\\n \\"triggerId\\": \\"546959b5-ce1a-4991-8891-df7a02b25086\\",\\n \\"triggerName\\": \\"defaultTrigger\\",\\n \\"triggerType\\": \\"http\\"\\n}","type":"json"}]',
+ ],
+ 'CreateVpcBinding' => [
+ 'summary' => 'Creates a VPC connection.',
+ 'path' => '/2023-03-30/functions/{functionName}/vpc-bindings',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => [],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '178526',
- 'abilityTreeNodes' => [
- 'FEATUREfcDTB0I5',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '191967',
+ 'abilityTreeNodes' => ['FEATUREfcL3E8J5'],
'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数版本。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'versionId',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数版本',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The VPC binding configuration.', 'required' => true, '$ref' => '#/components/schemas/CreateVpcBindingInput', 'title' => '', 'example' => ''],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteFunctionVersion',
- ],
- 'GetFunctionCode' => [
- 'summary' => 'Queries a code package of a function.',
- 'path' => '/2023-03-30/functions/{functionName}/code',
- 'methods' => [
- 'get',
+ 'title' => 'CreateVpcBinding',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateVpcBinding'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateVpcBinding',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteAlias' => [
+ 'summary' => 'Deletes an alias.',
+ 'path' => '/2023-03-30/functions/{functionName}/aliases/{aliasName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '179099',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '178517',
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -7366,89 +3367,74 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => 'Function name',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => 'The version or alias of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'name' => 'aliasName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The alias of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-alias', 'title' => ''],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数代码信息',
- 'schema' => [
- 'title' => '函数代码信息',
- 'description' => 'The information about the function code.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/OutputFuncCode',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"checksum\\": \\"1234567890\\",\\n \\"url\\": \\"http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f\\"\\n}","type":"json"}]',
- 'title' => 'GetFunctionCode',
- ],
- 'ListFunctionVersions' => [
- 'summary' => 'Queries versions of a function.',
- 'path' => '/2023-03-30/functions/{functionName}/versions',
- 'methods' => [
- 'get',
+ 'title' => 'DeleteAlias',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAlias'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteAsyncInvokeConfig' => [
+ 'summary' => 'Deletes an asynchronous invocation configuration.',
+ 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '178543',
- 'abilityTreeNodes' => [
- 'FEATUREfcDTB0I5',
- ],
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '178515',
+ 'abilityTreeNodes' => ['FEATUREfcBKET2W'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -7457,119 +3443,73 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'direction',
+ 'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '版本排序方式',
- 'description' => 'The sorting mode of function versions. Valid values: BACKWARD and FORWARD.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'BACKWARD',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的版本数量',
- 'description' => 'The number of function versions that are returned.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'The function version or alias.', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数版本列表',
- 'schema' => [
- 'title' => '函数版本列表',
- 'description' => 'The list of function versions.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListVersionsOutput',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"direction\\": \\"FORWARD\\",\\n \\"nextToken\\": \\"3\\",\\n \\"versions\\": [\\n {\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"my version\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListFunctionVersions',
- ],
- 'PublishFunctionVersion' => [
- 'summary' => 'Publishes a function version.',
- 'path' => '/2023-03-30/functions/{functionName}/versions',
- 'methods' => [
- 'post',
+ 'title' => 'DeleteAsyncInvokeConfig',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAsyncInvokeConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteFunctionAsyncInvokeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteConcurrencyConfig' => [
+ 'summary' => 'Deletes a concurrency configuration.',
+ 'path' => '/2023-03-30/functions/{functionName}/concurrency',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '178541',
- 'abilityTreeNodes' => [
- 'FEATUREfcDTB0I5',
- ],
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '178531',
+ 'abilityTreeNodes' => ['FEATUREfcM7AF1D'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -7578,165 +3518,134 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数版本信息',
- 'description' => 'The information about the function version.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/PublishVersionInput',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数版本信息',
- 'schema' => [
- 'title' => '函数版本信息',
- 'description' => 'The information about the function version.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Version',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"my version\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n}","type":"json"}]',
- 'title' => 'PublishFunctionVersion',
- ],
- 'CreateFunction' => [
- 'summary' => 'Creates a function.',
- 'path' => '/2023-03-30/functions',
- 'methods' => [
- 'post',
+ 'title' => 'DeleteConcurrencyConfig',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteConcurrencyConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteCustomDomain' => [
+ 'path' => '/2023-03-30/custom-domains/{domainName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '178509',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeCode' => '178514',
+ 'abilityTreeNodes' => ['FEATUREfcJ7WA06'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
+ 'name' => 'domainName',
+ 'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数配置信息',
- 'description' => 'The information about function configurations.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/CreateFunctionInput',
- ],
+ 'schema' => ['description' => 'The domain name.', 'type' => 'string', 'required' => true, 'example' => 'foo.bar.com', 'title' => ''],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数配置信息',
- 'schema' => [
- 'title' => '函数配置信息',
- 'description' => 'The function configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Function',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 412,\\n \\"cpu\\": 1,\\n \\"createdTime\\": \\"2023-04-01T08:15:27Z\\",\\n \\"customContainerConfig\\": {\\n \\"accelerationInfo\\": {\\n \\"status\\": \\"deprecated\\"\\n },\\n \\"accelerationType\\": \\"deprecated\\",\\n \\"acrInstanceId\\": \\"deprecated\\",\\n \\"command\\": [\\n \\"arg1\\"\\n ],\\n \\"entrypoint\\": [\\n \\"/code/bootstrap\\"\\n ],\\n \\"healthCheckConfig\\": {\\n \\"failureThreshold\\": 1,\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 1,\\n \\"periodSeconds\\": 1,\\n \\"successThreshold\\": 2,\\n \\"timeoutSeconds\\": 2\\n },\\n \\"image\\": \\"registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1\\",\\n \\"port\\": 9000,\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"password\\": \\"abc***\\",\\n \\"userName\\": \\"admin\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": true,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0\\"\\n },\\n \\"networkConfig\\": {\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxxx\\",\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxxx\\"\\n }\\n },\\n \\"resolvedImageUri\\": \\"stand-sh-registry-vpc.cn-shanghai.cr.aliyuncs.com/fc-demo2/springboot-helloworld@sha256:68d1****0d64d6\\"\\n },\\n \\"customDNS\\": {\\n \\"dnsOptions\\": [\\n {\\n \\"name\\": \\"ndots\\",\\n \\"value\\": \\"2\\"\\n }\\n ],\\n \\"nameServers\\": [\\n \\"8.8.x.x\\"\\n ],\\n \\"searches\\": [\\n \\"ns1.svc.cluster-domain.example\\"\\n ]\\n },\\n \\"customRuntimeConfig\\": {\\n \\"args\\": [\\n \\"arg1\\"\\n ],\\n \\"command\\": [\\n \\"/code/bootstrap\\"\\n ],\\n \\"healthCheckConfig\\": {\\n \\"failureThreshold\\": 1,\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 1,\\n \\"periodSeconds\\": 1,\\n \\"successThreshold\\": 2,\\n \\"timeoutSeconds\\": 2\\n },\\n \\"port\\": 9000\\n },\\n \\"description\\": \\"my function\\",\\n \\"diskSize\\": 512,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"value1\\"\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/functionName\\",\\n \\"functionId\\": \\"aa715851-1c20-4b89-a8fb-***\\",\\n \\"functionName\\": \\"my-function-1\\",\\n \\"gpuConfig\\": {\\n \\"gpuMemorySize\\": 2048,\\n \\"gpuType\\": \\"fc.gpu.tesla.1\\"\\n },\\n \\"handler\\": \\"index.handler\\",\\n \\"instanceConcurrency\\": 1,\\n \\"instanceLifecycleConfig\\": {\\n \\"initializer\\": {\\n \\"handler\\": \\"index.initializer\\",\\n \\"timeout\\": 10,\\n \\"command\\": [\\n \\"curl -X POST \'http://localhost:9000/preWarm\\"\\n ]\\n },\\n \\"preStop\\": {\\n \\"handler\\": \\"index.initializer\\",\\n \\"timeout\\": 10,\\n \\"command\\": [\\n \\"curl -X POST \'http://localhost:9000/preWarm\\"\\n ]\\n }\\n },\\n \\"internetAccess\\": true,\\n \\"lastModifiedTime\\": \\"2023-05-01T08:15:27Z\\",\\n \\"lastUpdateStatus\\": \\"InProgress\\",\\n \\"lastUpdateStatusReason\\": \\"The system is currently processing the acceleration optimization for the image.\\",\\n \\"lastUpdateStatusReasonCode\\": \\"ImageOptimizing\\",\\n \\"layers\\": [\\n {\\n \\"arn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"size\\": 421\\n }\\n ],\\n \\"logConfig\\": {\\n \\"enableInstanceMetrics\\": true,\\n \\"enableRequestMetrics\\": true,\\n \\"logBeginRule\\": \\"DefaultRegex\\",\\n \\"logstore\\": \\"test-logstore\\",\\n \\"project\\": \\"test-project\\",\\n \\"enableLlmMetrics\\": true\\n },\\n \\"memorySize\\": 512,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"role\\": \\"acs:ram::188077086902****:role/fc-test\\",\\n \\"runtime\\": \\"python3.10\\",\\n \\"state\\": \\"Pending\\",\\n \\"stateReason\\": \\"Function creating\\",\\n \\"stateReasonCode\\": \\"Creating\\",\\n \\"timeout\\": 60,\\n \\"tracingConfig\\": {\\n \\"params\\": {\\n \\"key\\": \\"tracing_analysis_jaeger_endpoint\\"\\n },\\n \\"type\\": \\"Jaeger\\"\\n },\\n \\"vpcConfig\\": {\\n \\"securityGroupId\\": \\"sg-bp18hj1wtxgy3b0***\\",\\n \\"vSwitchIds\\": [\\n \\"vsw-bp1ozpcrdc6r****\\"\\n ],\\n \\"vpcId\\": \\"vpc-***\\",\\n \\"role\\": \\"acs:ram::188077086902****:role/fc-test\\"\\n },\\n \\"tags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"disableOndemand\\": true,\\n \\"invocationRestriction\\": {\\n \\"reason\\": \\"\\",\\n \\"lastModifiedTime\\": \\"\\",\\n \\"disable\\": true\\n },\\n \\"sessionAffinity\\": \\"\\",\\n \\"enableLongLiving\\": true,\\n \\"resourceGroupId\\": \\"\\",\\n \\"instanceIsolationMode\\": \\"\\",\\n \\"sessionAffinityConfig\\": \\"{\\\\\\\\\\\\\\"sseEndpointPath\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/sse\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"sessionConcurrencyPerInstance\\\\\\\\\\\\\\":20}\\",\\n \\"idleTimeout\\": 100,\\n \\"disableInjectCredentials\\": \\"\\",\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => 'CreateFunction',
- 'description' => 'Resources of Function Compute are scheduled and run based on functions. A function usually refers to a code snippet that is written by a user and can be independently executed to respond to events and requests.'."\n",
+ 'title' => 'DeleteCustomDomain',
+ 'summary' => 'Deletes a custom domain name.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteCustomDomain'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'CustomDomain', 'arn' => 'acs:fc:{#regionId}:{#accountId}:custom-domains/{#domainName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteFunction' => [
'summary' => 'Deletes a function.',
'path' => '/2023-03-30/functions/{functionName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
@@ -7744,9 +3653,7 @@
'riskType' => 'high',
'chargeType' => 'free',
'abilityTreeCode' => '178556',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -7755,13 +3662,7 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
],
@@ -7773,57 +3674,56 @@
500 => [
'description' => 'Internal Server Error',
'headers' => [],
- 'schema' => [
- 'title' => 'Internal Server Error',
- 'description' => 'Internal Server Error',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => 'Internal Server Error', 'description' => 'Internal Server Error', 'required' => false, '$ref' => '#/components/schemas/Error', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
'title' => 'DeleteFunction',
- ],
- 'GetFunction' => [
- 'summary' => 'http://pre.hhht/#vpc',
- 'path' => '/2023-03-30/functions/{functionName}',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunction'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteFunctionVersion' => [
+ 'summary' => 'Deletes a function version.',
+ 'path' => '/2023-03-30/functions/{functionName}/versions/{versionId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178530',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '178526',
+ 'abilityTreeNodes' => ['FEATUREfcDTB0I5'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -7832,288 +3732,285 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'Ready',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '目标资源个数。', 'description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '2023-03-10T10:10:10Z',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'name' => 'versionId',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => 'LATEST', 'description' => 'The version of the function.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数信息',
- 'schema' => [
- 'title' => '函数信息',
- 'description' => 'The function information.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Function',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 412,\\n \\"cpu\\": 1,\\n \\"createdTime\\": \\"2023-04-01T08:15:27Z\\",\\n \\"customContainerConfig\\": {\\n \\"accelerationInfo\\": {\\n \\"status\\": \\"deprecated\\"\\n },\\n \\"accelerationType\\": \\"deprecated\\",\\n \\"acrInstanceId\\": \\"deprecated\\",\\n \\"command\\": [\\n \\"arg1\\"\\n ],\\n \\"entrypoint\\": [\\n \\"/code/bootstrap\\"\\n ],\\n \\"healthCheckConfig\\": {\\n \\"failureThreshold\\": 1,\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 1,\\n \\"periodSeconds\\": 1,\\n \\"successThreshold\\": 2,\\n \\"timeoutSeconds\\": 2\\n },\\n \\"image\\": \\"registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1\\",\\n \\"port\\": 9000,\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"password\\": \\"abc***\\",\\n \\"userName\\": \\"admin\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": true,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0\\"\\n },\\n \\"networkConfig\\": {\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxxx\\",\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxxx\\"\\n }\\n },\\n \\"resolvedImageUri\\": \\"stand-sh-registry-vpc.cn-shanghai.cr.aliyuncs.com/fc-demo2/springboot-helloworld@sha256:68d1****0d64d6\\"\\n },\\n \\"customDNS\\": {\\n \\"dnsOptions\\": [\\n {\\n \\"name\\": \\"ndots\\",\\n \\"value\\": \\"2\\"\\n }\\n ],\\n \\"nameServers\\": [\\n \\"8.8.x.x\\"\\n ],\\n \\"searches\\": [\\n \\"ns1.svc.cluster-domain.example\\"\\n ]\\n },\\n \\"customRuntimeConfig\\": {\\n \\"args\\": [\\n \\"arg1\\"\\n ],\\n \\"command\\": [\\n \\"/code/bootstrap\\"\\n ],\\n \\"healthCheckConfig\\": {\\n \\"failureThreshold\\": 1,\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 1,\\n \\"periodSeconds\\": 1,\\n \\"successThreshold\\": 2,\\n \\"timeoutSeconds\\": 2\\n },\\n \\"port\\": 9000\\n },\\n \\"description\\": \\"my function\\",\\n \\"diskSize\\": 512,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"value1\\"\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/functionName\\",\\n \\"functionId\\": \\"aa715851-1c20-4b89-a8fb-***\\",\\n \\"functionName\\": \\"my-function-1\\",\\n \\"gpuConfig\\": {\\n \\"gpuMemorySize\\": 2048,\\n \\"gpuType\\": \\"fc.gpu.tesla.1\\"\\n },\\n \\"handler\\": \\"index.handler\\",\\n \\"instanceConcurrency\\": 1,\\n \\"instanceLifecycleConfig\\": {\\n \\"initializer\\": {\\n \\"handler\\": \\"index.initializer\\",\\n \\"timeout\\": 10,\\n \\"command\\": [\\n \\"curl -X POST \'http://localhost:9000/preWarm\\"\\n ]\\n },\\n \\"preStop\\": {\\n \\"handler\\": \\"index.initializer\\",\\n \\"timeout\\": 10,\\n \\"command\\": [\\n \\"curl -X POST \'http://localhost:9000/preWarm\\"\\n ]\\n }\\n },\\n \\"internetAccess\\": true,\\n \\"lastModifiedTime\\": \\"2023-05-01T08:15:27Z\\",\\n \\"lastUpdateStatus\\": \\"InProgress\\",\\n \\"lastUpdateStatusReason\\": \\"The system is currently processing the acceleration optimization for the image.\\",\\n \\"lastUpdateStatusReasonCode\\": \\"ImageOptimizing\\",\\n \\"layers\\": [\\n {\\n \\"arn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"size\\": 421\\n }\\n ],\\n \\"logConfig\\": {\\n \\"enableInstanceMetrics\\": true,\\n \\"enableRequestMetrics\\": true,\\n \\"logBeginRule\\": \\"DefaultRegex\\",\\n \\"logstore\\": \\"test-logstore\\",\\n \\"project\\": \\"test-project\\",\\n \\"enableLlmMetrics\\": true\\n },\\n \\"memorySize\\": 512,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"role\\": \\"acs:ram::188077086902****:role/fc-test\\",\\n \\"runtime\\": \\"python3.10\\",\\n \\"state\\": \\"Pending\\",\\n \\"stateReason\\": \\"Function creating\\",\\n \\"stateReasonCode\\": \\"Creating\\",\\n \\"timeout\\": 60,\\n \\"tracingConfig\\": {\\n \\"params\\": {\\n \\"key\\": \\"tracing_analysis_jaeger_endpoint\\"\\n },\\n \\"type\\": \\"Jaeger\\"\\n },\\n \\"vpcConfig\\": {\\n \\"securityGroupId\\": \\"sg-bp18hj1wtxgy3b0***\\",\\n \\"vSwitchIds\\": [\\n \\"vsw-bp1ozpcrdc6r****\\"\\n ],\\n \\"vpcId\\": \\"vpc-***\\",\\n \\"role\\": \\"acs:ram::188077086902****:role/fc-test\\"\\n },\\n \\"tags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"disableOndemand\\": true,\\n \\"invocationRestriction\\": {\\n \\"reason\\": \\"\\",\\n \\"lastModifiedTime\\": \\"\\",\\n \\"disable\\": true\\n },\\n \\"sessionAffinity\\": \\"\\",\\n \\"enableLongLiving\\": true,\\n \\"resourceGroupId\\": \\"\\",\\n \\"instanceIsolationMode\\": \\"\\",\\n \\"sessionAffinityConfig\\": \\"{\\\\\\\\\\\\\\"sseEndpointPath\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/sse\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"sessionConcurrencyPerInstance\\\\\\\\\\\\\\":20}\\",\\n \\"idleTimeout\\": 100,\\n \\"disableInjectCredentials\\": \\"\\",\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => 'GetFunction',
- ],
- 'ListFunctions' => [
- 'summary' => 'Queries a list of functions.',
- 'path' => '/2023-03-30/functions',
- 'methods' => [
- 'get',
+ 'title' => 'DeleteFunctionVersion',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunctionVersion'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteFunctionVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteLayerVersion' => [
+ 'summary' => 'Deletes a layer version.',
+ 'path' => '/2023-03-30/layers/{layerName}/versions/{version}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178520',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '178525',
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'prefix',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数名称前缀',
- 'description' => 'The prefix of the function name.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'name' => 'layerName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The name of the layer.', 'type' => 'string', 'required' => true, 'example' => 'my-layer', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The pagination token.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'name' => 'version',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The version of the layer.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'title' => ''],
'examples' => [],
],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回函数的数量',
- 'description' => 'The number of functions to return. The minimum value is 1 and the maximum value is 100.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ ],
+ 'responses' => [
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
- [
- 'name' => 'fcVersion',
- 'in' => 'query',
- 'schema' => [
- 'title' => '函数所属的版本。枚举值:v3,v2。v3: 只列出FC3.0的函数;v2:只列出FC2.0的函数;默认不填:列出FC3.0和FC2.0的函数',
- 'description' => 'The version of Function Compute to which the functions belong.'."\n"
- ."\n"
- .'* v3: Only lists functions of Function Compute 3.0.'."\n"
- .'* v2: Only lists functions of Function Compute 2.0.'."\n"
- ."\n"
- .'By default, this parameter is left empty and functions in both Function Compute 3.0 and Function Compute 2.0 are listed.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v3',
- 'enum' => [
- 'v3',
- 'v2',
- ],
- ],
- ],
- [
- 'name' => 'tags',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '需要过滤的函数标签',
- 'description' => 'The tag of the functions to retrieve.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The information about the tag that is added to a function.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Tag',
- ],
- 'required' => false,
- ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
+ 'examples' => [],
],
- [
- 'name' => 'runtime',
- 'in' => 'query',
- 'schema' => [
- 'title' => '需要过滤的函数运行时',
- 'description' => 'The runtime of the functions to retrieve.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'python3.10',
- ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'DeleteLayerVersion',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteLayerVersion'],
],
+ ],
+ 'ramActions' => [
[
- 'name' => 'gpuType',
- 'in' => 'query',
- 'schema' => [
- 'title' => '需要过滤的函数GPU卡型',
- 'description' => 'The GPU type of the functions to retrieve.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'fc.gpu.tesla.1',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteProvisionConfig' => [
+ 'path' => '/2023-03-30/functions/{functionName}/provision-config',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'description',
- 'in' => 'query',
- 'schema' => [
- 'title' => '需要过滤的函数描述',
- 'description' => 'The description of the functions to retrieve.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_description',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178524',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
[
'name' => 'functionName',
- 'in' => 'query',
- 'schema' => [
- 'title' => '函数名称。',
- 'type' => 'string',
- ],
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'resourceGroupId',
+ 'name' => 'qualifier',
'in' => 'query',
- 'schema' => [
- 'title' => '资源组 ID',
- 'type' => 'string',
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The function alias.', 'type' => 'string', 'required' => false, 'example' => 'prod', 'title' => ''],
+ 'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数列表',
- 'schema' => [
- 'title' => '函数列表',
- 'description' => 'The functions.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListFunctionsOutput',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functions\\": [\\n {\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 412,\\n \\"cpu\\": 1,\\n \\"createdTime\\": \\"2023-04-01T08:15:27Z\\",\\n \\"customContainerConfig\\": {\\n \\"accelerationInfo\\": {\\n \\"status\\": \\"deprecated\\"\\n },\\n \\"accelerationType\\": \\"deprecated\\",\\n \\"acrInstanceId\\": \\"deprecated\\",\\n \\"command\\": [\\n \\"arg1\\"\\n ],\\n \\"entrypoint\\": [\\n \\"/code/bootstrap\\"\\n ],\\n \\"healthCheckConfig\\": {\\n \\"failureThreshold\\": 1,\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 1,\\n \\"periodSeconds\\": 1,\\n \\"successThreshold\\": 2,\\n \\"timeoutSeconds\\": 2\\n },\\n \\"image\\": \\"registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1\\",\\n \\"port\\": 9000,\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"password\\": \\"abc***\\",\\n \\"userName\\": \\"admin\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": true,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0\\"\\n },\\n \\"networkConfig\\": {\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxxx\\",\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxxx\\"\\n }\\n },\\n \\"resolvedImageUri\\": \\"stand-sh-registry-vpc.cn-shanghai.cr.aliyuncs.com/fc-demo2/springboot-helloworld@sha256:68d1****0d64d6\\"\\n },\\n \\"customDNS\\": {\\n \\"dnsOptions\\": [\\n {\\n \\"name\\": \\"ndots\\",\\n \\"value\\": \\"2\\"\\n }\\n ],\\n \\"nameServers\\": [\\n \\"8.8.x.x\\"\\n ],\\n \\"searches\\": [\\n \\"ns1.svc.cluster-domain.example\\"\\n ]\\n },\\n \\"customRuntimeConfig\\": {\\n \\"args\\": [\\n \\"arg1\\"\\n ],\\n \\"command\\": [\\n \\"/code/bootstrap\\"\\n ],\\n \\"healthCheckConfig\\": {\\n \\"failureThreshold\\": 1,\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 1,\\n \\"periodSeconds\\": 1,\\n \\"successThreshold\\": 2,\\n \\"timeoutSeconds\\": 2\\n },\\n \\"port\\": 9000\\n },\\n \\"description\\": \\"my function\\",\\n \\"diskSize\\": 512,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"value1\\"\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/functionName\\",\\n \\"functionId\\": \\"aa715851-1c20-4b89-a8fb-***\\",\\n \\"functionName\\": \\"my-function-1\\",\\n \\"gpuConfig\\": {\\n \\"gpuMemorySize\\": 2048,\\n \\"gpuType\\": \\"fc.gpu.tesla.1\\"\\n },\\n \\"handler\\": \\"index.handler\\",\\n \\"instanceConcurrency\\": 1,\\n \\"instanceLifecycleConfig\\": {\\n \\"initializer\\": {\\n \\"handler\\": \\"index.initializer\\",\\n \\"timeout\\": 10,\\n \\"command\\": [\\n \\"curl -X POST \'http://localhost:9000/preWarm\\"\\n ]\\n },\\n \\"preStop\\": {\\n \\"handler\\": \\"index.initializer\\",\\n \\"timeout\\": 10,\\n \\"command\\": [\\n \\"curl -X POST \'http://localhost:9000/preWarm\\"\\n ]\\n }\\n },\\n \\"internetAccess\\": true,\\n \\"lastModifiedTime\\": \\"2023-05-01T08:15:27Z\\",\\n \\"lastUpdateStatus\\": \\"InProgress\\",\\n \\"lastUpdateStatusReason\\": \\"The system is currently processing the acceleration optimization for the image.\\",\\n \\"lastUpdateStatusReasonCode\\": \\"ImageOptimizing\\",\\n \\"layers\\": [\\n {\\n \\"arn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"size\\": 421\\n }\\n ],\\n \\"logConfig\\": {\\n \\"enableInstanceMetrics\\": true,\\n \\"enableRequestMetrics\\": true,\\n \\"logBeginRule\\": \\"DefaultRegex\\",\\n \\"logstore\\": \\"test-logstore\\",\\n \\"project\\": \\"test-project\\",\\n \\"enableLlmMetrics\\": true\\n },\\n \\"memorySize\\": 512,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"role\\": \\"acs:ram::188077086902****:role/fc-test\\",\\n \\"runtime\\": \\"python3.10\\",\\n \\"state\\": \\"Pending\\",\\n \\"stateReason\\": \\"Function creating\\",\\n \\"stateReasonCode\\": \\"Creating\\",\\n \\"timeout\\": 60,\\n \\"tracingConfig\\": {\\n \\"params\\": {\\n \\"key\\": \\"tracing_analysis_jaeger_endpoint\\"\\n },\\n \\"type\\": \\"Jaeger\\"\\n },\\n \\"vpcConfig\\": {\\n \\"securityGroupId\\": \\"sg-bp18hj1wtxgy3b0***\\",\\n \\"vSwitchIds\\": [\\n \\"vsw-bp1ozpcrdc6r****\\"\\n ],\\n \\"vpcId\\": \\"vpc-***\\",\\n \\"role\\": \\"acs:ram::188077086902****:role/fc-test\\"\\n },\\n \\"tags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"disableOndemand\\": true,\\n \\"invocationRestriction\\": {\\n \\"reason\\": \\"\\",\\n \\"lastModifiedTime\\": \\"\\",\\n \\"disable\\": true\\n },\\n \\"sessionAffinity\\": \\"\\",\\n \\"enableLongLiving\\": true,\\n \\"resourceGroupId\\": \\"\\",\\n \\"instanceIsolationMode\\": \\"\\",\\n \\"sessionAffinityConfig\\": \\"{\\\\\\\\\\\\\\"sseEndpointPath\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/sse\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"sessionConcurrencyPerInstance\\\\\\\\\\\\\\":20}\\",\\n \\"idleTimeout\\": 100,\\n \\"disableInjectCredentials\\": \\"\\",\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\"\\n }\\n ]\\n }\\n }\\n ],\\n \\"nextToken\\": \\"next_function_name\\"\\n}","type":"json"}]',
- 'title' => 'ListFunctions',
- 'description' => 'ListFunctions returns only a subset of a function\'s attribute fields. To obtain the additional fields, which include state, stateReasonCode, stateReason, lastUpdateStatus, lastUpdateStatusReasonCode, and lastUpdateStatusReason, use [GetFunction](~~2618610~~).'."\n",
- ],
- 'InvokeFunction' => [
- 'summary' => 'Invokes a function.',
- 'path' => '/2023-03-30/functions/{functionName}/invocations',
- 'methods' => [
- 'post',
+ 'title' => 'DeleteProvisionConfig',
+ 'summary' => 'Deletes a provisioned configuration.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteProvisionConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'tags' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteScalingConfig' => [
+ 'summary' => 'Deletes the scaling settings of a function.',
+ 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/octet-stream',
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The function name.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-func', 'title' => ''],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The function alias.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
+ ],
],
- 'produces' => [
- 'application/octet-stream',
+ 'responses' => [
+ 204 => [],
+ 400 => [],
+ 500 => [],
],
- 'operationType' => 'readAndWrite',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'DeleteScalingConfig',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteSession' => [
+ 'summary' => 'Deletes the specified session and prohibits new requests from being routed to it. Clears the session metadata from the database, so subsequent requests with the same session ID are treated as new sessions. Releases resources and performs session cleanup. In session isolation scenarios, terminates running requests and releases the instance bound to the session. In non-session isolation scenarios, allows running requests to continue and gracefully terminates them.',
+ 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '178547',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -8121,149 +4018,124 @@
[
'name' => 'functionName',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '', 'description' => 'The function name.', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'sessionId',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The ID of the session to be deleted.', 'type' => 'string', 'required' => false, 'example' => 'test-session-id-1'],
],
[
'name' => 'qualifier',
'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => 'The version or alias of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '', 'description' => 'The function alias or version associated with the session to be deleted.', 'type' => 'string', 'required' => false, 'example' => 'aliasName1'],
],
+ ],
+ 'responses' => [
+ 204 => [],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'DeleteSession',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteTrigger' => [
+ 'summary' => 'Deletes the specified trigger.',
+ 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'x-fc-invocation-type',
- 'in' => 'header',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数调用类型',
- 'description' => 'The type of function invocation. Valid values: Sync and Async.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Sync',
- ],
- 'examples' => [],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '178540',
+ 'abilityTreeNodes' => ['FEATUREfc0CDUNQ'],
+ ],
+ 'parameters' => [
[
- 'name' => 'x-fc-log-type',
- 'in' => 'header',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数调用返回日志类型',
- 'description' => 'The log type of function invocation. Valid values: None and Tail.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Tail',
- ],
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数调用参数',
- 'description' => 'The request parameters of function invocation.'."\n",
- 'type' => 'string',
- 'format' => 'binary',
- 'required' => false,
- 'example' => 'event',
- ],
+ 'name' => 'triggerName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The trigger name.', 'type' => 'string', 'required' => true, 'example' => 'my-trigger', 'title' => ''],
'examples' => [],
],
- [
- 'name' => 'x-fc-async-task-id',
- 'in' => 'header',
- 'schema' => [
- 'description' => 'The ID of the asynchronous task. You must enable the asynchronous task feature in advance.'."\n"
- ."\n"
- .'> If you use an SDK to invoke a function, we recommend that you specify a business-related ID to facilitate subsequent operations. For example, a video processing function can use video file names as invocation IDs. This way, you can easily check whether a video is successfully processed or terminated before it is processed. The ID can start only with letters or underscores. An ID can contain *letters, digits (0 - 9), underscores*, and hyphens (-). It can be up to 128 characters in length. If you do not specify the ID of the asynchronous invocation, the system automatically generates an ID.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-id',
- ],
- ],
],
'responses' => [
- 200 => [
- 'description' => '函数调用响应',
- 'schema' => [
- 'title' => '函数调用响应',
- 'description' => 'The response parameters of function invocation'."\n",
- 'type' => 'string',
- 'format' => 'binary',
- 'required' => false,
- 'example' => 'response',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"\\"response\\"","type":"json"}]',
- 'title' => 'InvokeFunction',
- ],
- 'UpdateFunction' => [
- 'summary' => 'Updates the information about a function.',
- 'path' => '/2023-03-30/functions/{functionName}',
- 'methods' => [
- 'put',
+ 'title' => 'DeleteTrigger',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTrigger'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteVpcBinding' => [
+ 'summary' => 'Deletes an access control policy from a specified VPC firewall policy group.',
+ 'path' => '/2023-03-30/functions/{functionName}/vpc-bindings/{vpcId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => [],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178513',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '191969',
+ 'abilityTreeNodes' => ['FEATUREfcL3E8J5'],
'autoTest' => true,
'tenantRelevance' => 'tenant',
],
@@ -8272,166 +4144,152 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
+ 'name' => 'vpcId',
+ 'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数信息',
- 'description' => 'The function information'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateFunctionInput',
- ],
+ 'schema' => ['description' => 'The ID of the VPC instance.', 'type' => 'string', 'required' => true, 'example' => 'vpc-bp106zxlfj1fqc9', 'title' => ''],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '更新后的函数信息',
- 'schema' => [
- 'title' => '更新后的函数信息',
- 'description' => 'The function information after the update operation.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Function',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 412,\\n \\"cpu\\": 1,\\n \\"createdTime\\": \\"2023-04-01T08:15:27Z\\",\\n \\"customContainerConfig\\": {\\n \\"accelerationInfo\\": {\\n \\"status\\": \\"deprecated\\"\\n },\\n \\"accelerationType\\": \\"deprecated\\",\\n \\"acrInstanceId\\": \\"deprecated\\",\\n \\"command\\": [\\n \\"arg1\\"\\n ],\\n \\"entrypoint\\": [\\n \\"/code/bootstrap\\"\\n ],\\n \\"healthCheckConfig\\": {\\n \\"failureThreshold\\": 1,\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 1,\\n \\"periodSeconds\\": 1,\\n \\"successThreshold\\": 2,\\n \\"timeoutSeconds\\": 2\\n },\\n \\"image\\": \\"registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1\\",\\n \\"port\\": 9000,\\n \\"registryConfig\\": {\\n \\"authConfig\\": {\\n \\"password\\": \\"abc***\\",\\n \\"userName\\": \\"admin\\"\\n },\\n \\"certConfig\\": {\\n \\"insecure\\": true,\\n \\"rootCaCertBase64\\": \\"cm9vdF9jYV9jZXJ0\\"\\n },\\n \\"networkConfig\\": {\\n \\"securityGroupId\\": \\"sg-xxxxxxxxxxxxxx\\",\\n \\"vSwitchId\\": \\"vsw-xxxxxxxxxxxxxx\\",\\n \\"vpcId\\": \\"vpc-xxxxxxxxxxxxxx\\"\\n }\\n },\\n \\"resolvedImageUri\\": \\"stand-sh-registry-vpc.cn-shanghai.cr.aliyuncs.com/fc-demo2/springboot-helloworld@sha256:68d1****0d64d6\\"\\n },\\n \\"customDNS\\": {\\n \\"dnsOptions\\": [\\n {\\n \\"name\\": \\"ndots\\",\\n \\"value\\": \\"2\\"\\n }\\n ],\\n \\"nameServers\\": [\\n \\"8.8.x.x\\"\\n ],\\n \\"searches\\": [\\n \\"ns1.svc.cluster-domain.example\\"\\n ]\\n },\\n \\"customRuntimeConfig\\": {\\n \\"args\\": [\\n \\"arg1\\"\\n ],\\n \\"command\\": [\\n \\"/code/bootstrap\\"\\n ],\\n \\"healthCheckConfig\\": {\\n \\"failureThreshold\\": 1,\\n \\"httpGetUrl\\": \\"/ready\\",\\n \\"initialDelaySeconds\\": 1,\\n \\"periodSeconds\\": 1,\\n \\"successThreshold\\": 2,\\n \\"timeoutSeconds\\": 2\\n },\\n \\"port\\": 9000\\n },\\n \\"description\\": \\"my function\\",\\n \\"diskSize\\": 512,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"value1\\"\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/functionName\\",\\n \\"functionId\\": \\"aa715851-1c20-4b89-a8fb-***\\",\\n \\"functionName\\": \\"my-function-1\\",\\n \\"gpuConfig\\": {\\n \\"gpuMemorySize\\": 2048,\\n \\"gpuType\\": \\"fc.gpu.tesla.1\\"\\n },\\n \\"handler\\": \\"index.handler\\",\\n \\"instanceConcurrency\\": 1,\\n \\"instanceLifecycleConfig\\": {\\n \\"initializer\\": {\\n \\"handler\\": \\"index.initializer\\",\\n \\"timeout\\": 10,\\n \\"command\\": [\\n \\"curl -X POST \'http://localhost:9000/preWarm\\"\\n ]\\n },\\n \\"preStop\\": {\\n \\"handler\\": \\"index.initializer\\",\\n \\"timeout\\": 10,\\n \\"command\\": [\\n \\"curl -X POST \'http://localhost:9000/preWarm\\"\\n ]\\n }\\n },\\n \\"internetAccess\\": true,\\n \\"lastModifiedTime\\": \\"2023-05-01T08:15:27Z\\",\\n \\"lastUpdateStatus\\": \\"InProgress\\",\\n \\"lastUpdateStatusReason\\": \\"The system is currently processing the acceleration optimization for the image.\\",\\n \\"lastUpdateStatusReasonCode\\": \\"ImageOptimizing\\",\\n \\"layers\\": [\\n {\\n \\"arn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"size\\": 421\\n }\\n ],\\n \\"logConfig\\": {\\n \\"enableInstanceMetrics\\": true,\\n \\"enableRequestMetrics\\": true,\\n \\"logBeginRule\\": \\"DefaultRegex\\",\\n \\"logstore\\": \\"test-logstore\\",\\n \\"project\\": \\"test-project\\",\\n \\"enableLlmMetrics\\": true\\n },\\n \\"memorySize\\": 512,\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"role\\": \\"acs:ram::188077086902****:role/fc-test\\",\\n \\"runtime\\": \\"python3.10\\",\\n \\"state\\": \\"Pending\\",\\n \\"stateReason\\": \\"Function creating\\",\\n \\"stateReasonCode\\": \\"Creating\\",\\n \\"timeout\\": 60,\\n \\"tracingConfig\\": {\\n \\"params\\": {\\n \\"key\\": \\"tracing_analysis_jaeger_endpoint\\"\\n },\\n \\"type\\": \\"Jaeger\\"\\n },\\n \\"vpcConfig\\": {\\n \\"securityGroupId\\": \\"sg-bp18hj1wtxgy3b0***\\",\\n \\"vSwitchIds\\": [\\n \\"vsw-bp1ozpcrdc6r****\\"\\n ],\\n \\"vpcId\\": \\"vpc-***\\",\\n \\"role\\": \\"acs:ram::188077086902****:role/fc-test\\"\\n },\\n \\"tags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"disableOndemand\\": true,\\n \\"invocationRestriction\\": {\\n \\"reason\\": \\"\\",\\n \\"lastModifiedTime\\": \\"\\",\\n \\"disable\\": true\\n },\\n \\"sessionAffinity\\": \\"\\",\\n \\"enableLongLiving\\": true,\\n \\"resourceGroupId\\": \\"\\",\\n \\"instanceIsolationMode\\": \\"\\",\\n \\"sessionAffinityConfig\\": \\"{\\\\\\\\\\\\\\"sseEndpointPath\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/sse\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"sessionConcurrencyPerInstance\\\\\\\\\\\\\\":20}\\",\\n \\"idleTimeout\\": 100,\\n \\"disableInjectCredentials\\": \\"\\",\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => 'UpdateFunction',
- ],
- 'EnableFunctionInvocation' => [
- 'summary' => 'The EnableFunctionInvocation operation allows a function to be invoked and resumes the creation of provisioned instances. This operation is currently in private preview.',
- 'path' => '/2023-03-30/functions/{functionName}/invoke/enable',
- 'methods' => [
- 'post',
+ 'title' => 'DeleteVpcBinding',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteVpcBinding'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteVpcBinding',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DescribeRegions' => [
+ 'summary' => 'Queries the regions where Function Compute 3.0 is available.',
+ 'path' => '/2023-03-30/regions',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcVF016G', 'FEATUREfcAXUA30'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
- 'in' => 'path',
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
'schema' => [
- 'title' => '允许调用的函数名称',
- 'description' => 'The name of the function that you want to allow for invocation.'."\n",
+ 'title' => '',
+ 'description' => 'The language in which the list of regions is returned. For more information, see RFC 7231. Valid values:'."\n"
+ ."\n"
+ .'* zh-CN: Simplified Chinese.'."\n"
+ .'* en-US: English.'."\n"
+ .'* ja: Japanese'."\n"
+ ."\n"
+ .'Default value: en-US'."\n",
'type' => 'string',
'required' => false,
- 'example' => 'helloworld',
+ 'default' => 'zh-CN',
+ 'enum' => ['zh-CN', 'en-US', 'ja'],
+ 'example' => 'zh-CN',
],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response'."\n",
- 'type' => 'object',
- 'properties' => [
- 'success' => [
- 'title' => '是否成功允许调用',
- 'description' => 'Indicates whether the request was successful.'."\n",
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- ],
- ],
+ 'schema' => ['description' => 'The response parameters.'."\n", '$ref' => '#/components/schemas/DescribeRegionsOutput', 'title' => '', 'example' => ''],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'IdempotentParameterMismatch',
- 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.',
- ],
+ ['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"success\\": true\\n}","type":"json"}]',
- 'title' => 'EnableFunctionInvocation',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"RegionId\\": \\"cn-qingdao\\",\\n \\"LocalName\\": \\"华北1(青岛)\\\\n\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => 'DescribeRegions',
+ 'responseParamsDescription' => '正常返回示例,JSON格式:'."\n"
+ .'```json'."\n"
+ .'{'."\n"
+ .' "RequestId": "67623904-2da4-d950-c8c0-7c68573899ab",'."\n"
+ .' "Regions": {'."\n"
+ .' "Region": ['."\n"
+ .' {'."\n"
+ .' "RegionId": "cn-qingdao",'."\n"
+ .' "LocalName": "华北1(青岛)"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ ."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
],
'DisableFunctionInvocation' => [
- 'summary' => 'The DisableFunctionInvocation operation prevents a function from being invoked and optionally terminates all requests that are being processed. Once a function\'s invocation is disabled, no new instances can be created, and the existing provisioned instances are destroyed. This operation is currently in private preview.',
+ 'summary' => 'Disables function invocations. You can also stop all ongoing requests. When a function is disabled, new instances cannot be created and provisioned instances are destroyed. This OpenAPI is in beta.',
'path' => '/2023-03-30/functions/{functionName}/invoke/disable',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'high',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
],
'parameters' => [
[
@@ -8439,181 +4297,144 @@
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '',
+ 'description' => 'The request parameters for disabling a function invocation',
'type' => 'object',
'properties' => [
- 'reason' => [
- 'title' => '禁止函数调用的原因',
- 'description' => 'The reason for disabling the function\'s invocation.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '',
- ],
- 'abortOngoingRequest' => [
- 'title' => '是否立即终止正在处理的所有请求',
- 'description' => 'Specifies whether to immediately terminate all ongoing requests.'."\n",
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'reason' => ['description' => 'The reason for disabling the function invocation.', 'type' => 'string', 'example' => 'Service decommission', 'title' => '', 'required' => false],
+ 'abortOngoingRequest' => ['description' => 'Specifies whether to immediately stop all ongoing requests.', 'type' => 'boolean', 'example' => 'false', 'title' => '', 'required' => false],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
],
[
'name' => 'functionName',
'in' => 'path',
- 'schema' => [
- 'title' => '禁止调用的函数名称',
- 'description' => 'The name of the function whose invocation you want to disable.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'helloworld',
- ],
+ 'schema' => ['description' => 'The name of the function to disable.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'helloworld'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
- 'description' => 'Schema of Response'."\n",
+ 'description' => 'The response for successfully disabling a function invocation.',
'type' => 'object',
'properties' => [
- 'success' => [
- 'title' => '是否成功禁止调用',
- 'description' => 'Indicates whether the request is successful.'."\n",
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'success' => ['description' => 'Indicates whether the function invocation was successfully disabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"success\\": true\\n}","type":"json"}]',
'title' => 'DisableFunctionInvocation',
- 'description' => 'Exercise caution when you call this operation on a function in a production environment, as improper deactivation may lead to business disruptions.'."\n",
- ],
- 'DeleteAlias' => [
- 'summary' => 'Deletes an alias.',
- 'path' => '/2023-03-30/functions/{functionName}/aliases/{aliasName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'description' => 'Use caution when calling this API for functions in a production environment because disabling function invocations can disrupt your services.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:DisableFunctionInvocation',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'Function', 'arn' => 'acs:fc:{#regionId}:{#accountId}:functions/{#FunctionName}'],
+ ],
+ ],
+ ],
],
- 'tags' => [],
+ 'translator' => 'manual',
+ ],
+ 'EnableFunctionInvocation' => [
+ 'summary' => 'The EnableFunctionInvocation operation allows a function to be invoked and resumes the creation of provisioned instances. This operation is currently in private preview.',
+ 'path' => '/2023-03-30/functions/{functionName}/invoke/enable',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '178517',
- 'abilityTreeNodes' => [
- 'FEATUREfcI9H8B8',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'aliasName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数别名名称',
- 'description' => 'The function alias.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-alias',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '', 'description' => 'The name of the function that you want to allow for invocation.'."\n", 'type' => 'string', 'required' => false, 'example' => 'helloworld'],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
- 'examples' => [],
- ],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
+ 200 => [
'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'success' => ['title' => '', 'description' => 'Indicates whether the request was successful.'."\n", 'type' => 'boolean', 'example' => 'true'],
+ ],
+ 'example' => '',
],
- 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => ''],
+ ],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"success\\": true\\n}","type":"json"}]',
+ 'title' => 'EnableFunctionInvocation',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:EnableFunctionInvocation',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'Function', 'arn' => 'acs:fc:{#regionId}:{#accountId}:functions/{#FunctionName}'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteAlias',
],
'GetAlias' => [
- 'summary' => 'Queries information about an alias.',
+ 'summary' => 'Retrieves information about an alias.',
'path' => '/2023-03-30/functions/{functionName}/aliases/{aliasName}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '178529',
- 'abilityTreeNodes' => [
- 'FEATUREfcI9H8B8',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -8622,49 +4443,27 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
'name' => 'aliasName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数别名名称',
- 'description' => 'The function alias.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-alias',
- ],
+ 'schema' => ['description' => 'Function alias', 'type' => 'string', 'required' => true, 'example' => 'my-alias', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '函数别名信息',
- 'schema' => [
- 'title' => '函数别名信息',
- 'description' => 'The function alias information.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Alias',
- ],
+ 'schema' => ['description' => 'The information about the function alias.', 'required' => false, '$ref' => '#/components/schemas/Alias', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
@@ -8672,39 +4471,46 @@
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 0.5\\n },\\n \\"aliasName\\": \\"prod\\",\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"alias for pre env\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n}","type":"json"}]',
'title' => 'GetAlias',
- ],
- 'ListAliases' => [
- 'summary' => 'Queries aliases.',
- 'path' => '/2023-03-30/functions/{functionName}/aliases',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAlias'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 0.5\\n },\\n \\"aliasName\\": \\"prod\\",\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"alias for pre env\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n}","type":"json"}]',
+ ],
+ 'GetAsyncInvokeConfig' => [
+ 'summary' => 'Retrieves the asynchronous invocation configuration of a specified function.',
+ 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '178545',
- 'abilityTreeNodes' => [
- 'FEATUREfcI9H8B8',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '178554',
+ 'abilityTreeNodes' => ['FEATUREfcBKET2W'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -8713,76 +4519,27 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'prefix',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '别名名称前缀',
- 'description' => 'The alias prefix.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-alias',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'nextToken',
+ 'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的别名数量',
- 'description' => 'The number of aliases returned.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'The version or alias of the function.', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数别名信息',
- 'schema' => [
- 'title' => '函数别名信息',
- 'description' => 'The function aliases.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListAliasesOutput',
- ],
+ 'description' => '函数异步调用配置信息',
+ 'schema' => ['description' => 'The asynchronous invocation configuration of the function.', 'required' => false, '$ref' => '#/components/schemas/AsyncConfig', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
@@ -8790,39 +4547,46 @@
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"aliases\\": [\\n {\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 0.5\\n },\\n \\"aliasName\\": \\"prod\\",\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"alias for pre env\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n }\\n ],\\n \\"nextToken\\": \\"test\\"\\n}","type":"json"}]',
- 'title' => 'ListAliases',
- ],
- 'UpdateAlias' => [
- 'summary' => 'Updates an alias.',
- 'path' => '/2023-03-30/functions/{functionName}/aliases/{aliasName}',
- 'methods' => [
- 'put',
+ 'title' => 'GetAsyncInvokeConfig',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncInvokeConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetFunctionAsyncInvokeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"asyncTask\\": true,\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"destinationConfig\\": {\\n \\"onFailure\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n },\\n \\"onSuccess\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n }\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"maxAsyncEventAgeInSeconds\\": 3600,\\n \\"maxAsyncRetryAttempts\\": 3\\n}","type":"json"}]',
+ ],
+ 'GetAsyncTask' => [
+ 'summary' => 'Retrieves the details of a specified asynchronous task.',
+ 'path' => '/2023-03-30/functions/{functionName}/async-tasks/{taskId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '184941',
- 'abilityTreeNodes' => [
- 'FEATUREfcI9H8B8',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '213992',
+ 'abilityTreeNodes' => ['FEATUREfcBKET2W'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -8831,104 +4595,78 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
],
[
- 'name' => 'aliasName',
+ 'name' => 'taskId',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数别名名称',
- 'description' => 'The function alias name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-alias',
- ],
- 'examples' => [],
+ 'schema' => ['description' => 'The asynchronous task ID.', 'type' => 'string', 'required' => true, 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****', 'title' => ''],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '待更新的别名信息',
- 'description' => 'The alias information to be updated.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateAliasInput',
- ],
- 'examples' => [],
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The function version or alias.', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
],
],
'responses' => [
200 => [
- 'description' => '更新后的别名信息',
- 'schema' => [
- 'title' => '更新后的别名信息',
- 'description' => 'The information about updated alias.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Alias',
- ],
+ 'description' => '异步任务信息',
+ 'schema' => ['description' => 'The information about the asynchronous task. The returnPayload field is in beta. If you want to use this field, [contact us](~~2513733~~) to enable it.', 'required' => false, '$ref' => '#/components/schemas/AsyncTask', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 0.5\\n },\\n \\"aliasName\\": \\"prod\\",\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"alias for pre env\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n}","type":"json"}]',
- 'title' => 'UpdateAlias',
- ],
- 'CreateAlias' => [
- 'summary' => 'Creates an alias.',
- 'path' => '/2023-03-30/functions/{functionName}/aliases',
- 'methods' => [
- 'post',
+ 'title' => 'GetAsyncTask',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncTask'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetAsyncTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"alreadyRetriedTimes\\": 3,\\n \\"destinationStatus\\": \\"Succeeded\\",\\n \\"durationMs\\": 1000,\\n \\"endTime\\": 1633449590000,\\n \\"events\\": [\\n {\\n \\"eventDetail\\": \\"body\\",\\n \\"eventId\\": 1,\\n \\"status\\": \\"Succeeded\\",\\n \\"timestamp\\": 1647420449721\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"instanceId\\": \\"D4-*******9FD1-882707E\\",\\n \\"qualifier\\": \\"prod\\",\\n \\"requestId\\": \\"e026ae92-61e5-472f-b32d-1c9e3c4e****\\",\\n \\"returnPayload\\": \\"result\\",\\n \\"startedTime\\": 1633449590000,\\n \\"status\\": \\"Running\\",\\n \\"taskErrorMessage\\": \\"UnhandledInvocationError\\",\\n \\"taskId\\": \\"e026ae92-61e5-472f-b32d-1c9e3c4e****\\",\\n \\"taskPayload\\": \\"body\\"\\n}","type":"json"}]',
+ ],
+ 'GetConcurrencyConfig' => [
+ 'path' => '/2023-03-30/functions/{functionName}/concurrency',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '178535',
- 'abilityTreeNodes' => [
- 'FEATUREfcI9H8B8',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '178519',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -8937,267 +4675,143 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '创建别名的请求参数',
- 'description' => 'The request parameters for creating an alias.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/CreateAliasInput',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '创建的别名信息',
- 'schema' => [
- 'title' => '创建的别名信息',
- 'description' => 'The information about the created alias.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Alias',
- ],
+ 'schema' => ['description' => 'The concurrency configuration of the function.', 'required' => false, '$ref' => '#/components/schemas/ConcurrencyConfig', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 0.5\\n },\\n \\"aliasName\\": \\"prod\\",\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"alias for pre env\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n}","type":"json"}]',
- 'title' => 'CreateAlias',
- ],
- 'CreateTrigger' => [
- 'summary' => 'Creates a trigger.',
- 'path' => '/2023-03-30/functions/{functionName}/triggers',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'GetConcurrencyConfig',
+ 'summary' => 'Retrieves the concurrency configuration.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetConcurrencyConfig'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/demo\\",\\n \\"reservedConcurrency\\": 10\\n}","type":"json"}]',
+ ],
+ 'GetCustomDomain' => [
+ 'summary' => 'Retrieves the configuration of a custom domain name.',
+ 'path' => '/2023-03-30/custom-domains/{domainName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '178518',
- 'abilityTreeNodes' => [
- 'FEATUREfc0CDUNQ',
- ],
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178522',
+ 'abilityTreeNodes' => ['FEATUREfcJ7WA06'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
+ 'name' => 'domainName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器配置',
- 'description' => 'The trigger configurations.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/CreateTriggerInput',
- ],
+ 'schema' => ['description' => 'The domain name.', 'type' => 'string', 'required' => true, 'example' => 'foo.bar.com', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '触发器配置',
- 'schema' => [
- 'title' => '触发器配置',
- 'description' => 'The trigger configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Trigger',
- ],
+ 'description' => '自定义域名信息',
+ 'schema' => ['description' => 'The information about the custom domain name.', 'required' => false, '$ref' => '#/components/schemas/CustomDomain', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"httpTrigger\\": {\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n },\\n \\"invocationRole\\": \\"\\",\\n \\"lastModifiedTime\\": \\"\\",\\n \\"qualifier\\": \\"\\",\\n \\"sourceArn\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"targetArn\\": \\"\\",\\n \\"triggerConfig\\": \\"\\",\\n \\"triggerId\\": \\"\\",\\n \\"triggerName\\": \\"\\",\\n \\"triggerType\\": \\"\\"\\n}","type":"json"}]',
- 'title' => 'CreateTrigger',
- ],
- 'DeleteTrigger' => [
- 'summary' => 'Deletes a trigger.',
- 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'tags' => [],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '178540',
- 'abilityTreeNodes' => [
- 'FEATUREfc0CDUNQ',
+ 'title' => 'GetCustomDomain',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCustomDomain'],
],
],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'functionName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'triggerName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器名称',
- 'description' => 'The trigger name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-trigger',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
- 'examples' => [],
],
],
- 'responses' => [
- 204 => [
- 'description' => 'No Content',
- 'examples' => [],
- ],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
- 'examples' => [],
- ],
- ],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteTrigger',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"accountId\\": \\"186851234023****\\",\\n \\"apiVersion\\": \\"2023-03-30\\",\\n \\"authConfig\\": {\\n \\"authInfo\\": \\"{}\\",\\n \\"authType\\": \\"anonymous\\"\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"PEM format\\",\\n \\"privateKey\\": \\"PEM format\\"\\n },\\n \\"createdTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"domainName\\": \\"example.com\\",\\n \\"lastModifiedTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"myFunction\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/api/*\\",\\n \\"qualifier\\": \\"myAlias\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/api/.+?/(.*)\\",\\n \\"replacement\\": \\"/api/v2/$1\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"subdomainCount\\": \\"1\\",\\n \\"tlsConfig\\": {\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\",\\n \\"minVersion\\": \\"TLSv1.0\\"\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n },\\n \\"corsConfig\\": {\\n \\"allowOrigins\\": [\\n \\"\\"\\n ],\\n \\"allowMethods\\": [\\n \\"\\"\\n ],\\n \\"allowHeaders\\": [\\n \\"\\"\\n ],\\n \\"exposeHeaders\\": [\\n \\"\\"\\n ],\\n \\"allowCredentials\\": true,\\n \\"maxAge\\": 3600\\n },\\n \\"isE2B\\": false\\n}","type":"json"}]',
],
- 'GetTrigger' => [
- 'summary' => 'Queries information about a trigger.',
- 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetFunction' => [
+ 'summary' => 'Retrieves information about a function.',
+ 'path' => '/2023-03-30/functions/{functionName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
- 'abilityTreeCode' => '178539',
- 'abilityTreeNodes' => [
- 'FEATUREfc0CDUNQ',
- ],
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178530',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -9206,92 +4820,75 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '', 'description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'triggerName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器名称',
- 'description' => 'The trigger name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-trigger',
- ],
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '', 'description' => 'The version or alias of the function.', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '触发器配置',
- 'schema' => [
- 'title' => '触发器配置',
- 'description' => 'The trigger configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Trigger',
- ],
+ 'description' => '函数信息',
+ 'schema' => ['title' => '', 'description' => 'The function information.', 'required' => false, '$ref' => '#/components/schemas/Function', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"httpTrigger\\": {\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n },\\n \\"invocationRole\\": \\"\\",\\n \\"lastModifiedTime\\": \\"\\",\\n \\"qualifier\\": \\"\\",\\n \\"sourceArn\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"targetArn\\": \\"\\",\\n \\"triggerConfig\\": \\"\\",\\n \\"triggerId\\": \\"\\",\\n \\"triggerName\\": \\"\\",\\n \\"triggerType\\": \\"\\"\\n}","type":"json"}]',
- 'title' => 'GetTrigger',
- ],
- 'ListTriggers' => [
- 'summary' => 'Queries the triggers of a function.',
- 'path' => '/2023-03-30/functions/{functionName}/triggers',
- 'methods' => [
- 'get',
+ 'title' => 'GetFunction',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunction'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'GetFunctionCode' => [
+ 'summary' => 'Retrieves the details of a function code package.',
+ 'path' => '/2023-03-30/functions/{functionName}/code',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '178550',
- 'abilityTreeNodes' => [
- 'FEATUREfc0CDUNQ',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '179099',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -9300,308 +4897,225 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => 'Function name', 'description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'prefix',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '触发器名称前缀',
- 'description' => 'The trigger name prefix.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-trigger',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The token for the next page.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'limit',
+ 'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的触发器数量',
- 'description' => 'The number of triggers returned.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'The version or alias of the function.', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '触发器列表',
- 'schema' => [
- 'title' => '触发器列表',
- 'description' => 'The triggers.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListTriggersOutput',
- ],
+ 'description' => '函数代码信息',
+ 'schema' => ['description' => 'The function code information.', 'required' => false, '$ref' => '#/components/schemas/OutputFuncCode', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"next_token\\",\\n \\"triggers\\": [\\n {\\n \\"createdTime\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"httpTrigger\\": {\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n },\\n \\"invocationRole\\": \\"\\",\\n \\"lastModifiedTime\\": \\"\\",\\n \\"qualifier\\": \\"\\",\\n \\"sourceArn\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"targetArn\\": \\"\\",\\n \\"triggerConfig\\": \\"\\",\\n \\"triggerId\\": \\"\\",\\n \\"triggerName\\": \\"\\",\\n \\"triggerType\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListTriggers',
- ],
- 'UpdateTrigger' => [
- 'summary' => 'Modifies a trigger.',
- 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
- 'methods' => [
- 'put',
+ 'title' => 'GetFunctionCode',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionCode'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetFunctionCode',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"checksum\\": \\"1234567890\\",\\n \\"url\\": \\"http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f\\"\\n}","type":"json"}]',
+ ],
+ 'GetLayerVersion' => [
+ 'summary' => 'Retrieves information about a layer version.',
+ 'path' => '/2023-03-30/layers/{layerName}/versions/{version}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '178536',
- 'abilityTreeNodes' => [
- 'FEATUREfc0CDUNQ',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '178542',
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
+ 'name' => 'layerName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The name of the layer.', 'type' => 'string', 'required' => true, 'example' => 'my-layer', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'triggerName',
+ 'name' => 'version',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器名称',
- 'description' => 'The trigger name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-trigger',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器配置',
- 'description' => 'The trigger configurations.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateTriggerInput',
- ],
+ 'schema' => ['description' => 'The version of the layer.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '更新后的触发器配置',
- 'schema' => [
- 'title' => '更新后的触发器配置',
- 'description' => 'The updated trigger configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Trigger',
- ],
+ 'description' => '层配置信息',
+ 'schema' => ['description' => 'The configuration of the layer.', 'required' => false, '$ref' => '#/components/schemas/Layer', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"httpTrigger\\": {\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n },\\n \\"invocationRole\\": \\"\\",\\n \\"lastModifiedTime\\": \\"\\",\\n \\"qualifier\\": \\"\\",\\n \\"sourceArn\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"targetArn\\": \\"\\",\\n \\"triggerConfig\\": \\"\\",\\n \\"triggerId\\": \\"\\",\\n \\"triggerName\\": \\"\\",\\n \\"triggerType\\": \\"\\"\\n}","type":"json"}]',
- 'title' => 'UpdateTrigger',
- ],
- 'DeleteAsyncInvokeConfig' => [
- 'summary' => 'Deletes an asynchronous invocation configuration.',
- 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
- 'methods' => [
- 'delete',
+ 'title' => 'GetLayerVersion',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLayerVersion'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n}","type":"json"}]',
+ ],
+ 'GetLayerVersionByArn' => [
+ 'path' => '/2023-03-30/layerarn/{arn}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '178515',
- 'abilityTreeNodes' => [
- 'FEATUREfcBKET2W',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '178551',
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
+ 'name' => 'arn',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => 'The version or alias of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'schema' => ['description' => 'The ARN of the layer.', 'type' => 'string', 'required' => true, 'example' => 'acs:fc:cn-shanghai:1234:layers/my-layer/versions/1', 'title' => ''],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'schema' => ['description' => 'The layer version information.', 'required' => false, '$ref' => '#/components/schemas/Layer', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteAsyncInvokeConfig',
- ],
- 'GetAsyncInvokeConfig' => [
- 'summary' => 'Gets asynchronous invocation configurations of a function.',
- 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'GetLayerVersionByArn',
+ 'summary' => 'Retrieves the version information of a layer by its Alibaba Cloud Resource Name (ARN).',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLayerVersionByArn'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetLayerVersionByArn',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n}","type":"json"}]',
+ ],
+ 'GetProvisionConfig' => [
+ 'summary' => 'Retrieves the provisioned configuration.',
+ 'path' => '/2023-03-30/functions/{functionName}/provision-config',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
- 'abilityTreeCode' => '178554',
- 'abilityTreeNodes' => [
- 'FEATUREfcBKET2W',
- ],
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178537',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -9610,301 +5124,197 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => 'The version or alias of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'schema' => ['description' => 'The alias of the function.', 'type' => 'string', 'required' => false, 'example' => 'prod', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数异步调用配置信息',
- 'schema' => [
- 'title' => '函数异步调用配置信息',
- 'description' => 'The asynchronous invocation configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/AsyncConfig',
- ],
+ 'description' => '预留配置信息',
+ 'schema' => ['description' => 'Information about the provisioned configuration.', 'required' => false, '$ref' => '#/components/schemas/ProvisionConfig', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"asyncTask\\": true,\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"destinationConfig\\": {\\n \\"onFailure\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n },\\n \\"onSuccess\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n }\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"maxAsyncEventAgeInSeconds\\": 3600,\\n \\"maxAsyncRetryAttempts\\": 3\\n}","type":"json"}]',
- 'title' => 'GetAsyncInvokeConfig',
- ],
- 'ListAsyncInvokeConfigs' => [
- 'summary' => 'Queries all asynchronous configurations of a function.',
- 'path' => '/2023-03-30/async-invoke-configs',
- 'methods' => [
- 'get',
+ 'title' => 'GetProvisionConfig',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProvisionConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'tags' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"scheduledActions\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10Z\\",\\n \\"name\\": \\"test_1\\",\\n \\"scheduleExpression\\": \\"cron(0 0 22 * * *)\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10Z\\",\\n \\"target\\": 50,\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"currentError\\": \\"image not found\\",\\n \\"defaultTarget\\": 5,\\n \\"current\\": 1,\\n \\"alwaysAllocateCPU\\": true,\\n \\"alwaysAllocateGPU\\": true,\\n \\"targetTrackingPolicies\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10Z\\",\\n \\"maxCapacity\\": 10,\\n \\"metricTarget\\": 0.6,\\n \\"metricType\\": \\"CPUUtilization\\",\\n \\"minCapacity\\": 1,\\n \\"name\\": \\"test_1\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10Z\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:124:functions/myFunction/prod\\",\\n \\"target\\": 5\\n}","type":"json"}]',
+ ],
+ 'GetScalingConfig' => [
+ 'summary' => 'Retrieves the scaling configuration for a function.',
+ 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '178549',
- 'abilityTreeNodes' => [
- 'FEATUREfcM7AF1D',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU', 'FEATUREfcEHTP7G'],
],
'parameters' => [
[
'name' => 'functionName',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数名称,若不指定则列出所有函数的异步调用配置',
- 'description' => 'The function name. If you do not configure this parameter, the asynchronous invocation configurations of all functions are displayed.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The paging information. This parameter specifies the start point of the query.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- 'examples' => [],
+ 'in' => 'path',
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => false, 'example' => 'my-func', 'title' => ''],
],
[
- 'name' => 'limit',
+ 'name' => 'qualifier',
'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的数量限制',
- 'description' => 'The maximum number of entries to be returned.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- 'examples' => [],
+ 'schema' => ['description' => 'The function alias.', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
],
],
'responses' => [
200 => [
- 'description' => '函数异步调用配置列表',
- 'schema' => [
- 'title' => '函数异步调用配置列表',
- 'description' => 'The asynchronous invocation configurations of the function.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListAsyncInvokeConfigOutput',
- ],
- 'examples' => [],
+ 'schema' => ['description' => 'The scaling configuration.', '$ref' => '#/components/schemas/ScalingConfigStatus', 'title' => '', 'example' => ''],
],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'GetScalingConfig',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
- 'examples' => [],
],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"configs\\": [\\n {\\n \\"asyncTask\\": true,\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"destinationConfig\\": {\\n \\"onFailure\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n },\\n \\"onSuccess\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n }\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"maxAsyncEventAgeInSeconds\\": 3600,\\n \\"maxAsyncRetryAttempts\\": 3\\n }\\n ],\\n \\"nextToken\\": \\"8bj81uI8n****\\"\\n}","type":"json"}]',
- 'title' => 'ListAsyncInvokeConfigs',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:124:functions/myFunction/prod\\",\\n \\"residentPoolId\\": \\"fc-pool-a2b664c1f87171j4******\\",\\n \\"minInstances\\": 1,\\n \\"currentInstances\\": 1,\\n \\"currentError\\": \\"image not found\\",\\n \\"targetInstances\\": 10,\\n \\"enableOnDemandScaling\\": true,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"student_app_shop_analyzer\\",\\n \\"startTime\\": \\"1764432000000\\",\\n \\"endTime\\": \\"1633449590000\\",\\n \\"target\\": 5,\\n \\"scheduleExpression\\": \\"。\\",\\n \\"timeZone\\": \\"。\\"\\n }\\n ],\\n \\"horizontalScalingPolicies\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10Z\\",\\n \\"endTime\\": \\"2024-03-10T10:10:10Z\\",\\n \\"metricType\\": \\"CPUUtilization\\",\\n \\"metricTarget\\": 0.6,\\n \\"minInstances\\": 1,\\n \\"maxInstances\\": 10,\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"enableMixMode\\": true,\\n \\"requestDispatchPolicy\\": \\"Balanced\\"\\n}","type":"json"}]',
],
- 'PutAsyncInvokeConfig' => [
- 'summary' => 'Creates or modifies an asynchronous invocation configuration for a function.',
- 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'tags' => [],
+ 'GetSession' => [
+ 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '178523',
- 'abilityTreeNodes' => [
- 'FEATUREfcBKET2W',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
+ 'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数异步调用配置',
- 'description' => 'The configurations of asynchronous function invocations.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/PutAsyncInvokeConfigInput',
- ],
- 'examples' => [],
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The name of the function to which the session belongs.', 'type' => 'string', 'example' => 'myFunction', 'required' => false],
],
[
- 'name' => 'functionName',
+ 'name' => 'sessionId',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '', 'description' => 'The ID of the session to query.', 'type' => 'string', 'example' => 'test-sessionid-index1', 'required' => false],
],
[
'name' => 'qualifier',
'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => 'The version or alias of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '', 'description' => 'The function alias or version associated with the session ID to query.', 'type' => 'string', 'example' => 'aliasName1', 'required' => false],
],
],
'responses' => [
200 => [
- 'description' => '函数异步调用配置信息',
- 'schema' => [
- 'title' => '函数异步调用配置信息',
- 'description' => 'The asynchronous invocation configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/AsyncConfig',
- ],
- 'examples' => [],
- ],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '', 'description' => 'The function session information.', '$ref' => '#/components/schemas/Session', 'example' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Get session configuration information',
+ 'summary' => 'Retrieves the details of a specified session, including the session ID, associated function, affinity type, lifecycle configuration, status, and instance information. This operation queries the current metadata of a single session and supports exact matching by functionName and qualifier for external system monitoring and debugging. Only sessions in the Active state can be queried.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"asyncTask\\": true,\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"destinationConfig\\": {\\n \\"onFailure\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n },\\n \\"onSuccess\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n }\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"maxAsyncEventAgeInSeconds\\": 3600,\\n \\"maxAsyncRetryAttempts\\": 3\\n}","type":"json"}]',
- 'title' => 'PutAsyncInvokeConfig',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": false,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"readOnly\\": false\\n }\\n ]\\n },\\n \\"juiceFsConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"volumeName\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"token\\": \\"\\",\\n \\"args\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"envs\\": {\\n \\"key\\": \\"\\"\\n }\\n },\\n \\"enableAutoPause\\": false\\n}","type":"json"}]',
],
- 'DeleteProvisionConfig' => [
- 'summary' => 'Deletes a provisioned configuration.',
- 'path' => '/2023-03-30/functions/{functionName}/provision-config',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTrigger' => [
+ 'summary' => 'Retrieves the details of a specified trigger.',
+ 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178524',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '178539',
+ 'abilityTreeNodes' => ['FEATUREfc0CDUNQ'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -9913,85 +5323,77 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数别名',
- 'description' => 'The function alias.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'name' => 'triggerName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The name of the trigger.', 'type' => 'string', 'required' => true, 'example' => 'my-trigger', 'title' => ''],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'description' => '触发器配置',
+ 'schema' => ['description' => 'The trigger configuration.', 'required' => false, '$ref' => '#/components/schemas/Trigger', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteProvisionConfig',
- ],
- 'GetProvisionConfig' => [
- 'summary' => 'Queries provisioned configurations.',
- 'path' => '/2023-03-30/functions/{functionName}/provision-config',
- 'methods' => [
- 'get',
+ 'title' => 'GetTrigger',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTrigger'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2020-08-20T02:28:21Z\\",\\n \\"description\\": \\"test_description\\",\\n \\"httpTrigger\\": {\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n },\\n \\"invocationRole\\": \\"acs:ram::151641468453****:role/my-role\\",\\n \\"lastModifiedTime\\": \\"2020-04-23T06:32:43Z\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"sourceArn\\": \\"acs:oss:cn-hangzhou:151641468453****:my-bucket\\",\\n \\"status\\": \\"OK\\",\\n \\"targetArn\\": \\"acs:oss:cn-hangzhou:151641468453****:my-bucket\\",\\n \\"triggerConfig\\": \\"{\\\\n \\\\\\"events\\\\\\": [\\\\n \\\\\\"oss:ObjectCreated:*\\\\\\"\\\\n ],\\\\n \\\\\\"filter\\\\\\": {\\\\n \\\\\\"key\\\\\\": {\\\\n \\\\\\"prefix\\\\\\": \\\\\\"/prefix\\\\\\",\\\\n \\\\\\"suffix\\\\\\": \\\\\\".zip\\\\\\"\\\\n }\\\\n }\\\\n}\\",\\n \\"triggerId\\": \\"546959b5-ce1a-4991-8891-df7a02b25086\\",\\n \\"triggerName\\": \\"defaultTrigger\\",\\n \\"triggerType\\": \\"http\\"\\n}","type":"json"}]',
+ ],
+ 'InvokeFunction' => [
+ 'path' => '/2023-03-30/functions/{functionName}/invocations',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/octet-stream'],
+ 'produces' => ['application/octet-stream'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'create',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178537',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '178547',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -10000,309 +5402,276 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'Function name', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数别名',
- 'description' => 'The function alias.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'schema' => ['description' => 'Function version or alias', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'x-fc-invocation-type',
+ 'in' => 'header',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'Function invocation type. Sync or Async.', 'type' => 'string', 'required' => false, 'example' => 'Sync', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'x-fc-log-type',
+ 'in' => 'header',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'Log type returned by function invocation. None or Tail.', 'type' => 'string', 'required' => false, 'example' => 'Tail', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'Function invocation parameter', 'type' => 'string', 'format' => 'binary', 'required' => false, 'title' => '', 'example' => 'event'],
'examples' => [],
],
+ [
+ 'name' => 'x-fc-async-task-id',
+ 'in' => 'header',
+ 'schema' => ['description' => 'Asynchronous task ID. Enable asynchronous tasks beforehand.'."\n"
+ ."\n"
+ .'> When using the SDK for invocation, set a business-related ID. This helps with subsequent operations on the execution. For example, a video processing function can use the video filename as the invocation ID. Use this ID to check if the video processing is complete or to stop it. The ID naming convention must start with an English letter (uppercase or lowercase) or an underscore (\\_). It can contain English letters (uppercase or lowercase), digits (0-9), underscores (\\_), and hyphens (-). The ID cannot exceed 128 characters. If you do not set an ID for asynchronous invocation, the system automatically generates one.', 'type' => 'string', 'required' => false, 'example' => 'test-id', 'title' => ''],
+ ],
],
'responses' => [
200 => [
- 'description' => '预留配置信息',
- 'schema' => [
- 'title' => '预留配置信息',
- 'description' => 'The provisioned configuration information.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ProvisionConfig',
- ],
+ 'schema' => ['description' => 'Function invocation response', 'type' => 'string', 'format' => 'binary', 'required' => false, 'title' => '', 'example' => 'response'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"scheduledActions\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10\\",\\n \\"name\\": \\"test_1\\",\\n \\"scheduleExpression\\": \\"cron(0 0 22 * * *)\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10\\",\\n \\"target\\": 50,\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"currentError\\": \\"image not found\\",\\n \\"defaultTarget\\": 5,\\n \\"current\\": 1,\\n \\"alwaysAllocateCPU\\": true,\\n \\"alwaysAllocateGPU\\": true,\\n \\"targetTrackingPolicies\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10\\",\\n \\"maxCapacity\\": 10,\\n \\"metricTarget\\": 0.6,\\n \\"metricType\\": \\"CPUUtilization\\",\\n \\"minCapacity\\": 1,\\n \\"name\\": \\"test_1\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:124:functions/myFunction/prod\\",\\n \\"target\\": 5\\n}","type":"json"}]',
- 'title' => 'GetProvisionConfig',
- ],
- 'ListProvisionConfigs' => [
- 'summary' => 'Queries a list of provisioned configurations.',
- 'path' => '/2023-03-30/provision-configs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'InvokeFunction',
+ 'summary' => 'Invokes a function.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:InvokeFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"\\"response\\"","type":"json"}]',
+ ],
+ 'ListAliases' => [
+ 'summary' => 'Lists aliases.',
+ 'path' => '/2023-03-30/functions/{functionName}/aliases',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178548',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- ],
+ 'abilityTreeCode' => '178545',
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'prefix',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数名称,若不指定则列出所有函数的预留配置',
- 'description' => 'The name of the function. If this parameter is not specified, the provisioned configurations of all functions are listed.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The prefix of the alias name.', 'type' => 'string', 'required' => false, 'example' => 'my-alias', 'title' => ''],
'examples' => [],
],
[
'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'A pagination token.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'schema' => ['description' => 'The token that marks the start of the next page of results.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
'examples' => [],
],
[
'name' => 'limit',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的预留配置数量',
- 'description' => 'Number of provisioned configurations to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'The number of aliases to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '预留配置列表',
- 'schema' => [
- 'title' => '预留配置列表',
- 'description' => 'The provisioned instance configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListProvisionConfigsOutput',
- ],
+ 'description' => '函数别名信息',
+ 'schema' => ['description' => 'The function alias information.', 'required' => false, '$ref' => '#/components/schemas/ListAliasesOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"next_token\\",\\n \\"provisionConfigs\\": [\\n {\\n \\"scheduledActions\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10\\",\\n \\"name\\": \\"test_1\\",\\n \\"scheduleExpression\\": \\"cron(0 0 22 * * *)\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10\\",\\n \\"target\\": 50,\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"currentError\\": \\"image not found\\",\\n \\"defaultTarget\\": 5,\\n \\"current\\": 1,\\n \\"alwaysAllocateCPU\\": true,\\n \\"alwaysAllocateGPU\\": true,\\n \\"targetTrackingPolicies\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10\\",\\n \\"maxCapacity\\": 10,\\n \\"metricTarget\\": 0.6,\\n \\"metricType\\": \\"CPUUtilization\\",\\n \\"minCapacity\\": 1,\\n \\"name\\": \\"test_1\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:124:functions/myFunction/prod\\",\\n \\"target\\": 5\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListProvisionConfigs',
- ],
- 'PutProvisionConfig' => [
- 'summary' => 'Creates provisioned configurations.',
- 'path' => '/2023-03-30/functions/{functionName}/provision-config',
- 'methods' => [
- 'put',
+ 'title' => 'ListAliases',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAliases'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListAliases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"aliases\\": [\\n {\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 0.5\\n },\\n \\"aliasName\\": \\"prod\\",\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"alias for pre env\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n }\\n ],\\n \\"nextToken\\": \\"test\\"\\n}","type":"json"}]',
+ ],
+ 'ListAsyncInvokeConfigs' => [
+ 'summary' => 'Lists the asynchronous invocation configurations for one or more functions.',
+ 'path' => '/2023-03-30/async-invoke-configs',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '178546',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '178549',
+ 'abilityTreeNodes' => ['FEATUREfcM7AF1D'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The name of the function. If you do not specify this parameter, the asynchronous invocation configurations of all functions are returned.', 'type' => 'string', 'required' => false, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'qualifier',
+ 'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数别名',
- 'description' => 'The function alias.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'schema' => ['description' => 'The token that is used for paging.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '预留配置信息',
- 'description' => 'The provisioned configuration information.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/PutProvisionConfigInput',
- ],
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The maximum number of results to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '预留配置信息',
- 'schema' => [
- 'title' => '预留配置信息',
- 'description' => 'The provisioned configuration information.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ProvisionConfig',
- ],
+ 'description' => '函数异步调用配置列表',
+ 'schema' => ['description' => 'A list of asynchronous invocation configurations.', 'required' => false, '$ref' => '#/components/schemas/ListAsyncInvokeConfigOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"scheduledActions\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10\\",\\n \\"name\\": \\"test_1\\",\\n \\"scheduleExpression\\": \\"cron(0 0 22 * * *)\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10\\",\\n \\"target\\": 50,\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"currentError\\": \\"image not found\\",\\n \\"defaultTarget\\": 5,\\n \\"current\\": 1,\\n \\"alwaysAllocateCPU\\": true,\\n \\"alwaysAllocateGPU\\": true,\\n \\"targetTrackingPolicies\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10\\",\\n \\"maxCapacity\\": 10,\\n \\"metricTarget\\": 0.6,\\n \\"metricType\\": \\"CPUUtilization\\",\\n \\"minCapacity\\": 1,\\n \\"name\\": \\"test_1\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:124:functions/myFunction/prod\\",\\n \\"target\\": 5\\n}","type":"json"}]',
- 'title' => 'PutProvisionConfig',
- ],
- 'DeleteConcurrencyConfig' => [
- 'summary' => 'Deletes a concurrency configuration.',
- 'path' => '/2023-03-30/functions/{functionName}/concurrency',
- 'methods' => [
- 'delete',
+ 'title' => 'ListAsyncInvokeConfigs',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAsyncInvokeConfigs'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListFunctionAsyncInvokeConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"configs\\": [\\n {\\n \\"asyncTask\\": true,\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"destinationConfig\\": {\\n \\"onFailure\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n },\\n \\"onSuccess\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n }\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"maxAsyncEventAgeInSeconds\\": 3600,\\n \\"maxAsyncRetryAttempts\\": 3\\n }\\n ],\\n \\"nextToken\\": \\"8bj81uI8n****\\"\\n}","type":"json"}]',
+ ],
+ 'ListAsyncTasks' => [
+ 'path' => '/2023-03-30/functions/{functionName}/async-tasks',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '178531',
- 'abilityTreeNodes' => [
- 'FEATUREfcM7AF1D',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '213993',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -10311,154 +5680,151 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
],
- ],
- 'responses' => [
- 204 => [
- 'description' => 'No Content',
- 'examples' => [],
+ [
+ 'name' => 'prefix',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The prefix of the asynchronous task ID. The system returns a list of asynchronous tasks that match the prefix.', 'type' => 'string', 'required' => false, 'example' => 'job-', 'title' => ''],
],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
- 'examples' => [],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The pagination token to return more results. You do not need to provide this parameter for the first query. Obtain the token for a subsequent query from the response to the previous query.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
],
- ],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteConcurrencyConfig',
- ],
- 'GetConcurrencyConfig' => [
- 'summary' => 'Obtains a concurrency configuration.',
- 'path' => '/2023-03-30/functions/{functionName}/concurrency',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'tags' => [],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The number of asynchronous tasks to return. The default value is 20. The value must be in the range of \\[1, 100].', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '178519',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The version or alias of the function.', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
- ],
- 'parameters' => [
[
- 'name' => 'functionName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'name' => 'status',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The execution status of the asynchronous task.'."\n"
+ ."\n"
+ .'- Enqueued: The asynchronous message is enqueued and waits for processing.'."\n"
+ ."\n"
+ .'- Dequeued: The asynchronous message is dequeued and waits to be triggered.'."\n"
+ ."\n"
+ .'- Running: The invocation is in progress.'."\n"
+ ."\n"
+ .'- Succeeded: The invocation succeeded.'."\n"
+ ."\n"
+ .'- Failed: The invocation failed.'."\n"
+ ."\n"
+ .'- Stopped: The invocation was stopped.'."\n"
+ ."\n"
+ .'- Stopping: The invocation is being stopped.'."\n"
+ ."\n"
+ .'- Expired: The task was discarded because its configured maximum queuing duration was exceeded. The task was not executed.'."\n"
+ ."\n"
+ .'- Invalid: The execution is invalid because the function was deleted or for other reasons. The task was not executed.'."\n"
+ ."\n"
+ .'- Retrying: The asynchronous invocation is being retried because of an execution error.', 'type' => 'string', 'required' => false, 'example' => 'Running', 'title' => ''],
+ ],
+ [
+ 'name' => 'startedTimeBegin',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The start of the time range when the asynchronous task was started.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1640966400000', 'title' => ''],
+ ],
+ [
+ 'name' => 'startedTimeEnd',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The end of the time range when the asynchronous task was started.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1640966400000', 'title' => ''],
+ ],
+ [
+ 'name' => 'sortOrderByTime',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The sorting order of the returned asynchronous tasks.'."\n"
+ ."\n"
+ .'- asc: ascending order'."\n"
+ ."\n"
+ .'- desc: descending order', 'type' => 'string', 'required' => false, 'example' => 'asc', 'title' => ''],
+ ],
+ [
+ 'name' => 'includePayload',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'Specifies whether to return the input parameters of the asynchronous task.'."\n"
+ ."\n"
+ .'- true: If this parameter is set to true, the `invocationPayload` field is returned.'."\n"
+ ."\n"
+ .'- false: If this parameter is set to false, the `invocationPayload` field is not returned.'."\n"
+ ."\n"
+ .'> The `invocationPayload` field specifies the input parameters of the function for the asynchronous task.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
],
'responses' => [
200 => [
- 'description' => '函数并发度配置',
- 'schema' => [
- 'title' => '函数并发度配置',
- 'description' => 'The concurrency configurations of the function.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ConcurrencyConfig',
- ],
+ 'schema' => ['description' => 'The returned data structure.', 'required' => false, '$ref' => '#/components/schemas/ListAsyncTaskOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/demo\\",\\n \\"reservedConcurrency\\": 10\\n}","type":"json"}]',
- 'title' => 'GetConcurrencyConfig',
+ 'title' => 'ListAsyncTasks',
+ 'summary' => 'Lists the details of asynchronous tasks.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAsyncTasks'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListAsyncTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"MTIzNCNhYmM=\\\\n\\",\\n \\"tasks\\": [\\n {\\n \\"alreadyRetriedTimes\\": 3,\\n \\"destinationStatus\\": \\"Succeeded\\",\\n \\"durationMs\\": 1000,\\n \\"endTime\\": 1633449590000,\\n \\"events\\": [\\n {\\n \\"eventDetail\\": \\"body\\",\\n \\"eventId\\": 1,\\n \\"status\\": \\"Succeeded\\",\\n \\"timestamp\\": 1647420449721\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"instanceId\\": \\"D4-*******9FD1-882707E\\",\\n \\"qualifier\\": \\"prod\\",\\n \\"requestId\\": \\"e026ae92-61e5-472f-b32d-1c9e3c4e****\\",\\n \\"returnPayload\\": \\"result\\",\\n \\"startedTime\\": 1633449590000,\\n \\"status\\": \\"Running\\",\\n \\"taskErrorMessage\\": \\"UnhandledInvocationError\\",\\n \\"taskId\\": \\"e026ae92-61e5-472f-b32d-1c9e3c4e****\\",\\n \\"taskPayload\\": \\"body\\"\\n }\\n ]\\n}","type":"json"}]',
],
'ListConcurrencyConfigs' => [
- 'summary' => 'Queries a list of concurrency configurations.',
'path' => '/2023-03-30/concurrency-configs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'abilityTreeCode' => '178516',
- 'abilityTreeNodes' => [
- 'FEATUREfcM7AF1D',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcM7AF1D'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -10467,63 +5833,33 @@
'name' => 'functionName',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数名称,若不指定则列出所有函数的并发度配置',
- 'description' => 'The function name. If you leave this parameter empty, the concurrency configurations of all functions are returned.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The function name. If you do not specify this parameter, the concurrency configurations of all functions are listed.', 'type' => 'string', 'required' => false, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'schema' => ['description' => 'The token for paging.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
'examples' => [],
],
[
'name' => 'limit',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的数量限制',
- 'description' => 'The maximum number of entries returned.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'The maximum number of results to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数并发度配置列表',
- 'schema' => [
- 'title' => '函数并发度配置列表',
- 'description' => 'The concurrency configurations of the function.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListConcurrencyConfigsOutput',
- ],
+ 'schema' => ['description' => 'The list of concurrency configurations.', 'required' => false, '$ref' => '#/components/schemas/ListConcurrencyConfigsOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
@@ -10531,490 +5867,503 @@
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"configs\\": [\\n {\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/demo\\",\\n \\"reservedConcurrency\\": 10\\n }\\n ],\\n \\"nextToken\\": \\"next_token\\"\\n}","type":"json"}]',
'title' => 'ListConcurrencyConfigs',
- ],
- 'PutConcurrencyConfig' => [
- 'summary' => 'Configures concurrency of a function.',
- 'path' => '/2023-03-30/functions/{functionName}/concurrency',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'summary' => 'Lists the concurrency configurations.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListConcurrencyConfigs'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListConcurrencyConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"configs\\": [\\n {\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/demo\\",\\n \\"reservedConcurrency\\": 10\\n }\\n ],\\n \\"nextToken\\": \\"next_token\\"\\n}","type":"json"}]',
+ ],
+ 'ListCustomDomains' => [
+ 'path' => '/2023-03-30/custom-domains',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '178511',
- 'abilityTreeNodes' => [
- 'FEATUREfcM7AF1D',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178557',
+ 'abilityTreeNodes' => ['FEATUREfcJ7WA06'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'name' => 'prefix',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The prefix of the domain name.', 'type' => 'string', 'required' => false, 'example' => 'foo', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数并发度配置信息',
- 'description' => 'The concurrency configurations.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/PutConcurrencyInput',
- ],
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The token that is used to start paging.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The number of custom domain names to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数并发度配置信息',
- 'schema' => [
- 'title' => '函数并发度配置信息',
- 'description' => 'The concurrency configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ConcurrencyConfig',
- ],
+ 'schema' => ['description' => 'The list of custom domain names.', 'required' => false, '$ref' => '#/components/schemas/ListCustomDomainOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/demo\\",\\n \\"reservedConcurrency\\": 10\\n}","type":"json"}]',
- 'title' => 'PutConcurrencyConfig',
- ],
- 'CreateLayerVersion' => [
- 'summary' => 'Releases a layer version.',
- 'path' => '/2023-03-30/layers/{layerName}/versions',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'ListCustomDomains',
+ 'summary' => 'Retrieves a list of custom domain names.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListCustomDomains'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListCustomDomains',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"customDomains\\": [\\n {\\n \\"accountId\\": \\"186851234023****\\",\\n \\"apiVersion\\": \\"2023-03-30\\",\\n \\"authConfig\\": {\\n \\"authInfo\\": \\"{}\\",\\n \\"authType\\": \\"anonymous\\"\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"PEM format\\",\\n \\"privateKey\\": \\"PEM format\\"\\n },\\n \\"createdTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"domainName\\": \\"example.com\\",\\n \\"lastModifiedTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"myFunction\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/api/*\\",\\n \\"qualifier\\": \\"myAlias\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/api/.+?/(.*)\\",\\n \\"replacement\\": \\"/api/v2/$1\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"subdomainCount\\": \\"1\\",\\n \\"tlsConfig\\": {\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\",\\n \\"minVersion\\": \\"TLSv1.0\\"\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n },\\n \\"corsConfig\\": {\\n \\"allowOrigins\\": [\\n \\"\\"\\n ],\\n \\"allowMethods\\": [\\n \\"\\"\\n ],\\n \\"allowHeaders\\": [\\n \\"\\"\\n ],\\n \\"exposeHeaders\\": [\\n \\"\\"\\n ],\\n \\"allowCredentials\\": true,\\n \\"maxAge\\": 3600\\n },\\n \\"isE2B\\": false\\n }\\n ],\\n \\"nextToken\\": \\"next_domain_name\\"\\n}","type":"json"}]',
+ ],
+ 'ListFunctionVersions' => [
+ 'summary' => 'Lists the versions of a specified function.',
+ 'path' => '/2023-03-30/functions/{functionName}/versions',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '178533',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '178543',
+ 'abilityTreeNodes' => ['FEATUREfcDTB0I5'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'layerName',
+ 'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层名称',
- 'description' => 'The name of the layer.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层配置信息',
- 'description' => 'The information about layer configurations.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/CreateLayerVersionInput',
- ],
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The token that marks the start of the next page of results.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'direction',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The order in which to sort the versions. Valid values: BACKWARD and FORWARD.', 'type' => 'string', 'required' => false, 'example' => 'BACKWARD', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The number of versions to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '层配置信息',
- 'schema' => [
- 'title' => '层配置信息',
- 'description' => 'The information about layer configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Layer',
- ],
+ 'description' => '函数版本列表',
+ 'schema' => ['description' => 'The list of function versions.', 'required' => false, '$ref' => '#/components/schemas/ListVersionsOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n}","type":"json"}]',
- 'title' => 'CreateLayerVersion',
- ],
- 'DeleteLayerVersion' => [
- 'summary' => 'Deletes a layer version.',
- 'path' => '/2023-03-30/layers/{layerName}/versions/{version}',
- 'methods' => [
- 'delete',
+ 'title' => 'ListFunctionVersions',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctionVersions'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListFunctionVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"direction\\": \\"FORWARD\\",\\n \\"nextToken\\": \\"3\\",\\n \\"versions\\": [\\n {\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"my version\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListFunctions' => [
+ 'summary' => 'Retrieves a list of functions.',
+ 'path' => '/2023-03-30/functions',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '178525',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178520',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'layerName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
+ 'name' => 'prefix',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '', 'description' => 'The function name prefix.', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '', 'description' => 'The pagination token.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '', 'description' => 'The number of functions to return. Minimum value: 1. Maximum value: 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'fcVersion',
+ 'in' => 'query',
'schema' => [
- 'title' => '层名称',
- 'description' => 'The layer name.'."\n",
+ 'title' => '',
+ 'description' => 'The version to which the function belongs. Valid values:'."\n"
+ .'- v3: lists only FC 3.0 functions.'."\n"
+ .'- v2: lists only FC 2.0 functions.'."\n"
+ ."\n"
+ .'If not specified, both FC 3.0 and FC 2.0 functions are listed.',
'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
+ 'example' => 'v3',
+ 'enum' => ['v3', 'v2'],
+ 'required' => false,
],
- 'examples' => [],
],
[
- 'name' => 'version',
- 'in' => 'path',
- 'allowEmptyValue' => false,
+ 'name' => 'tags',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'title' => '层版本',
- 'description' => 'The layer version.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
+ 'title' => '',
+ 'description' => 'The function tags to filter by.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The tag information bound to the function.', '$ref' => '#/components/schemas/Tag', 'required' => false, 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'example' => '',
],
- 'examples' => [],
+ ],
+ [
+ 'name' => 'runtime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The function runtime to filter by.', 'type' => 'string', 'required' => false, 'example' => 'python3.10'],
+ ],
+ [
+ 'name' => 'gpuType',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The function GPU type to filter by.', 'type' => 'string', 'required' => false, 'example' => 'fc.gpu.tesla.1'],
+ ],
+ [
+ 'name' => 'description',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The function description to filter by.', 'type' => 'string', 'required' => false, 'example' => 'test_description'],
+ ],
+ [
+ 'name' => 'functionName',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The function name.', 'type' => 'string', 'required' => false, 'example' => ''],
+ ],
+ [
+ 'name' => 'resourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The resource group ID.', 'type' => 'string', 'required' => false, 'example' => ''],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'description' => '函数列表',
+ 'schema' => ['title' => '', 'description' => 'The list of functions.', 'required' => false, '$ref' => '#/components/schemas/ListFunctionsOutput', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '', 'description' => 'The error message.', 'required' => false, '$ref' => '#/components/schemas/Error', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteLayerVersion',
- ],
- 'GetLayerVersion' => [
- 'summary' => 'Queries versions of a layer.',
- 'path' => '/2023-03-30/layers/{layerName}/versions/{version}',
- 'methods' => [
- 'get',
+ 'title' => 'List functions',
+ 'description' => 'ListFunctions returns only a subset of fields for function properties. To retrieve additional property fields for a specific function, including state, stateReasonCode, stateReason, lastUpdateStatus, lastUpdateStatusReasonCode, and lastUpdateStatusReason, use [GetFunction](~~2618610~~).',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctions'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListFunctions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ListInstances' => [
+ 'summary' => 'Lists function instances.',
+ 'path' => '/2023-03-30/functions/{functionName}/instances',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '178542',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178512',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
],
'parameters' => [
[
- 'name' => 'layerName',
+ 'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层名称',
- 'description' => 'The name of the layer.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'version',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层版本',
- 'description' => 'The version of the layer.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The function version or alias.', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
'examples' => [],
],
- ],
- 'responses' => [
- 200 => [
- 'description' => '层配置信息',
- 'schema' => [
- 'title' => '层配置信息',
- 'description' => 'The information about layer configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Layer',
- ],
+ [
+ 'name' => 'withAllActive',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'Specifies whether to list all active instances.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
'examples' => [],
],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
+ [
+ 'name' => 'instanceStatus',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'title' => '错误信息',
- 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance status.',
+ 'type' => 'string',
+ 'enum' => ['Running', 'Terminating', 'Destroyed'],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
'required' => false,
- '$ref' => '#/components/schemas/Error',
+ 'description' => 'An array of instance statuses. The operation returns only instances whose status is in this array.',
+ 'title' => '',
+ 'example' => '',
],
- 'examples' => [],
],
- ],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n}","type":"json"}]',
- 'title' => 'GetLayerVersion',
- ],
- 'GetLayerVersionByArn' => [
- 'summary' => 'Obtain version information of a layer by using ARNs.',
- 'path' => '/2023-03-30/layerarn/{arn}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'tags' => [],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'startTimeMs',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The start time of the query range, specified as a UNIX timestamp in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'title' => '', 'example' => ''],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '178551',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
+ [
+ 'name' => 'endTimeMs',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The end time of the query range, specified as a UNIX timestamp in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'title' => '', 'example' => ''],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
- ],
- 'parameters' => [
[
- 'name' => 'arn',
- 'in' => 'path',
- 'allowEmptyValue' => false,
+ 'name' => 'startKey',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The token that specifies where to start the query. It is returned in a truncated response and can be used to retrieve the next page of results.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The maximum number of instances to return.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'instanceIds',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'title' => '层资源标识',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the layer.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'acs:fc:cn-shanghai:1234:layers/my-layer/versions/1',
+ 'type' => 'array',
+ 'items' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'description' => 'A list of instance IDs to return.',
+ 'title' => '',
+ 'example' => '',
],
- 'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '层版本信息',
- 'schema' => [
- 'title' => '层版本信息',
- 'description' => 'The layer versions.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/Layer',
- ],
+ 'description' => '函数实例列表',
+ 'schema' => ['description' => 'The list of function instances.', 'required' => false, '$ref' => '#/components/schemas/ListInstancesOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n}","type":"json"}]',
- 'title' => 'GetLayerVersionByArn',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"instances\\": [\\n {\\n \\"instanceId\\": \\"1ef6b6ff-7f7b-485e-ab49-501ac681****\\",\\n \\"versionId\\": \\"0\\",\\n \\"qualifier\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"createdTimeMs\\": 0,\\n \\"destroyedTimeMs\\": 0,\\n \\"resourceType\\": \\"\\"\\n }\\n ],\\n \\"requestId\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => 'ListInstances',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListInstances'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListInstances',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
],
'ListLayerVersions' => [
- 'summary' => 'Gets a list of layer versions.',
+ 'summary' => 'Retrieves a list of layer versions.',
'path' => '/2023-03-30/layers/{layerName}/versions',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'abilityTreeCode' => '178553',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -11023,106 +6372,83 @@
'name' => 'layerName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层名称',
- 'description' => 'The layer name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
- ],
+ 'schema' => ['description' => 'The layer name.', 'type' => 'string', 'required' => true, 'example' => 'my-layer', 'title' => ''],
'examples' => [],
],
[
'name' => 'startVersion',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '起始版本',
- 'description' => 'The initial version of the layer.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The version from which to start the query.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
'examples' => [],
],
[
'name' => 'limit',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的版本数量',
- 'description' => 'The number of versions to be returned.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'The number of versions to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '层版本列表',
- 'schema' => [
- 'title' => '层版本列表',
- 'description' => 'The layer versions.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListLayerVersionOutput',
- ],
+ 'schema' => ['description' => 'The list of layer versions.', 'required' => false, '$ref' => '#/components/schemas/ListLayerVersionOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"layers\\": [\\n {\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n }\\n ],\\n \\"nextVersion\\": 10\\n}","type":"json"}]',
'title' => 'ListLayerVersions',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListLayerVersions'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListLayerVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"layers\\": [\\n {\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n }\\n ],\\n \\"nextVersion\\": 10\\n}","type":"json"}]',
],
'ListLayers' => [
- 'summary' => 'Gets a list of layers.',
+ 'summary' => 'Lists layers.',
'path' => '/2023-03-30/layers',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'abilityTreeCode' => '178528',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -11131,401 +6457,540 @@
'name' => 'prefix',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '层名称前缀',
- 'description' => 'The name prefix of the layer.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-layer',
- ],
+ 'schema' => ['description' => 'The prefix of the layer name.', 'type' => 'string', 'required' => false, 'example' => 'my-layer', 'title' => ''],
'examples' => [],
],
[
'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'schema' => ['description' => 'The token that marks the start of the next page of results.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
'examples' => [],
],
[
'name' => 'limit',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的层数量',
- 'description' => 'The number of layers that are returned'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'The number of layers to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
'examples' => [],
],
[
'name' => 'public',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否公开层',
- 'description' => 'Specifies whether the layer is public. Valid values: true and false.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => 'Specifies whether the layer is public. Valid values: true and false.', 'type' => 'string', 'required' => false, 'example' => 'true', 'title' => ''],
'examples' => [],
],
[
'name' => 'official',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否官方层',
- 'description' => 'Specifies whether the layer is official. Valid values: true and false.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => 'Specifies whether the layer is an official layer. Valid values: true and false.', 'type' => 'string', 'required' => false, 'example' => 'true', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '层列表',
- 'schema' => [
- 'title' => '层列表',
- 'description' => 'The layers.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListLayersOutput',
- ],
+ 'schema' => ['description' => 'The list of layers.', 'required' => false, '$ref' => '#/components/schemas/ListLayersOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"layers\\": [\\n {\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n }\\n ],\\n \\"nextToken\\": \\"next-layer-name\\"\\n}","type":"json"}]',
'title' => 'ListLayers',
- ],
- 'PutLayerACL' => [
- 'summary' => 'Modifies permissions of a layer.',
- 'path' => '/2023-03-30/layers/{layerName}/acl',
- 'methods' => [
- 'put',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListLayers'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListLayers',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"layers\\": [\\n {\\n \\"acl\\": \\"0\\",\\n \\"code\\": {\\n \\"location\\": \\"https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx\\",\\n \\"repositoryType\\": \\"OSS\\"\\n },\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"compatibleRuntime\\": [\\n \\"python3.10\\"\\n ],\\n \\"createTime\\": \\"2023-03-30T11:08:00Z\\",\\n \\"description\\": \\"My first layer\\",\\n \\"layerName\\": \\"MyLayer\\",\\n \\"layerVersionArn\\": \\"acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1\\",\\n \\"license\\": \\"Apache\\",\\n \\"version\\": 1\\n }\\n ],\\n \\"nextToken\\": \\"next-layer-name\\"\\n}","type":"json"}]',
+ ],
+ 'ListProvisionConfigs' => [
+ 'summary' => 'Retrieves a list of provisioned configurations.',
+ 'path' => '/2023-03-30/provision-configs',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '178544',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178548',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'layerName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层名称',
- 'description' => 'The layer name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
- ],
+ 'name' => 'functionName',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The name of the function. If you do not specify this parameter, the provisioned configurations for all functions are returned.', 'type' => 'string', 'required' => false, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'public',
+ 'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否公开层',
- 'description' => 'Specify whether the layer is a public layer. Valid values: true and false.'."\n",
- 'type' => 'string',
- 'deprecated' => true,
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => 'The token to start the next page of results.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
'examples' => [],
],
[
- 'name' => 'acl',
+ 'name' => 'limit',
'in' => 'query',
- 'schema' => [
- 'title' => '设置层的访问权限,1:公开,0:私有,默认为私有',
- 'description' => 'Specify the access permission of the layer. A value of 1 indicates public and a value of 0 indicates private. The default value is 0.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- 'enum' => [],
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The number of provisioned configurations to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ 'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'description' => '预留配置列表',
+ 'schema' => ['description' => 'A list of provisioned configurations.', 'required' => false, '$ref' => '#/components/schemas/ListProvisionConfigsOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'PutLayerACL',
- ],
- 'ListInstances' => [
- 'summary' => 'Queries a list of function instances.',
- 'path' => '/2023-03-30/functions/{functionName}/instances',
- 'methods' => [
- 'get',
+ 'title' => 'ListProvisionConfigs',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProvisionConfigs'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListProvisionConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'tags' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"next_token\\",\\n \\"provisionConfigs\\": [\\n {\\n \\"scheduledActions\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10Z\\",\\n \\"name\\": \\"test_1\\",\\n \\"scheduleExpression\\": \\"cron(0 0 22 * * *)\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10Z\\",\\n \\"target\\": 50,\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"currentError\\": \\"image not found\\",\\n \\"defaultTarget\\": 5,\\n \\"current\\": 1,\\n \\"alwaysAllocateCPU\\": true,\\n \\"alwaysAllocateGPU\\": true,\\n \\"targetTrackingPolicies\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10Z\\",\\n \\"maxCapacity\\": 10,\\n \\"metricTarget\\": 0.6,\\n \\"metricType\\": \\"CPUUtilization\\",\\n \\"minCapacity\\": 1,\\n \\"name\\": \\"test_1\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10Z\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:124:functions/myFunction/prod\\",\\n \\"target\\": 5\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListScalingConfigs' => [
+ 'summary' => 'Lists the auto scaling configurations for a function.',
+ 'path' => '/2023-03-30/scaling-configs',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU', 'FEATUREfcEHTP7G'],
],
- 'produces' => [
- 'application/json',
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => false, 'example' => 'my-func', 'title' => ''],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of auto scaling configurations to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''],
+ ],
],
- 'operationType' => 'readAndWrite',
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'The list of auto scaling configurations.', '$ref' => '#/components/schemas/ListScalingConfigsOutput', 'title' => '', 'example' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'ListScalingConfigs',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListScalingConfigs',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"next_token\\",\\n \\"scalingConfigs\\": [\\n {\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:124:functions/myFunction/prod\\",\\n \\"residentPoolId\\": \\"fc-pool-a2b664c1f87171j4******\\",\\n \\"minInstances\\": 1,\\n \\"currentInstances\\": 1,\\n \\"currentError\\": \\"image not found\\",\\n \\"targetInstances\\": 10,\\n \\"enableOnDemandScaling\\": true,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"student_app_shop_analyzer\\",\\n \\"startTime\\": \\"1764432000000\\",\\n \\"endTime\\": \\"1633449590000\\",\\n \\"target\\": 5,\\n \\"scheduleExpression\\": \\"。\\",\\n \\"timeZone\\": \\"。\\"\\n }\\n ],\\n \\"horizontalScalingPolicies\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10Z\\",\\n \\"endTime\\": \\"2024-03-10T10:10:10Z\\",\\n \\"metricType\\": \\"CPUUtilization\\",\\n \\"metricTarget\\": 0.6,\\n \\"minInstances\\": 1,\\n \\"maxInstances\\": 10,\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"enableMixMode\\": true,\\n \\"requestDispatchPolicy\\": \\"Balanced\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListSessions' => [
+ 'summary' => 'Lists sessions in Active or Expired status under a specified function. Supports filtering by qualifier, status, and session ID, and supports paged query. Returns basic session properties for batch viewing of session distribution and status, facilitating operations management and external system integration, and improving session visibility and management capability.',
+ 'path' => '/2023-03-30/functions/{functionName}/sessions',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '178512',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '', 'description' => 'The function name.', 'type' => 'string', 'example' => 'my-func', 'required' => false],
],
[
'name' => 'qualifier',
'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => 'The function version or alias.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
+ 'schema' => ['title' => '', 'description' => 'The function alias or version information.', 'type' => 'string', 'example' => 'aliasName1', 'required' => false],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The number of sessions to return. Default value: 20.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'required' => false],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The pagination token.', 'type' => 'string', 'example' => 'MTIzNCNhYmM=', 'required' => false],
+ ],
+ [
+ 'name' => 'sessionStatus',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The session status to filter by. By default, all session information in Active or Expired status is returned. Set this parameter to Active to retrieve only active session information, or to Expired to retrieve only expired session information.', 'type' => 'string', 'example' => 'Active', 'required' => false],
+ ],
+ [
+ 'name' => 'sessionId',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The session ID to filter by. If specified, all Active or Expired status information associated with this session is returned.', 'type' => 'string', 'example' => 'test-session-id-1', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'The list of session information returned.', '$ref' => '#/components/schemas/ListSessionsOutput', 'title' => '', 'example' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Query session information list',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListSessions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
- 'examples' => [],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"MTIzNCNhYmM=\\",\\n \\"sessions\\": [\\n {\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": false,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"readOnly\\": false\\n }\\n ]\\n },\\n \\"juiceFsConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"volumeName\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"token\\": \\"\\",\\n \\"args\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"envs\\": {\\n \\"key\\": \\"\\"\\n }\\n },\\n \\"enableAutoPause\\": false,\\n \\"enableAutoResume\\": false\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListTagResources' => [
+ 'summary' => 'Lists all tagged resources.',
+ 'path' => '/2023-03-30/tags-v2',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'withAllActive',
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '205647',
+ 'abilityTreeNodes' => ['FEATUREfcWG6KAJ'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The resource type.', 'type' => 'string', 'required' => true, 'example' => 'ALIYUN::FC::FUNCTION', 'title' => ''],
+ ],
+ [
+ 'name' => 'ResourceId',
'in' => 'query',
'allowEmptyValue' => true,
+ 'style' => 'json',
'schema' => [
- 'title' => '是否列出所有活跃实例',
- 'description' => 'Specifies whether to list all instances. Valid values: true and false.'."\n",
- 'type' => 'boolean',
+ 'title' => '',
+ 'description' => 'The list of resource IDs.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The resource ID.', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func', 'title' => ''],
'required' => false,
- 'example' => 'true',
+ 'example' => '',
],
- 'examples' => [],
],
[
- 'name' => 'instanceStatus',
+ 'name' => 'Tag',
'in' => 'query',
+ 'allowEmptyValue' => true,
'style' => 'json',
'schema' => [
+ 'title' => '',
+ 'description' => 'The list of tags.'."\n"
+ ."\n"
+ .'You can specify up to 20 tags.',
'type' => 'array',
'items' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Running',
- 'Terminating',
- 'Destroyed',
+ 'description' => 'The tag information.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The tag key.'."\n"
+ ."\n"
+ .'The tag key can be up to 64 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'example' => 'k1', 'required' => false, 'title' => ''],
+ 'Value' => ['description' => 'The tag value.'."\n"
+ ."\n"
+ .'The tag value can be up to 128 characters in length. It can be an empty string.', 'type' => 'string', 'example' => 'v1', 'required' => false, 'title' => ''],
],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
'required' => false,
+ 'example' => '',
],
],
[
- 'name' => 'startTimeMs',
+ 'name' => 'NextToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The token that is used to retrieve the next page of results.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
],
[
- 'name' => 'endTimeMs',
+ 'name' => 'Limit',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The number of resources to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '10'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => '资源列表',
+ 'schema' => ['description' => 'The list of resources.', 'required' => false, '$ref' => '#/components/schemas/ListTagResourcesOutput', 'title' => '', 'example' => ''],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
+ 'examples' => [],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'ListTagResources',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"next_token\\",\\n \\"RequestId\\": \\"xxx\\",\\n \\"TagResources\\": [\\n {\\n \\"ResourceId\\": \\"acs:fc:cn-shanghai:****:functions/demo\\",\\n \\"ResourceType\\": \\"function\\",\\n \\"TagKey\\": \\"key1\\",\\n \\"TagValue\\": \\"key1\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListTriggers' => [
+ 'path' => '/2023-03-30/functions/{functionName}/triggers',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'startKey',
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '178550',
+ 'abilityTreeNodes' => ['FEATUREfc0CDUNQ'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'prefix',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The trigger name prefix.', 'type' => 'string', 'required' => false, 'example' => 'my-trigger', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'limit',
+ 'name' => 'nextToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The token that marks the start of the next page of results.', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM=', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'instanceIds',
+ 'name' => 'limit',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'required' => false,
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The number of triggers to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数实例列表',
- 'schema' => [
- 'title' => '函数实例列表',
- 'description' => 'The function instances.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListInstancesOutput',
- ],
+ 'schema' => ['description' => 'The list of triggers.', 'required' => false, '$ref' => '#/components/schemas/ListTriggersOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"instances\\": [\\n {\\n \\"instanceId\\": \\"1ef6b6ff-7f7b-485e-ab49-501ac681****\\",\\n \\"versionId\\": \\"\\",\\n \\"qualifier\\": \\"\\",\\n \\"status\\": \\"\\",\\n \\"createdTimeMs\\": 0,\\n \\"destroyedTimeMs\\": 0,\\n \\"resourceType\\": \\"\\"\\n }\\n ],\\n \\"requestId\\": \\"\\"\\n}","type":"json"}]',
- 'title' => 'ListInstances',
+ 'title' => 'ListTriggers',
+ 'summary' => 'Lists the triggers for a specified function.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTriggers'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListTriggers',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"next_token\\",\\n \\"triggers\\": [\\n {\\n \\"createdTime\\": \\"2020-08-20T02:28:21Z\\",\\n \\"description\\": \\"test_description\\",\\n \\"httpTrigger\\": {\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n },\\n \\"invocationRole\\": \\"acs:ram::151641468453****:role/my-role\\",\\n \\"lastModifiedTime\\": \\"2020-04-23T06:32:43Z\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"sourceArn\\": \\"acs:oss:cn-hangzhou:151641468453****:my-bucket\\",\\n \\"status\\": \\"OK\\",\\n \\"targetArn\\": \\"acs:oss:cn-hangzhou:151641468453****:my-bucket\\",\\n \\"triggerConfig\\": \\"{\\\\n \\\\\\"events\\\\\\": [\\\\n \\\\\\"oss:ObjectCreated:*\\\\\\"\\\\n ],\\\\n \\\\\\"filter\\\\\\": {\\\\n \\\\\\"key\\\\\\": {\\\\n \\\\\\"prefix\\\\\\": \\\\\\"/prefix\\\\\\",\\\\n \\\\\\"suffix\\\\\\": \\\\\\".zip\\\\\\"\\\\n }\\\\n }\\\\n}\\",\\n \\"triggerId\\": \\"546959b5-ce1a-4991-8891-df7a02b25086\\",\\n \\"triggerName\\": \\"defaultTrigger\\",\\n \\"triggerType\\": \\"http\\"\\n }\\n ]\\n}","type":"json"}]',
],
'ListVpcBindings' => [
- 'summary' => 'Queries a list of existing VPC connections.',
'path' => '/2023-03-30/functions/{functionName}/vpc-bindings',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'abilityTreeCode' => '191968',
- 'abilityTreeNodes' => [
- 'FEATUREfcL3E8J5',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcL3E8J5'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -11534,36 +6999,19 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => 'VPC绑定配置列表',
- 'schema' => [
- 'title' => 'VPC绑定配置列表',
- 'description' => 'The VPC binding configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListVpcBindingsOutput',
- ],
+ 'schema' => ['description' => 'The list of VPC attachment configurations.', 'required' => false, '$ref' => '#/components/schemas/ListVpcBindingsOutput', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
@@ -11571,565 +7019,663 @@
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"vpcIds\\": [\\n \\"vpc-8vb8x8dggvr0axxxxxxxx\\"\\n ]\\n}","type":"json"}]',
'title' => 'ListVpcBindings',
+ 'summary' => 'Queries existing VPC attachments.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListVpcBindings'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListVpcBindings',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"vpcIds\\": [\\n \\"vpc-8vb8x8dggvr0axxxxxxxx\\"\\n ]\\n}","type":"json"}]',
],
- 'CreateVpcBinding' => [
- 'summary' => 'Creates a VPC connection.',
- 'path' => '/2023-03-30/functions/{functionName}/vpc-bindings',
- 'methods' => [
- 'post',
+ 'PauseSession' => [
+ 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}/pause',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
],
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the function associated with the session.', 'type' => 'string', 'required' => false, 'example' => 'my-func', 'title' => ''],
+ ],
+ [
+ 'name' => 'sessionId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the session to save.', 'type' => 'string', 'required' => false, 'example' => 'test-session-id-1', 'title' => ''],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The function alias or version associated with the session ID to save.', 'type' => 'string', 'required' => false, 'example' => 'aliasName1', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'The session configuration information.', '$ref' => '#/components/schemas/Session', 'title' => '', 'example' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Pause a session',
+ 'summary' => 'Pauses and saves a session.',
+ 'description' => 'Pauses an active session by persisting the state of its associated runtime environment and then releasing compute resources. After the call, the session status changes to Paused, and the session no longer accepts function invocation requests. This operation retains the session configuration (such as SessionTTL) and SessionID. You can use this operation to interrupt long-running tasks or save snapshots of development environments for cost optimization and state management. This operation applies to custom image functions that are configured with the HEADER_FIELD or GENERATED_COOKIE affinity type and session isolation.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PauseSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": false,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"readOnly\\": false\\n }\\n ]\\n },\\n \\"juiceFsConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"volumeName\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"token\\": \\"\\",\\n \\"args\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"envs\\": {\\n \\"key\\": \\"\\"\\n }\\n },\\n \\"enableAutoPause\\": false,\\n \\"enableAutoResume\\": false\\n}","type":"json"}]',
+ ],
+ 'PublishFunctionVersion' => [
+ 'path' => '/2023-03-30/functions/{functionName}/versions',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
- 'abilityTreeCode' => '191967',
- 'abilityTreeNodes' => [
- 'FEATUREfcL3E8J5',
- ],
+ 'abilityTreeCode' => '178541',
+ 'abilityTreeNodes' => ['FEATUREfcDTB0I5'],
'autoTest' => true,
- 'tenantRelevance' => 'tenant',
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
'examples' => [],
],
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => 'VPC绑定配置',
- 'description' => 'The VPC binding configurations.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/CreateVpcBindingInput',
- ],
+ 'schema' => ['description' => 'The information about the function version.', 'required' => true, '$ref' => '#/components/schemas/PublishVersionInput', 'title' => '', 'example' => ''],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => 'OK',
+ 'schema' => ['description' => 'The information about the function version.', 'required' => false, '$ref' => '#/components/schemas/Version', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'CreateVpcBinding',
- ],
- 'DeleteVpcBinding' => [
- 'summary' => 'Deletes an access control policy from a specified policy group for a VPC firewall.',
- 'path' => '/2023-03-30/functions/{functionName}/vpc-bindings/{vpcId}',
- 'methods' => [
- 'delete',
+ 'title' => 'PublishFunctionVersion',
+ 'summary' => 'Publishes a function version.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PublishFunctionVersion'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PublishFunctionVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"my version\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n}","type":"json"}]',
+ ],
+ 'PutAsyncInvokeConfig' => [
+ 'summary' => 'Creates or updates the asynchronous invocation configuration for a function.',
+ 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '191969',
- 'abilityTreeNodes' => [
- 'FEATUREfcL3E8J5',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'tenant',
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178523',
+ 'abilityTreeNodes' => ['FEATUREfcBKET2W'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The asynchronous invocation configuration of the function.', 'required' => true, '$ref' => '#/components/schemas/PutAsyncInvokeConfigInput', 'title' => '', 'example' => ''],
'examples' => [],
],
[
- 'name' => 'vpcId',
+ 'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => 'VPC实例ID',
- 'description' => 'The ID of the virtual private cloud (VPC).'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'vpc-bp106zxlfj1fqc9',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The function version or alias.', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'description' => '函数异步调用配置信息',
+ 'schema' => ['description' => 'The information about the asynchronous invocation configuration of the function.', 'required' => false, '$ref' => '#/components/schemas/AsyncConfig', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteVpcBinding',
- ],
- 'TagResources' => [
- 'summary' => 'Adds tags to a resource.',
- 'path' => '/2023-03-30/tags-v2',
- 'methods' => [
- 'post',
+ 'title' => 'PutAsyncInvokeConfig',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutAsyncInvokeConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutFunctionAsyncInvokeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"asyncTask\\": true,\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"destinationConfig\\": {\\n \\"onFailure\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n },\\n \\"onSuccess\\": {\\n \\"destination\\": \\"acs:fc:cn-shanghai:xxx:functions/f1\\"\\n }\\n },\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"maxAsyncEventAgeInSeconds\\": 3600,\\n \\"maxAsyncRetryAttempts\\": 3\\n}","type":"json"}]',
+ ],
+ 'PutConcurrencyConfig' => [
+ 'summary' => 'Sets the concurrency for a function.',
+ 'path' => '/2023-03-30/functions/{functionName}/concurrency',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
- 'abilityTreeCode' => '205648',
- 'abilityTreeNodes' => [
- 'FEATUREfcWG6KAJ',
- ],
+ 'abilityTreeCode' => '178511',
+ 'abilityTreeNodes' => ['FEATUREfcM7AF1D'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
+ ],
+ [
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '资源标签配置',
- 'description' => 'The configuration of the resource tag.'."\n",
- 'required' => true,
- '$ref' => '#/components/schemas/TagResourcesInput',
- ],
+ 'schema' => ['description' => 'The concurrency configuration of the function.', 'required' => true, '$ref' => '#/components/schemas/PutConcurrencyInput', 'title' => '', 'example' => ''],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => 'OK',
+ 'description' => '函数并发度配置信息',
+ 'schema' => ['description' => 'The concurrency configuration of the function.', 'required' => false, '$ref' => '#/components/schemas/ConcurrencyConfig', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'TagResources',
- 'description' => 'Tags are used to identify resources. Tags allow you to categorize, search for, and aggregate resources that have the same characteristics from different dimensions. This facilitates resource management. For more information, see [Tag overview](~~156983~~).',
- ],
- 'ListTagResources' => [
- 'summary' => 'Lists all tagged resources.',
- 'path' => '/2023-03-30/tags-v2',
- 'methods' => [
- 'get',
+ 'title' => 'PutConcurrencyConfig',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutConcurrencyConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/demo\\",\\n \\"reservedConcurrency\\": 10\\n}","type":"json"}]',
+ ],
+ 'PutLayerACL' => [
+ 'summary' => 'Modifies the permissions of a layer.',
+ 'path' => '/2023-03-30/layers/{layerName}/acl',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '205647',
- 'abilityTreeNodes' => [
- 'FEATUREfcWG6KAJ',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '178544',
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ResourceType',
- 'in' => 'query',
+ 'name' => 'layerName',
+ 'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '资源数量类型, ALIYUN::FC::FUNCTION 表示函数计算3.0版本中的函数',
- 'description' => 'The type of the resource.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ALIYUN::FC:FUNCTION',
- ],
- ],
- [
- 'name' => 'ResourceId',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'style' => 'json',
- 'schema' => [
- 'title' => '资源标识列表',
- 'description' => 'The resource IDs.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The resource ID.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func',
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => 'The name of the layer.', 'type' => 'string', 'required' => true, 'example' => 'my-layer', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'Tag',
+ 'name' => 'public',
'in' => 'query',
'allowEmptyValue' => true,
- 'style' => 'json',
- 'schema' => [
- 'title' => '标签列表',
- 'description' => 'The tags.'."\n"
- ."\n"
- .'You can query up to 20 tags at a time.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => '标签',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => 'The tag key.'."\n"
- ."\n"
- .'The tag key can be up to 64 characters in length, and cannot contain `http://` or `https://`. The tag key cannot start with `aliyun` or `acs:`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'k1',
- ],
- 'Value' => [
- 'description' => 'The tag value.'."\n"
- ."\n"
- .'The tag value can be up to 128 characters in length and can be an empty string.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v1',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => 'Specifies whether to make the layer public. Valid values: true and false.', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'true', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'NextToken',
+ 'name' => 'acl',
'in' => 'query',
- 'allowEmptyValue' => true,
'schema' => [
- 'title' => '下一个查询开始Token',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n",
+ 'description' => 'The access permissions of the layer. Valid values: 1 (public) and 0 (private). The default value is 0.',
'type' => 'string',
+ 'example' => '1',
+ 'enum' => [],
+ 'title' => '',
'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- ],
- [
- 'name' => 'Limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的资源数量',
- 'description' => 'The number of resources to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
],
],
],
'responses' => [
- 200 => [
- 'description' => '资源列表',
- 'schema' => [
- 'title' => '资源列表',
- 'description' => 'The list of resources.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListTagResourcesOutput',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"next_token\\",\\n \\"RequestId\\": \\"\\",\\n \\"TagResources\\": [\\n {\\n \\"ResourceId\\": \\"acs:fc:cn-shanghai:****:functions/demo\\",\\n \\"ResourceType\\": \\"ALIYUN::FC::FUNCTION\\",\\n \\"TagKey\\": \\"key1\\",\\n \\"TagValue\\": \\"key1\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListTagResources',
- ],
- 'UntagResources' => [
- 'summary' => 'Removes tags from a resource.',
- 'path' => '/2023-03-30/tags-v2',
- 'methods' => [
- 'delete',
+ 'title' => 'PutLayerACL',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutLayerACL'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PutLayerACL',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'PutProvisionConfig' => [
+ 'path' => '/2023-03-30/functions/{functionName}/provision-config',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '206475',
- 'abilityTreeNodes' => [
- 'FEATUREfcWG6KAJ',
- ],
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '178546',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ResourceType',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '资源类型',
- 'description' => 'The resource type.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'function',
- ],
- ],
- [
- 'name' => 'ResourceId',
- 'in' => 'query',
+ 'name' => 'functionName',
+ 'in' => 'path',
'allowEmptyValue' => false,
- 'style' => 'json',
- 'schema' => [
- 'title' => '资源标识列表',
- 'description' => 'The resource identifiers.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The resource ID.'."\n"
- ."\n"
- .'The ARN of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1',
- ],
- 'required' => true,
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'TagKey',
+ 'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'style' => 'json',
- 'schema' => [
- 'title' => '标签名称列表',
- 'description' => 'The tag to remove. You can specify a maximum of 50 tags.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The tag key.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'k1',
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => 'The function alias.', 'type' => 'string', 'required' => false, 'example' => 'prod', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'All',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否删除所有标签',
- 'description' => 'Specifies whether to delete all tags.'."\n",
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The provisioned configuration.', 'required' => true, '$ref' => '#/components/schemas/PutProvisionConfigInput', 'title' => '', 'example' => ''],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => 'OK',
+ 'schema' => ['description' => 'The provisioned configuration.', 'required' => false, '$ref' => '#/components/schemas/ProvisionConfig', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'UntagResources',
+ 'title' => 'PutProvisionConfig',
+ 'summary' => 'Creates a provisioned configuration.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutProvisionConfig'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"scheduledActions\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10Z\\",\\n \\"name\\": \\"test_1\\",\\n \\"scheduleExpression\\": \\"cron(0 0 22 * * *)\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10Z\\",\\n \\"target\\": 50,\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"currentError\\": \\"image not found\\",\\n \\"defaultTarget\\": 5,\\n \\"current\\": 1,\\n \\"alwaysAllocateCPU\\": true,\\n \\"alwaysAllocateGPU\\": true,\\n \\"targetTrackingPolicies\\": [\\n {\\n \\"endTime\\": \\"2024-03-10T10:10:10Z\\",\\n \\"maxCapacity\\": 10,\\n \\"metricTarget\\": 0.6,\\n \\"metricType\\": \\"CPUUtilization\\",\\n \\"minCapacity\\": 1,\\n \\"name\\": \\"test_1\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10Z\\",\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:124:functions/myFunction/prod\\",\\n \\"target\\": 5\\n}","type":"json"}]',
],
- 'GetAsyncTask' => [
- 'summary' => 'Queries the information about an asynchronous task.',
- 'path' => '/2023-03-30/functions/{functionName}/async-tasks/{taskId}',
- 'methods' => [
- 'get',
+ 'PutScalingConfig' => [
+ 'summary' => 'Set the elastic scaling configuration for a function.',
+ 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
],
- 'tags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'Function name', 'type' => 'string', 'required' => false, 'example' => 'my-func', 'title' => ''],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Function alias', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => 'Elastic scaling configuration for the function', '$ref' => '#/components/schemas/PutScalingConfigInput', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'Function elastic scaling configuration information', '$ref' => '#/components/schemas/ScalingConfigStatus', 'title' => '', 'example' => ''],
+ ],
+ 400 => [],
+ 500 => [],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'PutScalingConfig',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PutScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:124:functions/myFunction/prod\\",\\n \\"residentPoolId\\": \\"fc-pool-a2b664c1f87171j4******\\",\\n \\"minInstances\\": 1,\\n \\"currentInstances\\": 1,\\n \\"currentError\\": \\"image not found\\",\\n \\"targetInstances\\": 10,\\n \\"enableOnDemandScaling\\": true,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"student_app_shop_analyzer\\",\\n \\"startTime\\": \\"1764432000000\\",\\n \\"endTime\\": \\"1633449590000\\",\\n \\"target\\": 5,\\n \\"scheduleExpression\\": \\"。\\",\\n \\"timeZone\\": \\"。\\"\\n }\\n ],\\n \\"horizontalScalingPolicies\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"startTime\\": \\"2023-03-10T10:10:10Z\\",\\n \\"endTime\\": \\"2024-03-10T10:10:10Z\\",\\n \\"metricType\\": \\"CPUUtilization\\",\\n \\"metricTarget\\": 0.6,\\n \\"minInstances\\": 1,\\n \\"maxInstances\\": 10,\\n \\"timeZone\\": \\"Asia/Shanghai\\"\\n }\\n ],\\n \\"enableMixMode\\": true,\\n \\"requestDispatchPolicy\\": \\"Balanced\\"\\n}","type":"json"}]',
+ ],
+ 'ResumeSession' => [
+ 'summary' => 'Resumes a session.',
+ 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}/resume',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the function associated with the session.', 'type' => 'string', 'example' => 'my-func', 'required' => false, 'title' => ''],
+ ],
+ [
+ 'name' => 'sessionId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the session to resume.', 'type' => 'string', 'required' => false, 'example' => 'test-sessionid-1', 'title' => ''],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The function alias or version associated with the session ID to resume.', 'type' => 'string', 'required' => false, 'example' => 'aliasName1', 'title' => ''],
+ ],
+ [
+ 'name' => 'fileSystemOnly',
+ 'in' => 'query',
+ 'schema' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => 'The session configuration information.', '$ref' => '#/components/schemas/Session', 'title' => '', 'example' => ''],
+ ],
],
- 'produces' => [
- 'application/json',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Resume a session',
+ 'description' => 'Resumes a session that is in the Paused state. The system quickly restores the session in a new execution environment based on the previously persisted state, returning it to the state before it was paused. After the session is successfully resumed, its status changes back to Active, and it can continue to accept function calling requests and route them to the restored instance. This operation applies to custom image functions that have HEADER_FIELD or GENERATED_COOKIE affinity types configured and session isolation enabled.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:ResumeSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": false,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"readOnly\\": false\\n }\\n ]\\n },\\n \\"juiceFsConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"volumeName\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"token\\": \\"\\",\\n \\"args\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"envs\\": {\\n \\"key\\": \\"\\"\\n }\\n },\\n \\"enableAutoPause\\": false\\n}","type":"json"}]',
+ ],
+ 'StopAsyncTask' => [
+ 'path' => '/2023-03-30/functions/{functionName}/async-tasks/{taskId}/stop',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '213992',
- 'abilityTreeNodes' => [
- 'FEATUREfcBKET2W',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '213994',
+ 'abilityTreeNodes' => ['FEATUREfcYBHLF0'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -12138,59 +7684,30 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
],
[
'name' => 'taskId',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '异步任务 id',
- 'description' => 'The ID of the asynchronous task.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****',
- ],
+ 'schema' => ['description' => 'The ID of the asynchronous task.', 'type' => 'string', 'required' => true, 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****', 'title' => ''],
],
[
'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => 'The version or alias of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'schema' => ['description' => 'The version or alias of the function.', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'title' => ''],
],
],
'responses' => [
- 200 => [
- 'description' => '异步任务信息',
- 'schema' => [
- 'title' => '异步任务信息',
- 'description' => 'The asynchronous task information. The returnPayload parameter is in beta test. If you want to use this parameter, [contact us](~~2513733~~).'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/AsyncTask',
- ],
+ 204 => [
+ 'description' => 'No Content',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
@@ -12198,249 +7715,219 @@
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"alreadyRetriedTimes\\": 3,\\n \\"destinationStatus\\": \\"Succeeded\\",\\n \\"durationMs\\": 1000,\\n \\"endTime\\": 1633449590000,\\n \\"events\\": [\\n {\\n \\"eventDetail\\": \\"body\\",\\n \\"eventId\\": 1,\\n \\"status\\": \\"Succeeded\\",\\n \\"timestamp\\": 1647420449721\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"instanceId\\": \\"D4-*******9FD1-882707E\\",\\n \\"qualifier\\": \\"prod\\",\\n \\"requestId\\": \\"e026ae92-61e5-472f-b32d-1c9e3c4e****\\",\\n \\"returnPayload\\": \\"result\\",\\n \\"startedTime\\": 1633449590000,\\n \\"status\\": \\"Running\\",\\n \\"taskErrorMessage\\": \\"UnhandledInvocationError\\",\\n \\"taskId\\": \\"e026ae92-61e5-472f-b32d-1c9e3c4e****\\",\\n \\"taskPayload\\": \\"body\\"\\n}","type":"json"}]',
- 'title' => 'GetAsyncTask',
- ],
- 'ListAsyncTasks' => [
- 'summary' => 'Lists asynchronous tasks.',
- 'path' => '/2023-03-30/functions/{functionName}/async-tasks',
- 'methods' => [
- 'get',
+ 'title' => 'StopAsyncTask',
+ 'summary' => 'Stops an asynchronous task.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopAsyncTask'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:StopAsyncTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'TagResources' => [
+ 'path' => '/2023-03-30/tags-v2',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '213993',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '205648',
+ 'abilityTreeNodes' => ['FEATUREfcWG6KAJ'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The resource tag configuration.', 'required' => true, '$ref' => '#/components/schemas/TagResourcesInput', 'title' => '', 'example' => ''],
],
- [
- 'name' => 'prefix',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '异步任务id前缀',
- 'description' => 'The ID prefix of asynchronous tasks. If this parameter is specified, a list of asynchronous tasks whose IDs match the prefix is returned.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'job-',
- ],
- ],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'examples' => [],
],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回异步任务的数量',
- 'description' => 'The number of asynchronous tasks to return. The default value is 20. Valid values: \\[1,100].'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
+ 'examples' => [],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => 'The version or alias of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'TagResources',
+ 'summary' => 'Adds tags to specified resources.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'UntagResources' => [
+ 'summary' => 'Removes tags from resources.',
+ 'path' => '/2023-03-30/tags-v2',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'status',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '异步任务执行状态。Enqueued 表示请求已经成功入队;Running 表示正在执行中;Succeeded 表示执行成功;Failed 表示执行失败;Stopped 表示停止执行;Expired 表示请求已过期',
- 'description' => 'The state of asynchronous tasks. The following items list the states of an asynchronous task:'."\n"
- ."\n"
- .'* Enqueued: The asynchronous invocation is enqueued and waiting to be executed.'."\n"
- .'* Dequeued: The asynchronous invocation is dequeued and waiting to be triggered.'."\n"
- .'* Running: The invocation is being executed.'."\n"
- .'* Succeeded: The invocation is successful.'."\n"
- .'* Failed: The invocation fails.'."\n"
- .'* Stopped: The invocation is terminated.'."\n"
- .'* Stopping: The invocation is being terminated.'."\n"
- .'* Expired: The maximum validity period of messages is specified for asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of messages expires.'."\n"
- .'* Invalid: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.'."\n"
- .'* Retrying: The asynchronous invocation is being retried due to an execution error.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Running',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '206475',
+ 'abilityTreeNodes' => ['FEATUREfcWG6KAJ'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
[
- 'name' => 'startedTimeBegin',
+ 'name' => 'ResourceType',
'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '异步任务启动时间段的开始时间',
- 'description' => 'The start time of the period during which the asynchronous tasks are initiated.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1640966400000',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The resource type.', 'type' => 'string', 'required' => true, 'example' => 'function', 'title' => ''],
],
[
- 'name' => 'startedTimeEnd',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'allowEmptyValue' => true,
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
'schema' => [
- 'title' => '异步任务启动时间段的结束时间',
- 'description' => 'The end time of the period during which the asynchronous tasks are initiated.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1640966400000',
+ 'title' => '',
+ 'description' => 'A list of resource IDs.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The ID of the resource.'."\n"
+ ."\n"
+ .'The resource ID is the ARN of the function.', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1', 'title' => ''],
+ 'required' => true,
+ 'example' => '',
],
],
[
- 'name' => 'sortOrderByTime',
+ 'name' => 'TagKey',
'in' => 'query',
'allowEmptyValue' => true,
+ 'style' => 'json',
'schema' => [
- 'title' => '返回异步任务列表的排序方式。asc 表示生序;desc 表示降序',
- 'description' => 'The order in which the returned asynchronous tasks are sorted.'."\n"
- ."\n"
- .'* asc: in ascending order.'."\n"
- .'* desc: in descending order.'."\n",
- 'type' => 'string',
+ 'title' => '',
+ 'description' => 'The keys of the tags to remove. You can specify up to 50 tag keys.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''],
'required' => false,
- 'example' => 'asc',
+ 'example' => '',
],
],
[
- 'name' => 'includePayload',
+ 'name' => 'All',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否返回异步任务的入参',
- 'description' => 'Specifies whether to return input parameters of the asynchronous tasks. Valid values:'."\n"
- ."\n"
- .'* true: returns the `invocationPayload` parameter in the response.'."\n"
- .'* false: does not return the `invocationPayload` parameter in the response.'."\n"
- ."\n"
- .'> The `invocationPayload` parameter indicates the input parameters of an asynchronous task.'."\n",
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => 'Specifies whether to remove all tags.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
],
'responses' => [
200 => [
- 'description' => '异步任务列表',
- 'schema' => [
- 'title' => '异步任务列表',
- 'description' => 'The response parameters.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/ListAsyncTaskOutput',
- ],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"\\",\\n \\"tasks\\": [\\n {\\n \\"alreadyRetriedTimes\\": 3,\\n \\"destinationStatus\\": \\"Succeeded\\",\\n \\"durationMs\\": 1000,\\n \\"endTime\\": 1633449590000,\\n \\"events\\": [\\n {\\n \\"eventDetail\\": \\"body\\",\\n \\"eventId\\": 1,\\n \\"status\\": \\"Succeeded\\",\\n \\"timestamp\\": 1647420449721\\n }\\n ],\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:1234/functions/my-func\\",\\n \\"instanceId\\": \\"D4-*******9FD1-882707E\\",\\n \\"qualifier\\": \\"prod\\",\\n \\"requestId\\": \\"e026ae92-61e5-472f-b32d-1c9e3c4e****\\",\\n \\"returnPayload\\": \\"result\\",\\n \\"startedTime\\": 1633449590000,\\n \\"status\\": \\"Running\\",\\n \\"taskErrorMessage\\": \\"UnhandledInvocationError\\",\\n \\"taskId\\": \\"e026ae92-61e5-472f-b32d-1c9e3c4e****\\",\\n \\"taskPayload\\": \\"body\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListAsyncTasks',
- ],
- 'StopAsyncTask' => [
- 'summary' => 'Stops an asynchronous task.',
- 'path' => '/2023-03-30/functions/{functionName}/async-tasks/{taskId}/stop',
- 'methods' => [
- 'put',
+ 'title' => 'UntagResources',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:UntagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'UpdateAlias' => [
+ 'summary' => 'Updates an alias.',
+ 'path' => '/2023-03-30/functions/{functionName}/aliases/{aliasName}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
- 'abilityTreeCode' => '213994',
- 'abilityTreeNodes' => [
- 'FEATUREfcYBHLF0',
- ],
+ 'abilityTreeCode' => '184941',
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -12449,255 +7936,239 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['description' => 'The function name.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'taskId',
+ 'name' => 'aliasName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '异步任务 id',
- 'description' => 'The ID of the asynchronous task.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****',
- ],
+ 'schema' => ['description' => 'The function alias.', 'type' => 'string', 'required' => true, 'example' => 'my-alias', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => 'The version or alias of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The alias information to update.', 'required' => true, '$ref' => '#/components/schemas/UpdateAliasInput', 'title' => '', 'example' => ''],
+ 'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'description' => '更新后的别名信息',
+ 'schema' => ['description' => 'The updated alias information.', 'required' => false, '$ref' => '#/components/schemas/Alias', 'title' => '', 'example' => ''],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'StopAsyncTask',
- ],
- 'CreateSession' => [
- 'summary' => 'The CreateSession operation creates an explicit session resource. The system automatically generates a unique session ID, pre-allocates a function instance, and associates it with the session. You can specify values for TTL and idle timeout. This method applies to the HEADER_FIELD and GENERATED_COOKIE affinity types. It handles session preload and configuration initialization. After you call the InvokeFunction API, the session information can be included in the InvokeFunction request to enable request routing.',
- 'path' => '/2023-03-30/functions/{functionName}/sessions',
- 'methods' => [
- 'post',
+ 'title' => 'UpdateAlias',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAlias'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 0.5\\n },\\n \\"aliasName\\": \\"prod\\",\\n \\"createdTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"description\\": \\"alias for pre env\\",\\n \\"lastModifiedTime\\": \\"2006-01-02T15:04:05Z07:00\\",\\n \\"versionId\\": \\"1\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateCustomDomain' => [
+ 'path' => '/2023-03-30/custom-domains/{domainName}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcYLZHVD',
- ],
+ 'abilityTreeCode' => '178510',
+ 'abilityTreeNodes' => ['FEATUREfcJ7WA06'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
+ 'name' => 'domainName',
'in' => 'path',
- 'schema' => [
- 'title' => '创建Session的函数名称',
- 'description' => 'The name of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
- ],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'title' => '用于指定函数所属的版本或别名',
- 'description' => 'Specifies the version or alias to which the sesion belongs.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The domain name.', 'type' => 'string', 'required' => true, 'example' => 'foo.bar.com', 'title' => ''],
+ 'examples' => [],
],
[
'name' => 'body',
'in' => 'body',
- 'schema' => [
- 'title' => '创建会话配置',
- 'description' => 'Creates session configurations.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/CreateSessionInput',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The information about the custom domain name.', 'required' => true, '$ref' => '#/components/schemas/UpdateCustomDomainInput', 'title' => '', 'example' => ''],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => '会话资源信息',
- 'description' => 'The session resources.'."\n",
- '$ref' => '#/components/schemas/Session',
- ],
+ 'schema' => ['description' => 'The information about the custom domain name.', 'required' => false, '$ref' => '#/components/schemas/CustomDomain', 'title' => '', 'example' => ''],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
+ 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": true,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => 'CreateSession',
- ],
- 'GetSession' => [
- 'summary' => 'You can use this operation to retrieve detailed information about a specific session, including its session ID, associated function, affinity type, lifecycle configuration, status, and instance details. This operation retrieves the current metadata for a session. You can identify the metadata precisely using either the function name or qualifier. This capability enables you to monitor and debug external systems with ease. Only sessions that are in the Active state can be queried.',
- 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
- 'methods' => [
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
],
- 'schemes' => [
- 'https',
+ 'title' => 'UpdateCustomDomain',
+ 'summary' => 'Updates a custom domain name.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateCustomDomain'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"accountId\\": \\"186851234023****\\",\\n \\"apiVersion\\": \\"2023-03-30\\",\\n \\"authConfig\\": {\\n \\"authInfo\\": \\"{}\\",\\n \\"authType\\": \\"anonymous\\"\\n },\\n \\"certConfig\\": {\\n \\"certName\\": \\"my-cert\\",\\n \\"certificate\\": \\"PEM format\\",\\n \\"privateKey\\": \\"PEM format\\"\\n },\\n \\"createdTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"domainName\\": \\"example.com\\",\\n \\"lastModifiedTime\\": \\"2023-03-30T08:02:19Z\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"myFunction\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/api/*\\",\\n \\"qualifier\\": \\"myAlias\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/api/.+?/(.*)\\",\\n \\"replacement\\": \\"/api/v2/$1\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"subdomainCount\\": \\"1\\",\\n \\"tlsConfig\\": {\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\",\\n \\"minVersion\\": \\"TLSv1.0\\"\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n },\\n \\"corsConfig\\": {\\n \\"allowOrigins\\": [\\n \\"\\"\\n ],\\n \\"allowMethods\\": [\\n \\"\\"\\n ],\\n \\"allowHeaders\\": [\\n \\"\\"\\n ],\\n \\"exposeHeaders\\": [\\n \\"\\"\\n ],\\n \\"allowCredentials\\": true,\\n \\"maxAge\\": 3600\\n },\\n \\"isE2B\\": false\\n}","type":"json"}]',
+ ],
+ 'UpdateFunction' => [
+ 'path' => '/2023-03-30/functions/{functionName}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcYLZHVD',
- ],
+ 'abilityTreeCode' => '178513',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The name of the function to which the session belongs.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'myFunction',
- ],
- ],
- [
- 'name' => 'sessionId',
- 'in' => 'path',
- 'schema' => [
- 'title' => '会话ID值',
- 'description' => 'The session ID.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-sessionid-index1',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'title' => '函数别名或版本信息',
- 'description' => 'The function alias or version associated with the queried session ID.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The function\'s configuration.', 'required' => true, '$ref' => '#/components/schemas/UpdateFunctionInput', 'title' => '', 'example' => ''],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => '函数会话信息',
- 'description' => 'The function session details.'."\n",
- '$ref' => '#/components/schemas/Session',
- ],
+ 'schema' => ['description' => 'The function\'s updated configuration.', 'required' => false, '$ref' => '#/components/schemas/Function', 'title' => '', 'example' => ''],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
+ 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'UpdateFunction',
+ 'summary' => 'Updates a function\'s configuration.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFunction'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": true,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => 'GetSession',
],
'UpdateSession' => [
- 'summary' => 'Updates session configurations while the session is in the Active state, such as lifecycle parameters (e.g., SessionTTLInSeconds and SessionIdleTimeoutInSeconds). After the update takes effect, LastModifiedTime is automatically refreshed. These updates can be used to extend or shorten the validity period of a session and enable dynamic management without changing the execution environment bound to the session.',
'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcYLZHVD',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -12705,91 +8176,70 @@
[
'name' => 'functionName',
'in' => 'path',
- 'schema' => [
- 'title' => 'Session所属的函数名称',
- 'description' => 'The name of the function to which the session belongs.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '', 'description' => 'The name of the function to which the session belongs.', 'type' => 'string', 'example' => 'my-func', 'required' => false],
],
[
'name' => 'sessionId',
'in' => 'path',
- 'schema' => [
- 'title' => '更新的SessionId ,会话标识符',
- 'description' => 'The ID of the session to be updated.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-sessionid-1',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the session to update.', 'type' => 'string', 'example' => 'test-sessionid-1', 'required' => false],
],
[
'name' => 'qualifier',
'in' => 'query',
- 'schema' => [
- 'title' => '函数别名或版本信息',
- 'description' => 'The function alias or version associated with the session to be updated.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
- ],
+ 'schema' => ['title' => '', 'description' => 'The function alias or version associated with the session ID to update.', 'type' => 'string', 'example' => 'aliasName1', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
- 'schema' => [
- 'title' => '会话更新配置',
- 'description' => 'The session update configuration.',
- 'required' => false,
- '$ref' => '#/components/schemas/UpdateSessionInput',
- ],
+ 'schema' => ['title' => '', 'description' => 'The session update configuration.', '$ref' => '#/components/schemas/UpdateSessionInput', 'required' => false, 'example' => ''],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => '函数会话资源信息',
- 'description' => 'The updated session information.',
- '$ref' => '#/components/schemas/Session',
- ],
+ 'schema' => ['title' => '', 'description' => 'The updated function session resource information.', '$ref' => '#/components/schemas/Session', 'example' => ''],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": true,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => 'UpdateSession',
- ],
- 'ListSessions' => [
- 'summary' => 'Lists sessions in the Active and/or Expired state(s) under the specified function. Supports filtering by qualifier, status, and session ID, as well as paginated queries. Returns basic session attributes for batch viewing of session distribution and status, helping with operations monitoring and integration with external systems, and enhancing session visibility and management.',
- 'path' => '/2023-03-30/functions/{functionName}/sessions',
- 'methods' => [
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Update session configuration',
+ 'summary' => 'Updates the configuration of a session in Active status, such as lifecycle settings including SessionTTLInSeconds and SessionIdleTimeoutInSeconds. The changes take effect immediately, and LastModifiedTime is automatically refreshed. You can use this operation to extend or shorten the session validity period for dynamic management without changing the execution environment bound to the session.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": false,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"readOnly\\": false\\n }\\n ]\\n },\\n \\"juiceFsConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"volumeName\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\",\\n \\"token\\": \\"\\",\\n \\"args\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"envs\\": {\\n \\"key\\": \\"\\"\\n }\\n },\\n \\"enableAutoPause\\": false,\\n \\"enableAutoResume\\": false\\n}","type":"json"}]',
+ ],
+ 'UpdateTrigger' => [
+ 'summary' => 'Updates the information of a trigger.',
+ 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcYLZHVD',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '178536',
+ 'abilityTreeNodes' => ['FEATUREfc0CDUNQ'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -12797,530 +8247,1088 @@
[
'name' => 'functionName',
'in' => 'path',
- 'schema' => [
- 'title' => '函数名',
- 'description' => 'The function name.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The name of the function.', 'type' => 'string', 'required' => true, 'example' => 'my-func', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'title' => '函数别名或版本信息',
- 'description' => 'The function alias or version.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
- ],
+ 'name' => 'triggerName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The name of the trigger.', 'type' => 'string', 'required' => true, 'example' => 'my-trigger', 'title' => ''],
+ 'examples' => [],
],
[
- 'name' => 'limit',
- 'in' => 'query',
- 'schema' => [
- 'title' => '返回的会话数量',
- 'description' => 'The number of sessions to be returned. If this parameter is not specified, 20 sessions are returned by default.',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'maximum' => '100',
- 'minimum' => '1',
- 'example' => '10',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The trigger configuration.', 'required' => true, '$ref' => '#/components/schemas/UpdateTriggerInput', 'title' => '', 'example' => ''],
+ 'examples' => [],
],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => 'The token for the next page.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'description' => '更新后的触发器配置',
+ 'schema' => ['description' => 'The updated trigger configuration.', 'required' => false, '$ref' => '#/components/schemas/Trigger', 'title' => '', 'example' => ''],
+ 'examples' => [],
],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error', 'description' => '', 'example' => ''],
+ 'examples' => [],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'UpdateTrigger',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTrigger'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'sessionStatus',
- 'in' => 'query',
- 'schema' => [
- 'title' => '过滤表达式,格式:field:value[,field:value...],当前仅支持 sessionStatus'."\0".'信息,如sessionStatus'."\0".':Normal。',
- 'description' => 'The session status to filter. By default, information for all sessions in the Active and Expired states is returned. You can specify Active to retrieve only active sessions, or Expired to retrieve only expired sessions.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Active',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
- [
- 'name' => 'sessionId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '过滤的SessionId 值,如指定,可返回关联的 Active/Expired 会话信息',
- 'description' => 'The SessionId value to filter. If specified, all session information associated with this session ID in Active or Expired states is returned.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-session-id-1',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2020-08-20T02:28:21Z\\",\\n \\"description\\": \\"test_description\\",\\n \\"httpTrigger\\": {\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n },\\n \\"invocationRole\\": \\"acs:ram::151641468453****:role/my-role\\",\\n \\"lastModifiedTime\\": \\"2020-04-23T06:32:43Z\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"sourceArn\\": \\"acs:oss:cn-hangzhou:151641468453****:my-bucket\\",\\n \\"status\\": \\"OK\\",\\n \\"targetArn\\": \\"acs:oss:cn-hangzhou:151641468453****:my-bucket\\",\\n \\"triggerConfig\\": \\"{\\\\n \\\\\\"events\\\\\\": [\\\\n \\\\\\"oss:ObjectCreated:*\\\\\\"\\\\n ],\\\\n \\\\\\"filter\\\\\\": {\\\\n \\\\\\"key\\\\\\": {\\\\n \\\\\\"prefix\\\\\\": \\\\\\"/prefix\\\\\\",\\\\n \\\\\\"suffix\\\\\\": \\\\\\".zip\\\\\\"\\\\n }\\\\n }\\\\n}\\",\\n \\"triggerId\\": \\"546959b5-ce1a-4991-8891-df7a02b25086\\",\\n \\"triggerName\\": \\"defaultTrigger\\",\\n \\"triggerType\\": \\"http\\"\\n}","type":"json"}]',
+ ],
+ ],
+ 'endpoints' => [
+ ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.ap-northeast-1.aliyuncs.com', 'endpoint' => 'fcv3.ap-northeast-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-northeast-2', 'regionName' => 'South Korea (Seoul)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.ap-northeast-2.aliyuncs.com', 'endpoint' => 'fcv3.ap-northeast-2.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.ap-southeast-1.aliyuncs.com', 'endpoint' => 'fcv3.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-2', 'regionName' => 'Australia (Sydney) Closed', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.ap-southeast-2.aliyuncs.com', 'endpoint' => 'fcv3.ap-southeast-2.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.ap-southeast-3.aliyuncs.com', 'endpoint' => 'fcv3.ap-southeast-3.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.ap-southeast-5.aliyuncs.com ', 'endpoint' => 'fcv3.ap-southeast-5.aliyuncs.com ', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-7', 'regionName' => 'Thailand (Bangkok)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.ap-southeast-7.aliyuncs.com', 'endpoint' => 'fcv3.ap-southeast-7.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-beijing.aliyuncs.com', 'endpoint' => 'fcv3.cn-beijing.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-chengdu.aliyuncs.com', 'endpoint' => 'fcv3.cn-chengdu.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-hangzhou.aliyuncs.com', 'endpoint' => 'fcv3.cn-hangzhou.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-hongkong.aliyuncs.com', 'endpoint' => 'fcv3.cn-hongkong.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-huhehaote', 'regionName' => 'China (Hohhot)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-huhehaote.aliyuncs.com', 'endpoint' => 'fcv3.cn-huhehaote.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-qingdao.aliyuncs.com', 'endpoint' => 'fcv3.cn-qingdao.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-shanghai.aliyuncs.com', 'endpoint' => 'fcv3.cn-shanghai.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-shenzhen.aliyuncs.com', 'endpoint' => 'fcv3.cn-shenzhen.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'fcv3.cn-wulanchabu.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'fcv3.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'fcv3.cn-zhangjiakou.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'fcv3.us-west-1.aliyuncs.com', 'endpoint' => 'fcv3.us-west-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'fcv3.us-east-1.aliyuncs.com', 'endpoint' => 'fcv3.us-east-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'eu-west-1', 'regionName' => 'UK (London)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'fcv3.eu-west-1.aliyuncs.com', 'endpoint' => 'fcv3.eu-west-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'fcv3.eu-central-1.aliyuncs.com', 'endpoint' => 'fcv3.eu-central-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'me-central-1', 'regionName' => 'Saudi Arabia (Riyadh)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'me-central-1.fc.aliyuncs.com', 'endpoint' => 'me-central-1.fc.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-south-1', 'regionName' => 'India (Mumbai) Closed', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'fcv3.ap-south-1.aliyuncs.com', 'endpoint' => 'fcv3.ap-south-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cn-shanghai-finance-1.fc.aliyuncs.com', 'endpoint' => 'cn-shanghai-finance-1.fc.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-heyuan-acdr-1', 'regionName' => 'Heyuan ACDR Auto', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cn-heyuan-acdr-1.fc.aliyuncs.com', 'endpoint' => 'cn-heyuan-acdr-1.fc.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-hangzhou-finance', 'regionName' => 'China East 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cn-hangzhou-finance.fc.aliyuncs.com', 'endpoint' => 'cn-hangzhou-finance.fc.aliyuncs.com', 'vpc' => ''],
+ ],
+ 'errorCodes' => [
+ ['code' => 'CAExited', 'message' => 'The function either cannot be started or exited. %s.', 'http_code' => 412, 'description' => 'Custom Runtime or Container Function Startup Failure'],
+ ['code' => 'CAFileNotFound', 'message' => 'The function cannot be started. %s.', 'http_code' => 412, 'description' => 'Custom Runtime Function Startup File Missing'],
+ ['code' => 'FunctionNotFound', 'message' => 'function \'%s\' does not exist.', 'http_code' => 404, 'description' => 'Function not found'],
+ ['code' => 'InstanceMetricsRequired', 'message' => 'Target tracking policy required instance metrics enabled.', 'http_code' => 400, 'description' => 'When configuring target tracking policy in PutProvisionConfig, you must enable the instance metric collection feature for your function.'],
+ ],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFunction'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutConcurrencyConfig'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateCustomDomain'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListInstances'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFunction'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteCustomDomain'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAsyncInvokeConfig'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateVpcBinding'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListConcurrencyConfigs'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAlias'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTrigger'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetConcurrencyConfig'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctions'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteProvisionConfig'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCustomDomain'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutAsyncInvokeConfig'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteLayerVersion'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunctionVersion'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListLayers'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAlias'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunction'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteConcurrencyConfig'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListVpcBindings'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateLayerVersion'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteVpcBinding'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAlias'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTrigger'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProvisionConfig'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTrigger'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTrigger'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAsyncTasks'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PublishFunctionVersion'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLayerVersion'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFunctionVersions'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutLayerACL'],
+ ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFunctionCode'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAliases'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutProvisionConfig'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProvisionConfigs'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncTask'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAsyncInvokeConfigs'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTriggers'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLayerVersionByArn'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCustomDomain'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopAsyncTask'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListLayerVersions'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncInvokeConfig'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAlias'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFunction'],
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListCustomDomains'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'FCV3',
+ 'productName' => 'Function Compute',
+ 'ramCodes' => ['fc'],
+ 'ramLevel' => 'RESOURCE',
+ 'ramConditions' => [
+ [
+ 'name' => 'fc:EnableServiceSLSLogging',
+ 'schema' => [
+ 'type' => 'String',
+ 'description' => 'Whether to enable the SLS logging feature for the function. If this configuration is not specified, the condition value will be undefined.',
+ 'enums' => ['true', 'false', 'unknown'],
+ ],
+ ],
+ [
+ 'name' => 'fc:EnableServiceInternetAccess',
+ 'schema' => [
+ 'type' => 'String',
+ 'description' => 'Whether to enable the function&#39;s public network access capability. If this configuration is not specified, the condition value will be undefined.',
+ 'enums' => ['true', 'false', 'unknown'],
+ ],
+ ],
+ [
+ 'name' => 'fc:EnableCustomDomainHTTP',
+ 'schema' => [
+ 'type' => 'String',
+ 'description' => 'Whether to enable HTTP protocol access to custom domains. If this configuration is not specified, the condition value will be undefined.',
+ 'enums' => ['true', 'false', 'unknown'],
+ ],
+ ],
+ [
+ 'name' => 'fc:EnableHTTPTriggerAnonymous',
+ 'schema' => [
+ 'type' => 'String',
+ 'description' => 'Whether to enable anonymous access for the HTTP Trigger. If this configuration is not specified, the condition value will be undefined.',
+ 'enums' => ['true', 'false', 'unknown'],
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'apiName' => 'GetTrigger',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => 'The list of returned session information.',
- '$ref' => '#/components/schemas/ListSessionsOutput',
+ [
+ 'apiName' => 'GetProvisionConfig',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'PublishFunctionVersion',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PublishFunctionVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"MTIzNCNhYmM=\\",\\n \\"sessions\\": [\\n {\\n \\"sessionId\\": \\"81f70ae156904eb9b7d43e12f511fe58\\",\\n \\"functionName\\": \\"functionName1\\",\\n \\"sessionAffinityType\\": \\"HEADER_FIELD\\",\\n \\"sessionTTLInSeconds\\": 21600,\\n \\"sessionIdleTimeoutInSeconds\\": 1800,\\n \\"createdTime\\": \\"2025-04-01T08:15:27Z\\",\\n \\"lastModifiedTime\\": \\"2025-04-01T18:15:27Z\\",\\n \\"sessionStatus\\": \\"Active\\",\\n \\"containerId\\": \\"c-68999e02-16a1955c-d2a03d1ccs\\",\\n \\"qualifier\\": \\"AliasName1\\",\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"enableTLS\\": true,\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.com:/\\"\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"disableSessionIdReuse\\": true,\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"bucketPath\\": \\"/my-dir\\",\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true\\n }\\n ]\\n },\\n \\"polarFsConfig\\": {\\n \\"groupId\\": 0,\\n \\"userId\\": 0,\\n \\"mountPoints\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"mountDir\\": \\"\\",\\n \\"remoteDir\\": \\"\\"\\n }\\n ]\\n }\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListSessions',
- ],
- 'DeleteSession' => [
- 'summary' => 'Deletes the specified session and prohibits new requests from being routed to it. Clears the session metadata from the database, so subsequent requests with the same session ID are treated as new sessions. Releases resources and performs session cleanup. In session isolation scenarios, terminates running requests and releases the instance bound to the session. In non-session isolation scenarios, allows running requests to continue and gracefully terminates them.',
- 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
- 'methods' => [
- 'delete',
+ [
+ 'apiName' => 'GetAlias',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'DeleteScalingConfig',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'PutProvisionConfig',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
- 'consumes' => [
- 'application/json',
+ [
+ 'apiName' => 'UpdateFunction',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ [
+ 'apiName' => 'DeleteFunctionVersion',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteFunctionVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'DeleteAsyncInvokeConfig',
+ 'description' => '',
'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcYLZHVD',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteFunctionAsyncInvokeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'title' => '函数名称',
- 'description' => 'The function name.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'GetFunction',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'sessionId',
- 'in' => 'path',
- 'schema' => [
- 'title' => '会话ID值',
- 'description' => 'The ID of the session to be deleted.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-session-id-1',
+ ],
+ [
+ 'apiName' => 'UpdateSession',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'title' => '函数别名或版本信息',
- 'description' => 'The function alias or version associated with the session to be deleted.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
+ ],
+ [
+ 'apiName' => 'PutConcurrencyConfig',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- 'responses' => [
- 204 => [],
+ [
+ 'apiName' => 'GetLayerVersionByArn',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetLayerVersionByArn',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'InvokeFunction',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:InvokeFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteSession',
- ],
- 'PutScalingConfig' => [
- 'summary' => 'Scaling settings',
- 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
- 'methods' => [
- 'put',
+ [
+ 'apiName' => 'CreateTrigger',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'UpdateAlias',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'PutAsyncInvokeConfig',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutFunctionAsyncInvokeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'ListLayerVersions',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListLayerVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetFunctionCode',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetFunctionCode',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ChangeResourceGroup',
+ 'description' => '',
'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcI9H8B8',
+ 'ramAction' => [
+ 'action' => 'fc:ChangeResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'Function', 'arn' => 'acs:fc:{#regionId}:{#accountId}:functions/{#FunctionName}'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'PutLayerACL',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PutLayerACL',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The function alias.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
+ ],
+ [
+ 'apiName' => 'GetConcurrencyConfig',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => 'The function scalability configuration.'."\n",
- 'required' => false,
- '$ref' => '#/components/schemas/PutScalingConfigInput',
+ ],
+ [
+ 'apiName' => 'CreateAlias',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => 'The function scalability configuration.'."\n",
- '$ref' => '#/components/schemas/ScalingConfigStatus',
+ [
+ 'apiName' => 'CreateSession',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- 400 => [],
- 500 => [],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'ListAsyncInvokeConfigs',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListFunctionAsyncInvokeConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"\\",\\n \\"residentPoolId\\": \\"\\",\\n \\"minInstances\\": 0,\\n \\"currentInstances\\": 0,\\n \\"currentError\\": \\"\\",\\n \\"targetInstances\\": 0,\\n \\"enableOnDemandScaling\\": true,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"target\\": 0,\\n \\"scheduleExpression\\": \\"\\",\\n \\"timeZone\\": \\"\\"\\n }\\n ],\\n \\"horizontalScalingPolicies\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"metricType\\": \\"\\",\\n \\"metricTarget\\": 0,\\n \\"minInstances\\": 0,\\n \\"maxInstances\\": 0,\\n \\"timeZone\\": \\"\\"\\n }\\n ],\\n \\"enableMixMode\\": true,\\n \\"requestDispatchPolicy\\": \\"\\"\\n}","type":"json"}]',
- 'title' => 'PutScalingConfig',
- ],
- 'DeleteScalingConfig' => [
- 'summary' => 'Deletes the scaling settings of a function.',
- 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
- 'methods' => [
- 'delete',
+ [
+ 'apiName' => 'DeleteSession',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'DeleteCustomDomain',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'CustomDomain', 'arn' => 'acs:fc:{#regionId}:{#accountId}:custom-domains/{#domainName}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'DeleteVpcBinding',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteVpcBinding',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'GetScalingConfig',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListSessions',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListSessions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateLayerVersion',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteLayerVersion',
+ 'description' => '',
'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcI9H8B8',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'description' => 'The function name.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'ListFunctions',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListFunctions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The function alias.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
+ ],
+ [
+ 'apiName' => 'ListConcurrencyConfigs',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListConcurrencyConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- 'responses' => [
- 204 => [],
- 400 => [],
- 500 => [],
+ [
+ 'apiName' => 'UntagResources',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:UntagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'DisableFunctionInvocation',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:DisableFunctionInvocation',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'Function', 'arn' => 'acs:fc:{#regionId}:{#accountId}:functions/{#FunctionName}'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => 'DeleteScalingConfig',
- ],
- 'GetScalingConfig' => [
- 'summary' => 'Gets the scaling settings of a function.',
- 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
- 'methods' => [
- 'get',
+ [
+ 'apiName' => 'TagResources',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'DeleteFunction',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'ListTriggers',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListTriggers',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'CreateFunction',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListVpcBindings',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListVpcBindings',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListScalingConfigs',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListScalingConfigs',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateTrigger',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'StopAsyncTask',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:StopAsyncTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteProvisionConfig',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateCustomDomain',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAsyncTasks',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListAsyncTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAliases',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListAliases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAsyncInvokeConfig',
+ 'description' => '',
'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- 'FEATUREfcEHTP7G',
+ 'ramAction' => [
+ 'action' => 'fc:GetFunctionAsyncInvokeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'description' => 'The name of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'ListFunctionVersions',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListFunctionVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The alias of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
+ ],
+ [
+ 'apiName' => 'DeleteTrigger',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => 'The scaling settings.'."\n",
- '$ref' => '#/components/schemas/ScalingConfigStatus',
+ [
+ 'apiName' => 'GetCustomDomain',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'CreateCustomDomain',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"\\",\\n \\"residentPoolId\\": \\"\\",\\n \\"minInstances\\": 0,\\n \\"currentInstances\\": 0,\\n \\"currentError\\": \\"\\",\\n \\"targetInstances\\": 0,\\n \\"enableOnDemandScaling\\": true,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"target\\": 0,\\n \\"scheduleExpression\\": \\"\\",\\n \\"timeZone\\": \\"\\"\\n }\\n ],\\n \\"horizontalScalingPolicies\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"metricType\\": \\"\\",\\n \\"metricTarget\\": 0,\\n \\"minInstances\\": 0,\\n \\"maxInstances\\": 0,\\n \\"timeZone\\": \\"\\"\\n }\\n ],\\n \\"enableMixMode\\": true,\\n \\"requestDispatchPolicy\\": \\"\\"\\n}","type":"json"}]',
- 'title' => 'GetScalingConfig',
- ],
- 'ListScalingConfigs' => [
- 'summary' => 'Lists the scaling settings of a function.',
- 'path' => '/2023-03-30/scaling-configs',
- 'methods' => [
- 'get',
+ [
+ 'apiName' => 'PauseSession',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PauseSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'ListCustomDomains',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListCustomDomains',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'ResumeSession',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:ResumeSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'GetAsyncTask',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetAsyncTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteConcurrencyConfig',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAlias',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTagResources',
+ 'description' => '',
'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- 'FEATUREfcEHTP7G',
+ 'ramAction' => [
+ 'action' => 'fc:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the function.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'GetSession',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The token for the next page.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
+ ],
+ [
+ 'apiName' => 'GetLayerVersion',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The number of scaling settings to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '20',
+ ],
+ [
+ 'apiName' => 'CreateVpcBinding',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateVpcBinding',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => 'The list of the function\'s scaling settings.'."\n",
- '$ref' => '#/components/schemas/ListScalingConfigsOutput',
+ [
+ 'apiName' => 'EnableFunctionInvocation',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:EnableFunctionInvocation',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'Function', 'arn' => 'acs:fc:{#regionId}:{#accountId}:functions/{#FunctionName}'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'ListLayers',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListLayers',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PutScalingConfig',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PutScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListInstances',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListInstances',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListProvisionConfigs',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListProvisionConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"\\",\\n \\"scalingConfigs\\": [\\n {\\n \\"functionArn\\": \\"\\",\\n \\"residentPoolId\\": \\"\\",\\n \\"minInstances\\": 0,\\n \\"currentInstances\\": 0,\\n \\"currentError\\": \\"\\",\\n \\"targetInstances\\": 0,\\n \\"enableOnDemandScaling\\": true,\\n \\"scheduledPolicies\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"target\\": 0,\\n \\"scheduleExpression\\": \\"\\",\\n \\"timeZone\\": \\"\\"\\n }\\n ],\\n \\"horizontalScalingPolicies\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"metricType\\": \\"\\",\\n \\"metricTarget\\": 0,\\n \\"minInstances\\": 0,\\n \\"maxInstances\\": 0,\\n \\"timeZone\\": \\"\\"\\n }\\n ],\\n \\"enableMixMode\\": true,\\n \\"requestDispatchPolicy\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListScalingConfigs',
- ],
- ],
- 'endpoints' => [
- [
- 'regionId' => 'cn-qingdao',
- 'endpoint' => 'fcv3.cn-qingdao.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'fcv3.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-zhangjiakou',
- 'endpoint' => 'fcv3.cn-zhangjiakou.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-huhehaote',
- 'endpoint' => 'fcv3.cn-huhehaote.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'fcv3.cn-hangzhou.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'fcv3.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'fcv3.cn-shenzhen.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-chengdu',
- 'endpoint' => 'fcv3.cn-chengdu.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hongkong',
- 'endpoint' => 'fcv3.cn-hongkong.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-northeast-1',
- 'endpoint' => 'fcv3.ap-northeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-1',
- 'endpoint' => 'fcv3.ap-southeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-2',
- 'endpoint' => 'fcv3.ap-southeast-2.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-3',
- 'endpoint' => 'fcv3.ap-southeast-3.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-5',
- 'endpoint' => 'fcv3.ap-southeast-5.aliyuncs.com ',
- ],
- [
- 'regionId' => 'us-east-1',
- 'endpoint' => 'fcv3.us-east-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-west-1',
- 'endpoint' => 'fcv3.us-west-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'eu-west-1',
- 'endpoint' => 'fcv3.eu-west-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'eu-central-1',
- 'endpoint' => 'fcv3.eu-central-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-south-1',
- 'endpoint' => 'fcv3.ap-south-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou-finance',
- 'endpoint' => 'cn-hangzhou-finance.fc.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai-finance-1',
- 'endpoint' => 'cn-shanghai-finance-1.fc.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-7',
- 'endpoint' => 'fcv3.ap-southeast-7.aliyuncs.com',
- ],
- [
- 'regionId' => 'me-central-1',
- 'endpoint' => 'me-central-1.fc.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-heyuan-acdr-1',
- 'endpoint' => 'cn-heyuan-acdr-1.fc.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-wulanchabu',
- 'endpoint' => 'fcv3.cn-wulanchabu.aliyuncs.com',
],
- [
- 'regionId' => 'ap-northeast-2',
- 'endpoint' => 'fcv3.ap-northeast-2.aliyuncs.com',
+ 'resourceTypes' => [
+ ['validationType' => 'always', 'resourceType' => 'ScalingConfig', 'arn' => 'acs:fc:*:{#accountId}:scalingconfig/{#FunctionName}/{#Qualifier}'],
+ ['validationType' => 'always', 'resourceType' => 'Function', 'arn' => 'acs:fc:{#regionId}:{#accountId}:functions/{#FunctionName}'],
+ ['validationType' => 'always', 'resourceType' => 'CustomDomain', 'arn' => 'acs:fc:{#regionId}:{#accountId}:custom-domains/{#domainName}'],
],
],
];