summaryrefslogtreecommitdiff
path: root/data/zh_cn/fc/2023-03-30
diff options
context:
space:
mode:
Diffstat (limited to 'data/zh_cn/fc/2023-03-30')
-rw-r--r--data/zh_cn/fc/2023-03-30/api-docs.php14497
1 files changed, 5427 insertions, 9070 deletions
diff --git a/data/zh_cn/fc/2023-03-30/api-docs.php b/data/zh_cn/fc/2023-03-30/api-docs.php
index 69f9fc3..f74f0cf 100644
--- a/data/zh_cn/fc/2023-03-30/api-docs.php
+++ b/data/zh_cn/fc/2023-03-30/api-docs.php
@@ -1,189 +1,75 @@
<?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' => '资源组',
+ 'children' => ['DeleteFunctionVersion', 'GetFunctionCode', 'ListFunctionVersions', 'PublishFunctionVersion', 'InvokeFunction', 'EnableFunctionInvocation', 'DisableFunctionInvocation'],
'type' => 'directory',
- 'children' => [
- 'ChangeResourceGroup',
- ],
- ],
- [
- 'id' => 204534,
- 'title' => '地域',
- 'type' => 'directory',
- 'children' => [
- 'DescribeRegions',
- ],
- ],
- [
- 'id' => 187616,
- 'title' => '自定义域名',
- 'type' => 'directory',
- 'children' => [
- 'CreateCustomDomain',
- 'DeleteCustomDomain',
- 'GetCustomDomain',
- 'ListCustomDomains',
- 'UpdateCustomDomain',
- ],
- ],
- [
- 'id' => 187623,
'title' => '函数',
- 'type' => 'directory',
- 'children' => [
- 'DeleteFunctionVersion',
- 'GetFunctionCode',
- 'ListFunctionVersions',
- 'PublishFunctionVersion',
- 'CreateFunction',
- 'DeleteFunction',
- 'GetFunction',
- 'ListFunctions',
- 'InvokeFunction',
- 'UpdateFunction',
- 'EnableFunctionInvocation',
- 'DisableFunctionInvocation',
- ],
+ 'id' => 137176,
],
[
- 'id' => 187624,
- 'title' => '别名',
+ 'children' => ['GetAlias'],
'type' => 'directory',
- 'children' => [
- 'DeleteAlias',
- 'GetAlias',
- 'ListAliases',
- 'UpdateAlias',
- 'CreateAlias',
- ],
+ 'title' => '别名',
+ 'id' => 137189,
],
[
- 'id' => 187621,
- 'title' => '触发器',
+ 'children' => ['GetTrigger', 'ListTriggers', 'UpdateTrigger'],
'type' => 'directory',
- 'children' => [
- 'CreateTrigger',
- 'DeleteTrigger',
- 'GetTrigger',
- 'ListTriggers',
- 'UpdateTrigger',
- ],
+ 'title' => '触发器',
+ 'id' => 137166,
],
[
- 'id' => 187619,
- 'title' => '函数异步配置',
+ 'children' => ['DeleteAsyncInvokeConfig', 'GetAsyncInvokeConfig', 'ListAsyncInvokeConfigs', 'PutAsyncInvokeConfig'],
'type' => 'directory',
- 'children' => [
- 'DeleteAsyncInvokeConfig',
- 'GetAsyncInvokeConfig',
- 'ListAsyncInvokeConfigs',
- 'PutAsyncInvokeConfig',
- ],
+ 'title' => '函数异步配置',
+ 'id' => 137156,
],
[
- 'id' => 187617,
- 'title' => '预留函数配置',
+ 'children' => ['DeleteProvisionConfig', 'GetProvisionConfig', 'ListProvisionConfigs', 'PutProvisionConfig'],
'type' => 'directory',
- 'children' => [
- 'DeleteProvisionConfig',
- 'GetProvisionConfig',
- 'ListProvisionConfigs',
- 'PutProvisionConfig',
- ],
+ 'title' => '预留函数配置',
+ 'id' => 137149,
],
[
- 'id' => 187620,
- 'title' => '函数并发配置',
+ 'children' => ['DeleteConcurrencyConfig', 'GetConcurrencyConfig', 'ListConcurrencyConfigs', 'PutConcurrencyConfig'],
'type' => 'directory',
- 'children' => [
- 'DeleteConcurrencyConfig',
- 'GetConcurrencyConfig',
- 'ListConcurrencyConfigs',
- 'PutConcurrencyConfig',
- ],
+ 'title' => '函数并发配置',
+ 'id' => 137161,
],
[
- 'id' => 187615,
- 'title' => '层',
+ 'children' => ['CreateLayerVersion', 'DeleteLayerVersion', 'GetLayerVersion', 'GetLayerVersionByArn', 'ListLayerVersions', 'PutLayerACL'],
'type' => 'directory',
- 'children' => [
- 'CreateLayerVersion',
- 'DeleteLayerVersion',
- 'GetLayerVersion',
- 'GetLayerVersionByArn',
- 'ListLayerVersions',
- 'ListLayers',
- 'PutLayerACL',
- ],
+ 'title' => '层',
+ 'id' => 137135,
],
[
- 'id' => 187618,
- 'title' => '实例',
+ 'children' => ['ListVpcBindings', 'CreateVpcBinding', 'DeleteVpcBinding'],
'type' => 'directory',
- 'children' => [
- 'ListInstances',
- ],
- ],
- [
- 'id' => 187622,
'title' => 'VPC绑定',
- 'type' => 'directory',
- 'children' => [
- 'ListVpcBindings',
- 'CreateVpcBinding',
- 'DeleteVpcBinding',
- ],
+ 'id' => 137172,
],
[
- 'id' => 187909,
- 'title' => '标签',
+ 'children' => ['StopAsyncTask'],
'type' => 'directory',
- 'children' => [
- 'TagResources',
- 'ListTagResources',
- 'UntagResources',
- ],
- ],
- [
- 'id' => 191490,
'title' => '异步任务',
- 'type' => 'directory',
- 'children' => [
- 'GetAsyncTask',
- 'ListAsyncTasks',
- 'StopAsyncTask',
- ],
+ 'id' => 137199,
],
[
- 'id' => 278411,
- 'title' => '会话',
+ 'children' => ['ResumeSession', 'PauseSession', 'UpdateSession'],
'type' => 'directory',
- 'children' => [
- 'CreateSession',
- 'GetSession',
- 'UpdateSession',
- 'ListSessions',
- 'DeleteSession',
- ],
+ 'title' => '会话',
+ 'id' => 165260,
],
[
- 'id' => 277607,
- 'title' => '其他',
- 'type' => 'directory',
'children' => [
- 'PutScalingConfig',
- 'DeleteScalingConfig',
- 'GetScalingConfig',
- 'ListScalingConfigs',
+ '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',
],
+ 'type' => 'directory',
+ 'title' => '其他',
+ 'id' => 164262,
],
],
'components' => [
@@ -191,461 +77,172 @@
'AccelerationInfo' => [
'title' => '镜像加速信息(已废弃)',
'description' => '镜像加速信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'status' => [
- 'title' => '镜像加速状态(已废弃)',
- 'description' => '镜像加速状态',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Ready',
- ],
+ 'status' => ['title' => '镜像加速状态(已废弃)', 'description' => '镜像加速状态', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Ready', 'backendName' => 'status'],
],
],
'Alias' => [
'title' => '别名信息',
'description' => '别名信息。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'additionalVersionWeight' => [
'title' => '灰度版本',
'description' => '灰度版本权重。',
+ 'visibility' => 'Public',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'description' => '灰度比例。取值为0和1之间的小数。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.5',
- ],
- ],
- 'aliasName' => [
- 'title' => '别名名称',
- 'description' => '别名名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'prod',
- ],
- 'createdTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- ],
- 'description' => [
- 'title' => '别名描述信息',
- 'description' => '别名描述信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'alias for pre env',
- ],
- 'lastModifiedTime' => [
- 'title' => '修改时间',
- 'description' => '修改时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- ],
- 'versionId' => [
- 'title' => '别名指向的版本',
- 'description' => '别名指向的版本。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
+ 'additionalProperties' => ['description' => '灰度比例。取值为0和1之间的小数。', 'visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'example' => '0.5'],
+ 'backendName' => 'additionalVersionWeight',
],
+ 'aliasName' => ['title' => '别名名称', 'description' => '别名名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'prod', 'backendName' => 'aliasName'],
+ 'createdTime' => ['title' => '创建时间', 'description' => '创建时间。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'createdTime'],
+ 'description' => ['title' => '别名描述信息', 'description' => '别名描述信息。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'alias for pre env', 'backendName' => 'description'],
+ 'lastModifiedTime' => ['title' => '修改时间', 'description' => '修改时间。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'lastModifiedTime'],
+ 'versionId' => ['title' => '别名指向的版本', 'description' => '别名指向的版本。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1', 'backendName' => 'versionId'],
],
],
'AsyncConfig' => [
'title' => '异步调用配置',
'description' => '异步调用配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'asyncTask' => [
- 'title' => '是否开启异步任务',
- 'description' => '是否开启异步任务',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'createdTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- ],
- 'destinationConfig' => [
- 'title' => '目标配置',
- 'description' => '目标配置',
- 'required' => false,
- '$ref' => '#/components/schemas/DestinationConfig',
- ],
- 'functionArn' => [
- 'title' => '函数资源标识',
- 'description' => '函数资源标识',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func',
- ],
- 'lastModifiedTime' => [
- 'title' => '最后修改时间',
- 'description' => '最后修改时间',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- ],
- 'maxAsyncEventAgeInSeconds' => [
- 'title' => '事件最大存活时间',
- 'description' => '事件最大存活时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '3600',
- ],
- 'maxAsyncRetryAttempts' => [
- 'title' => '异步调用重试次数',
- 'description' => '异步调用重试次数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '3',
- ],
+ 'asyncTask' => ['title' => '是否开启异步任务', 'description' => '是否开启异步任务', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'asyncTask'],
+ 'createdTime' => ['title' => '创建时间', 'description' => '创建时间', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'createdTime'],
+ 'destinationConfig' => ['title' => '目标配置', 'description' => '目标配置', 'visibility' => 'Public', 'required' => false, 'backendName' => 'destinationConfig', '$ref' => '#/components/schemas/DestinationConfig'],
+ 'functionArn' => ['title' => '函数资源标识', 'description' => '函数资源标识', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func', 'backendName' => 'functionArn'],
+ 'lastModifiedTime' => ['title' => '最后修改时间', 'description' => '最后修改时间', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'lastModifiedTime'],
+ 'maxAsyncEventAgeInSeconds' => ['title' => '事件最大存活时间', 'description' => '事件最大存活时间', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3600', 'backendName' => 'maxAsyncEventAgeInSeconds'],
+ 'maxAsyncRetryAttempts' => ['title' => '异步调用重试次数', 'description' => '异步调用重试次数', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3', 'backendName' => 'maxAsyncRetryAttempts'],
],
],
'AsyncTask' => [
'title' => '异步任务信息',
'description' => '异步任务信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'alreadyRetriedTimes' => [
- 'title' => '异步任务失败后的已重试次数',
- 'description' => '异步任务失败后的已重试次数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '3',
- ],
- 'destinationStatus' => [
- 'title' => '异步任务的最终状态',
- 'description' => '异步任务的最终状态',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Succeeded',
- ],
- 'durationMs' => [
- 'title' => '异步任务的执行耗时',
- 'description' => '异步任务的执行耗时',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1000',
- ],
- 'endTime' => [
- 'title' => '异步任务结束时间,单位为毫秒',
- 'description' => '异步任务结束时间,单位为毫秒',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1633449590000',
- ],
+ 'alreadyRetriedTimes' => ['title' => '异步任务失败后的已重试次数', 'description' => '异步任务失败后的已重试次数', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3', 'backendName' => 'alreadyRetriedTimes'],
+ 'destinationStatus' => ['title' => '异步任务的最终状态', 'description' => '异步任务的最终状态', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Succeeded', 'backendName' => 'destinationStatus'],
+ 'durationMs' => ['title' => '异步任务的执行耗时', 'description' => '异步任务的执行耗时', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000', 'backendName' => 'durationMs'],
+ 'endTime' => ['title' => '异步任务结束时间,单位为毫秒', 'description' => '异步任务结束时间,单位为毫秒', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1633449590000', 'backendName' => 'endTime'],
'events' => [
'title' => '异步任务事件列表',
'description' => '异步任务事件列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '异步任务事件。',
- '$ref' => '#/components/schemas/AsyncTaskEvent',
- ],
- 'required' => false,
- ],
- 'functionArn' => [
- 'title' => '函数资源标识',
- 'description' => '函数资源标识',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func',
- ],
- 'instanceId' => [
- 'title' => '异步任务对应的实例 ID',
- 'description' => '异步任务对应的实例 ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'D4-*******9FD1-882707E',
- ],
- 'qualifier' => [
- 'title' => '函数的版本或别名。',
- 'description' => '函数的版本或别名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'prod',
- ],
- 'requestId' => [
- 'title' => '本次异步任务对应的请求 ID',
- 'description' => '本次异步任务对应的请求 ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****',
- ],
- 'returnPayload' => [
- 'title' => '异步任务执行完成后的响应内容',
- 'description' => '异步任务执行完成后的响应内容。大小限制为 1 MB。'."\n"
- .'该字段当前处于内测阶段,如您需要使用,请[联系我们](~~2513733~~)为您开通。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'result',
- ],
- 'startedTime' => [
- 'title' => '异步任务开始时间,单位为毫秒',
- 'description' => '异步任务开始时间,单位为毫秒',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1633449590000',
- ],
- 'status' => [
- 'title' => '异步任务的执行状态',
- 'description' => '异步任务的执行状态。'."\n"
- ."\n"
- .'- Enqueued:异步消息已入队,等待处理。'."\n"
- ."\n"
- .'- Succeeded:调用执行成功。'."\n"
- ."\n"
- .'- Failed:调用执行失败。'."\n"
- ."\n"
- .'- Running:调用执行中。'."\n"
- ."\n"
- .'- Stopped:调用执行终止。'."\n"
- ."\n"
- .'- Stopping:执行停止中。'."\n"
- ."\n"
- .'- Invalid:您的执行因函数被删除等原因处于无效状态(任务未被执行)。'."\n"
- ."\n"
- .'- Expired:您为任务配置了最长排队等待的期限。该任务因为超期被丢弃(任务未被执行)。'."\n"
- ."\n"
- .'- Retrying:异步调用因执行错误重试中。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Running',
- ],
- 'taskErrorMessage' => [
- 'title' => '异步任务失败的错误消息',
- 'description' => '异步任务失败的错误消息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'UnhandledInvocationError',
- ],
- 'taskId' => [
- 'title' => '异步任务 ID',
- 'description' => '异步任务 ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****',
- ],
- 'taskPayload' => [
- 'title' => '异步任务执行时的入参内容',
- 'description' => '异步任务执行时的入参内容',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'body',
- ],
+ 'items' => ['description' => '异步任务事件。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/AsyncTaskEvent'],
+ 'required' => false,
+ 'backendName' => 'events',
+ ],
+ 'functionArn' => ['title' => '函数资源标识', 'description' => '函数资源标识', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func', 'backendName' => 'functionArn'],
+ 'instanceId' => ['title' => '异步任务对应的实例 ID', 'description' => '异步任务对应的实例 ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'D4-*******9FD1-882707E', 'backendName' => 'instanceId'],
+ 'qualifier' => ['title' => '函数的版本或别名。', 'description' => '函数的版本或别名。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'prod', 'backendName' => 'qualifier'],
+ 'requestId' => ['title' => '本次异步任务对应的请求 ID', 'description' => '本次异步任务对应的请求 ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****', 'backendName' => 'requestId'],
+ 'returnPayload' => ['title' => '异步任务执行完成后的响应内容', 'description' => '异步任务执行完成后的响应内容。大小限制为 1 MB。'."\n"
+ .'该字段当前处于内测阶段,如您需要使用,请[联系我们](~~2513733~~)为您开通。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'result', 'backendName' => 'returnPayload'],
+ 'startedTime' => ['title' => '异步任务开始时间,单位为毫秒', 'description' => '异步任务开始时间,单位为毫秒', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1633449590000', 'backendName' => 'startedTime'],
+ 'status' => ['title' => '异步任务的执行状态', 'description' => '异步任务的执行状态。'."\n"
+ ."\n"
+ .'- Enqueued:异步消息已入队,等待处理。'."\n"
+ ."\n"
+ .'- Succeeded:调用执行成功。'."\n"
+ ."\n"
+ .'- Failed:调用执行失败。'."\n"
+ ."\n"
+ .'- Running:调用执行中。'."\n"
+ ."\n"
+ .'- Stopped:调用执行终止。'."\n"
+ ."\n"
+ .'- Stopping:执行停止中。'."\n"
+ ."\n"
+ .'- Invalid:您的执行因函数被删除等原因处于无效状态(任务未被执行)。'."\n"
+ ."\n"
+ .'- Expired:您为任务配置了最长排队等待的期限。该任务因为超期被丢弃(任务未被执行)。'."\n"
+ ."\n"
+ .'- Retrying:异步调用因执行错误重试中。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Running', 'backendName' => 'status'],
+ 'taskErrorMessage' => ['title' => '异步任务失败的错误消息', 'description' => '异步任务失败的错误消息', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'UnhandledInvocationError', 'backendName' => 'taskErrorMessage'],
+ 'taskId' => ['title' => '异步任务 ID', 'description' => '异步任务 ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****', 'backendName' => 'taskId'],
+ 'taskPayload' => ['title' => '异步任务执行时的入参内容', 'description' => '异步任务执行时的入参内容', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'body', 'backendName' => 'taskPayload'],
],
],
'AsyncTaskEvent' => [
'title' => '任务事件内容',
'description' => '任务事件内容',
- 'type' => 'object',
- 'properties' => [
- 'eventDetail' => [
- 'title' => '事件负载内容',
- 'description' => '事件负载内容',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'body',
- ],
- 'eventId' => [
- 'title' => '事件 ID',
- 'description' => '事件 ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- ],
- 'status' => [
- 'title' => '任务状态',
- 'description' => '事件执行状态。'."\n"
- ."\n"
- .'- Enqueued:异步消息已入队,等待处理。'."\n"
- ."\n"
- .'- Succeeded:调用执行成功。'."\n"
- ."\n"
- .'- Failed:调用执行失败。'."\n"
- ."\n"
- .'- Running:调用执行中。'."\n"
- ."\n"
- .'- Stopped:调用执行终止。'."\n"
- ."\n"
- .'- Stopping:执行停止中。'."\n"
- ."\n"
- .'- Invalid:您的执行因函数被删除等原因处于无效状态(任务未被执行)。'."\n"
- ."\n"
- .'- Expired:您为任务配置了最长排队等待的期限。该任务因为超期被丢弃(任务未被执行)。'."\n"
- ."\n"
- .'- Retrying:异步调用因执行错误重试中。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Succeeded',
- ],
- 'timestamp' => [
- 'title' => '事件发生时间,单位毫秒',
- 'description' => '事件发生时间,单位毫秒',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1647420449721',
- ],
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'eventDetail' => ['title' => '事件负载内容', 'description' => '事件负载内容', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'body', 'backendName' => 'eventDetail'],
+ 'eventId' => ['title' => '事件 ID', 'description' => '事件 ID', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'backendName' => 'eventId'],
+ 'status' => ['title' => '任务状态', 'description' => '事件执行状态。'."\n"
+ ."\n"
+ .'- Enqueued:异步消息已入队,等待处理。'."\n"
+ ."\n"
+ .'- Succeeded:调用执行成功。'."\n"
+ ."\n"
+ .'- Failed:调用执行失败。'."\n"
+ ."\n"
+ .'- Running:调用执行中。'."\n"
+ ."\n"
+ .'- Stopped:调用执行终止。'."\n"
+ ."\n"
+ .'- Stopping:执行停止中。'."\n"
+ ."\n"
+ .'- Invalid:您的执行因函数被删除等原因处于无效状态(任务未被执行)。'."\n"
+ ."\n"
+ .'- Expired:您为任务配置了最长排队等待的期限。该任务因为超期被丢弃(任务未被执行)。'."\n"
+ ."\n"
+ .'- Retrying:异步调用因执行错误重试中。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Succeeded', 'backendName' => 'status'],
+ 'timestamp' => ['title' => '事件发生时间,单位毫秒', 'description' => '事件发生时间,单位毫秒', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1647420449721', 'backendName' => 'timestamp'],
],
],
'AuthConfig' => [
'title' => '权限认证配置',
'description' => '权限认证配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'authInfo' => [
- 'title' => '认证信息',
- 'description' => '认证信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- ],
- 'authType' => [
- 'title' => '认证类型',
- 'description' => '认证类型。anonymous, function或者jwt。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'anonymous',
- ],
+ 'authInfo' => ['title' => '认证信息', 'description' => '认证信息', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '{}', 'backendName' => 'authInfo'],
+ 'authType' => ['title' => '认证类型', 'description' => '认证类型。anonymous, function或者jwt。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'anonymous', 'backendName' => 'authType'],
],
],
'BatchWindow' => [
'title' => 'EventBridge 触发器的批处理窗口配置',
'description' => 'EventBridge 触发器的批处理窗口配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'CountBasedWindow' => [
- 'title' => '窗口中最大可容纳的事件数量。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。',
- 'description' => '窗口中最大可容纳的事件数量。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- ],
- 'TimeBasedWindow' => [
- 'title' => '窗口中最大可容纳的时间范围内的事件(单位秒)。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。',
- 'description' => '窗口中最大可容纳的时间范围内的事件(单位秒)。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'CountBasedWindow' => ['title' => '窗口中最大可容纳的事件数量。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。', 'description' => '窗口中最大可容纳的事件数量。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'backendName' => 'CountBasedWindow'],
+ 'TimeBasedWindow' => ['title' => '窗口中最大可容纳的时间范围内的事件(单位秒)。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。', 'description' => '窗口中最大可容纳的时间范围内的事件(单位秒)。当达到此阈值,会触发窗口内的数据往下游推送。当存在多个窗口时,有一个窗口满足即触发。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'backendName' => 'TimeBasedWindow'],
],
],
'CDNTriggerConfig' => [
'title' => 'CDN 触发器配置',
'description' => 'CDN 触发器配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'eventName' => [
- 'title' => '触发事件名称,详情请参考文档:https://help.aliyun.com/zh/fc/overview-27?spm=a2c4g.11186623.0.i4#section-8fg-smg-ysp',
- 'description' => '触发事件名称,详情请参考 [CDN 事件定义](~~2513636~~)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CdnDomainStarted',
- ],
- 'eventVersion' => [
- 'title' => '触发事件版本,目前仅支持 1.0.0 事件版本',
- 'description' => '触发事件版本,目前仅支持 1.0.0 事件版本',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- ],
+ 'eventName' => ['title' => '触发事件名称,详情请参考文档:https://help.aliyun.com/zh/fc/overview-27?spm=a2c4g.11186623.0.i4#section-8fg-smg-ysp', 'description' => '触发事件名称,详情请参考 [CDN 事件定义](~~2513636~~)', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'CdnDomainStarted', 'backendName' => 'eventName'],
+ 'eventVersion' => ['title' => '触发事件版本,目前仅支持 1.0.0 事件版本', 'description' => '触发事件版本,目前仅支持 1.0.0 事件版本', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1.0.0', 'backendName' => 'eventVersion'],
'filter' => [
'title' => '事件过滤规则描述',
'description' => '事件过滤规则描述',
+ 'visibility' => 'Public',
'type' => 'object',
'required' => false,
'additionalProperties' => [
'description' => '事件过滤规则集合。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '事件过滤关键字符串。',
- 'type' => 'string',
- 'example' => 'filter-key',
- ],
+ 'items' => ['description' => '事件过滤关键字符串。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'filter-key', 'extendType' => 'true'],
],
+ 'backendName' => 'filter',
],
- 'notes' => [
- 'title' => '触发器描述',
- 'description' => '触发器描述',
- 'type' => 'string',
- 'required' => false,
- 'example' => '缓存事件触发器',
- ],
- ],
- ],
- 'CORSConfig' => [
- 'title' => 'CORS 配置',
- 'type' => 'object',
- 'properties' => [
- 'allowOrigins' => [
- 'title' => '允许的来源列表',
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- 'required' => false,
- 'example' => '["https://example.com", "https://app.example.com"]',
- ],
- 'allowMethods' => [
- 'title' => '允许的 HTTP 方法列表',
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- 'required' => false,
- 'example' => '["GET", "POST", "OPTIONS"]',
- ],
- 'allowHeaders' => [
- 'title' => '允许的请求头列表',
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- 'required' => false,
- 'example' => '["Content-Type", "Authorization"]',
- ],
- 'exposeHeaders' => [
- 'title' => '暴露的响应头列表',
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- 'required' => false,
- 'example' => '["X-Custom-Header"]',
- ],
- 'allowCredentials' => [
- 'title' => '是否允许发送凭据',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'maxAge' => [
- 'title' => '预检请求缓存时间(秒)',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '3600',
- ],
+ 'notes' => ['title' => '触发器描述', 'description' => '触发器描述', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '缓存事件触发器', 'backendName' => 'notes'],
],
],
'CertConfig' => [
@@ -653,81 +250,35 @@
'description' => '证书配置',
'type' => 'object',
'properties' => [
- 'certName' => [
- 'title' => '证书名称',
- 'description' => '证书名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-cert',
- 'maxLength' => 128,
- 'minLength' => 1,
- ],
- 'certificate' => [
- 'title' => 'PEM格式证书',
- 'description' => 'PEM格式证书',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'PEM format',
- 'maxLength' => 20480,
- ],
- 'privateKey' => [
- 'title' => 'PEM格式私钥',
- 'description' => 'PEM格式私钥',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'PEM format',
- 'maxLength' => 4096,
- ],
+ 'certName' => ['title' => '证书名称', 'description' => '证书名称', 'type' => 'string', 'required' => true, 'example' => 'my-cert', 'maxLength' => 128, 'minLength' => 1],
+ 'certificate' => ['title' => 'PEM格式证书', 'description' => 'PEM格式证书', 'type' => 'string', 'required' => true, 'example' => 'PEM format', 'maxLength' => 20480],
+ 'privateKey' => ['title' => 'PEM格式私钥', 'description' => 'PEM格式私钥', 'type' => 'string', 'required' => true, 'example' => 'PEM format', 'maxLength' => 4096],
],
],
'ChangeResourceGroupInput' => [
'type' => 'object',
'properties' => [
- 'ResourceId' => [
- 'type' => 'string',
- ],
- 'NewResourceGroupId' => [
- 'type' => 'string',
- ],
- 'ResourceType' => [
- 'type' => 'string',
- ],
+ 'ResourceId' => ['type' => 'string'],
+ 'NewResourceGroupId' => ['type' => 'string'],
+ 'ResourceType' => ['type' => 'string'],
],
],
'ChangeResourceGroupOutput' => [
'type' => 'object',
'properties' => [
- 'ResourceId' => [
- 'type' => 'string',
- ],
- 'NewResourceGroupId' => [
- 'type' => 'string',
- ],
- 'OldResourceGroupId' => [
- 'type' => 'string',
- ],
+ 'ResourceId' => ['type' => 'string'],
+ 'NewResourceGroupId' => ['type' => 'string'],
+ 'OldResourceGroupId' => ['type' => 'string'],
],
],
'ConcurrencyConfig' => [
'title' => '函数并发配置',
'description' => '函数并发配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'functionArn' => [
- 'title' => '阿里云资源的标识',
- 'description' => '阿里云资源的标识',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:123:functions/demo',
- ],
- 'reservedConcurrency' => [
- 'title' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。',
- 'description' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '10',
- ],
+ 'functionArn' => ['title' => '阿里云资源的标识', 'description' => '阿里云资源的标识', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:123:functions/demo', 'backendName' => 'functionArn'],
+ 'reservedConcurrency' => ['title' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。', 'description' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10', 'backendName' => 'reservedConcurrency'],
],
],
'CookieSessionAffinityConfig' => [
@@ -735,77 +286,66 @@
'description' => '将携带相同 Cookie 信息的请求路由到同一个实例。'."\n",
'type' => 'object',
'properties' => [
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。',
- 'description' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
+ 'sessionIdleTimeoutInSeconds' => ['title' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。', 'description' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。', 'type' => 'integer', 'format' => 'int64', 'example' => '1800'],
+ 'sessionTTLInSeconds' => ['title' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。', 'description' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。', 'type' => 'integer', 'format' => 'int64', 'example' => '21600'],
+ 'sessionConcurrencyPerInstance' => ['title' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。', 'description' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
+ 'disableSessionIdReuse' => ['title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'type' => 'boolean', 'example' => 'false'],
+ ],
+ ],
+ 'CORSConfig' => [
+ 'title' => 'CORS 配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'allowOrigins' => [
+ 'title' => '允许的来源列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'required' => false,
+ 'example' => '["https://example.com", "https://app.example.com"]',
],
- 'sessionTTLInSeconds' => [
- 'title' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。',
- 'description' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
+ 'allowMethods' => [
+ 'title' => '允许的 HTTP 方法列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'required' => false,
+ 'example' => '["GET", "POST", "OPTIONS"]',
],
- 'sessionConcurrencyPerInstance' => [
- 'title' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。',
- 'description' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '20',
+ 'allowHeaders' => [
+ 'title' => '允许的请求头列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'required' => false,
+ 'example' => '["Content-Type", "Authorization"]',
],
- 'disableSessionIdReuse' => [
- 'title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'type' => 'boolean',
- 'example' => 'false',
+ 'exposeHeaders' => [
+ 'title' => '暴露的响应头列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'required' => false,
+ 'example' => '["X-Custom-Header"]',
],
+ 'allowCredentials' => ['title' => '是否允许发送凭据', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'maxAge' => ['title' => '预检请求缓存时间(秒)', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3600'],
],
],
'CreateAliasInput' => [
'title' => '创建别名的请求参数',
'description' => '创建别名的请求参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'additionalVersionWeight' => [
'title' => '灰度版本',
'description' => '灰度版本权重',
+ 'visibility' => 'Public',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.5',
- ],
- ],
- 'aliasName' => [
- 'title' => '别名名称',
- 'description' => '别名名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'prod',
- 'maxLength' => 128,
- 'minLength' => 1,
- ],
- 'description' => [
- 'title' => '别名描述信息',
- 'description' => '别名描述信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my alias',
- 'maxLength' => 256,
- ],
- 'versionId' => [
- 'title' => '别名指向的版本',
- 'description' => '别名指向的版本',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1',
- 'maxLength' => 10,
- 'minLength' => 1,
+ 'additionalProperties' => ['visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'example' => '0.5'],
+ 'backendName' => 'additionalVersionWeight',
],
+ 'aliasName' => ['title' => '别名名称', 'description' => '别名名称', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'prod', 'maxLength' => 128, 'minLength' => 1, 'backendName' => 'aliasName'],
+ 'description' => ['title' => '别名描述信息', 'description' => '别名描述信息', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my alias', 'maxLength' => 256, 'backendName' => 'description'],
+ 'versionId' => ['title' => '别名指向的版本', 'description' => '别名指向的版本', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '1', 'maxLength' => 10, 'minLength' => 1, 'backendName' => 'versionId'],
],
],
'CreateCustomDomainInput' => [
@@ -813,58 +353,15 @@
'description' => '创建自定义域名的请求信息。',
'type' => 'object',
'properties' => [
- 'authConfig' => [
- 'title' => '权限认证配置',
- 'description' => '权限认证配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/AuthConfig',
- ],
- 'certConfig' => [
- 'title' => 'HTTPS证书的信息。',
- 'description' => 'HTTPS证书的信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/CertConfig',
- ],
- 'corsConfig' => [
- 'title' => 'CORS 配置',
- 'description' => 'CORS 配置',
- 'required' => false,
- '$ref' => '#/components/schemas/CORSConfig',
- ],
- 'domainName' => [
- 'title' => '域名。填写已在阿里云备案或接入备案的自定义域名名称。',
- 'description' => '域名。填写已在阿里云备案或接入备案的自定义域名名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'example.com',
- 'maxLength' => 256,
- 'minLength' => 1,
- ],
- 'protocol' => [
- 'title' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。',
- 'description' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'HTTP',
- ],
- 'routeConfig' => [
- 'title' => '路由表:自定义域名访问时的PATH到Function的映射。',
- 'description' => '路由表:自定义域名访问时的PATH到Function的映射。',
- 'required' => false,
- '$ref' => '#/components/schemas/RouteConfig',
- ],
- 'tlsConfig' => [
- 'title' => 'TLS配置信息。',
- 'description' => 'TLS配置信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/TLSConfig',
- ],
- 'wafConfig' => [
- 'title' => 'Web应用防火墙配置信息。',
- 'description' => 'Web应用防火墙配置信息',
- 'required' => false,
- '$ref' => '#/components/schemas/WAFConfig',
- ],
+ 'authConfig' => ['title' => '权限认证配置', 'description' => '权限认证配置。', 'required' => false, '$ref' => '#/components/schemas/AuthConfig'],
+ 'certConfig' => ['title' => 'HTTPS证书的信息。', 'description' => 'HTTPS证书的信息。', 'required' => false, '$ref' => '#/components/schemas/CertConfig'],
+ 'corsConfig' => ['title' => 'CORS 配置', 'required' => false, '$ref' => '#/components/schemas/CORSConfig'],
+ 'domainName' => ['title' => '域名。填写已在阿里云备案或接入备案的自定义域名名称。', 'description' => '域名。填写已在阿里云备案或接入备案的自定义域名名称。', 'type' => 'string', 'required' => true, 'example' => 'example.com', 'maxLength' => 256, 'minLength' => 1],
+ 'protocol' => ['title' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。', 'description' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
+ 'routeConfig' => ['title' => '路由表:自定义域名访问时的PATH到Function的映射。', 'description' => '路由表:自定义域名访问时的PATH到Function的映射。', 'required' => false, '$ref' => '#/components/schemas/RouteConfig'],
+ 'tlsConfig' => ['title' => 'TLS配置信息。', 'description' => 'TLS配置信息。', 'required' => false, '$ref' => '#/components/schemas/TLSConfig'],
+ 'wafConfig' => ['title' => 'Web应用防火墙配置信息。', 'description' => 'Web应用防火墙配置信息', 'required' => false, '$ref' => '#/components/schemas/WAFConfig'],
+ 'isE2B' => ['type' => 'boolean'],
],
],
'CreateFunctionInput' => [
@@ -872,234 +369,59 @@
'description' => '函数创建请求参数',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '函数代码ZIP包。code和customContainerConfig二选一。',
- 'description' => '函数代码ZIP包。code和customContainerConfig二选一。',
- 'required' => false,
- '$ref' => '#/components/schemas/InputCodeLocation',
- ],
- 'cpu' => [
- 'title' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。',
- 'description' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。最小值为0.05,最大值为16。同时cpu和memorySize(按GB算)比例要在1:1和1:4之间。',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'example' => '1',
- ],
- 'customContainerConfig' => [
- 'title' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。',
- 'description' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomContainerConfig',
- ],
- 'customDNS' => [
- 'title' => '自定义DNS配置。',
- 'description' => '自定义DNS配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomDNS',
- ],
- 'customRuntimeConfig' => [
- 'title' => '自定义运行时配置。',
- 'description' => '自定义运行时配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomRuntimeConfig',
- ],
- 'description' => [
- 'title' => '函数的描述。',
- 'description' => '函数的描述。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my function',
- 'maxLength' => 256,
- ],
- 'diskSize' => [
- 'title' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。',
- 'description' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- ],
+ 'code' => ['title' => '函数代码ZIP包。code和customContainerConfig二选一。', 'description' => '函数代码ZIP包。code和customContainerConfig二选一。', 'required' => false, '$ref' => '#/components/schemas/InputCodeLocation'],
+ 'cpu' => ['title' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。', 'description' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。最小值为0.05,最大值为16。同时cpu和memorySize(按GB算)比例要在1:1和1:4之间。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1'],
+ 'customContainerConfig' => ['title' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。', 'description' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。', 'required' => false, '$ref' => '#/components/schemas/CustomContainerConfig'],
+ 'customDNS' => ['title' => '自定义DNS配置。', 'description' => '自定义DNS配置。', 'required' => false, '$ref' => '#/components/schemas/CustomDNS'],
+ 'customRuntimeConfig' => ['title' => '自定义运行时配置。', 'description' => '自定义运行时配置。', 'required' => false, '$ref' => '#/components/schemas/CustomRuntimeConfig'],
+ 'description' => ['title' => '函数的描述。', 'description' => '函数的描述。', 'type' => 'string', 'required' => false, 'example' => 'my function', 'maxLength' => 256],
+ 'diskSize' => ['title' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。', 'description' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
'environmentVariables' => [
'title' => '函数的环境变量,可以在运行环境中访问设置的环境变量。',
'description' => '函数的环境变量,可以在运行环境中访问设置的环境变量。',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'description' => '环境变量的值。',
- 'type' => 'string',
- 'example' => 'value1',
- ],
- ],
- 'functionName' => [
- 'title' => '函数的名称。只能包含字母、数字、下划线(_)和短划线(-),不能以数字、短划线(-)开头,长度范围为1~64个字符。',
- 'description' => '函数的名称。只能包含字母、数字、下划线(_)和短划线(-),不能以数字、短划线(-)开头,长度范围为1~64个字符。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-function-1',
- 'maxLength' => 128,
- 'minLength' => 1,
- ],
- 'gpuConfig' => [
- 'title' => '函数GPU配置。',
- 'description' => '函数GPU配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/GPUConfig',
- ],
- 'handler' => [
- 'title' => '函数执行的入口,具体格式和运行时相关。',
- 'description' => '函数执行的入口,具体格式和运行时相关。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'index.handler',
- 'maxLength' => 128,
- 'minLength' => 1,
- ],
- 'instanceConcurrency' => [
- 'title' => '实例最大并发度。',
- 'description' => '实例最大并发度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'instanceLifecycleConfig' => [
- 'title' => '实例生命周期回调方法配置。',
- 'description' => '实例生命周期回调方法配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/InstanceLifecycleConfig',
- ],
- 'internetAccess' => [
- 'title' => 'service config',
- 'description' => '是否允许函数访问公网。默认值为true。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
+ 'additionalProperties' => ['description' => '环境变量的值。', 'type' => 'string', 'example' => 'value1'],
],
+ 'functionName' => ['title' => '函数的名称。只能包含字母、数字、下划线(_)和短划线(-),不能以数字、短划线(-)开头,长度范围为1~64个字符。', 'description' => '函数的名称。只能包含字母、数字、下划线(_)和短划线(-),不能以数字、短划线(-)开头,长度范围为1~64个字符。', 'type' => 'string', 'required' => true, 'example' => 'my-function-1', 'maxLength' => 128, 'minLength' => 1],
+ 'gpuConfig' => ['title' => '函数GPU配置。', 'description' => '函数GPU配置。', 'required' => false, '$ref' => '#/components/schemas/GPUConfig'],
+ 'handler' => ['title' => '函数执行的入口,具体格式和运行时相关。', 'description' => '函数执行的入口,具体格式和运行时相关。', 'type' => 'string', 'required' => true, 'example' => 'index.handler', 'maxLength' => 128, 'minLength' => 1],
+ 'instanceConcurrency' => ['title' => '实例最大并发度。', 'description' => '实例最大并发度。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'instanceLifecycleConfig' => ['title' => '实例生命周期回调方法配置。', 'description' => '实例生命周期回调方法配置。', 'required' => false, '$ref' => '#/components/schemas/InstanceLifecycleConfig'],
+ 'internetAccess' => ['title' => 'service config', 'description' => '是否允许函数访问公网。默认值为true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'layers' => [
'title' => '层的列表。多个层会按照数组下标从大到小的顺序进行合并,下标小的层的内容会覆盖下标大的层的同名文件。',
'description' => '层的列表。多个层会按照数组下标从大到小的顺序进行合并,下标小的层的内容会覆盖下标大的层的同名文件。',
'type' => 'array',
- 'items' => [
- 'description' => '层ARN。',
- 'type' => 'string',
- 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1',
- ],
- 'required' => false,
- ],
- 'logConfig' => [
- 'title' => '日志配置。函数产生的日志会被写入到配置的日志库中。',
- 'description' => '日志配置。函数产生的日志会被写入到配置的日志库中。',
- 'required' => false,
- '$ref' => '#/components/schemas/LogConfig',
- ],
- 'memorySize' => [
- 'title' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。不同的函数实例类型,内存规格存在差异。',
- 'description' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。最小值为128MB,最大值为32GB。同时cpu和memorySize(按GB算)比例要在1:1和1:4之间。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- ],
- 'nasConfig' => [
- 'title' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。',
- 'description' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。',
- 'required' => false,
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'ossMountConfig' => [
- 'title' => 'OSS挂载配置。',
- 'description' => 'OSS挂载配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/OSSMountConfig',
- ],
- 'role' => [
- 'title' => '授予函数计算所需权限的RAM角色,使用场景包含:1. 把函数产生的日志发送到您的日志库中。2. 为函数在执行过程中访问其他云资源生成的临时访问令牌。',
- 'description' => '用户授权给函数计算的RAM角色,设置后函数计算将扮演该角色生成临时访问凭证。在函数中可以使用该角色的临时访问凭证来访问指定的阿里云服务,例如OSS和OTS。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::188077086902****:role/fc-test',
- 'maxLength' => 300,
- ],
- 'runtime' => [
- 'title' => '函数的运行时环境。',
- 'description' => '函数的运行时环境。目前支持的运行环境有: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, custom-container。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'python3.10',
- ],
- 'timeout' => [
- 'title' => '函数运行的超时时间,单位为秒,最小1秒,默认3秒。函数超过这个时间后会被终止执行。',
- 'description' => '函数运行的超时时间,单位为秒,最小1秒,最大值为86400秒,默认值是3秒。函数超过这个时间后会被终止执行。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '60',
- ],
- 'tracingConfig' => [
- 'title' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。',
- 'description' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。',
- 'required' => false,
- '$ref' => '#/components/schemas/TracingConfig',
- ],
- 'vpcConfig' => [
- 'title' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。',
- 'description' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。',
- 'required' => false,
- '$ref' => '#/components/schemas/VPCConfig',
- ],
+ 'items' => ['description' => '层ARN。', 'type' => 'string', 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1'],
+ 'required' => false,
+ ],
+ 'logConfig' => ['title' => '日志配置。函数产生的日志会被写入到配置的日志库中。', 'description' => '日志配置。函数产生的日志会被写入到配置的日志库中。', 'required' => false, '$ref' => '#/components/schemas/LogConfig'],
+ 'memorySize' => ['title' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。不同的函数实例类型,内存规格存在差异。', 'description' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。最小值为128MB,最大值为32GB。同时cpu和memorySize(按GB算)比例要在1:1和1:4之间。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
+ 'nasConfig' => ['title' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。', 'description' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。', 'required' => false, '$ref' => '#/components/schemas/NASConfig'],
+ 'ossMountConfig' => ['title' => 'OSS挂载配置。', 'description' => 'OSS挂载配置。', 'required' => false, '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'role' => ['title' => '授予函数计算所需权限的RAM角色,使用场景包含:1. 把函数产生的日志发送到您的日志库中。2. 为函数在执行过程中访问其他云资源生成的临时访问令牌。', 'description' => '用户授权给函数计算的RAM角色,设置后函数计算将扮演该角色生成临时访问凭证。在函数中可以使用该角色的临时访问凭证来访问指定的阿里云服务,例如OSS和OTS。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::188077086902****:role/fc-test', 'maxLength' => 300],
+ 'runtime' => ['title' => '函数的运行时环境。', 'description' => '函数的运行时环境。目前支持的运行环境有: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, custom-container。', 'type' => 'string', 'required' => true, 'example' => 'python3.10'],
+ 'timeout' => ['title' => '函数运行的超时时间,单位为秒,最小1秒,默认3秒。函数超过这个时间后会被终止执行。', 'description' => '函数运行的超时时间,单位为秒,最小1秒,最大值为86400秒,默认值是3秒。函数超过这个时间后会被终止执行。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
+ 'tracingConfig' => ['title' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。', 'description' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。', 'required' => false, '$ref' => '#/components/schemas/TracingConfig'],
+ 'vpcConfig' => ['title' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。', 'description' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。', 'required' => false, '$ref' => '#/components/schemas/VPCConfig'],
'tags' => [
'description' => '标签列表',
'type' => 'array',
- 'items' => [
- 'description' => '标签信息。',
- '$ref' => '#/components/schemas/Tag',
- ],
- ],
- 'disableOndemand' => [
- 'title' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例',
- 'description' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例',
- 'type' => 'boolean',
- 'deprecated' => true,
- ],
- 'sessionAffinity' => [
- 'title' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。',
- 'description' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。',
- 'type' => 'string',
- 'example' => 'MCP_SSE',
- ],
- 'enableLongLiving' => [
- 'title' => '是否允许 GPU 函数的预留实例常驻,启用该功能时,创建的函数实例不会被注入 STS token。',
- 'description' => '是否允许 GPU 函数的预留实例常驻,启用该功能时,创建的函数实例不会被注入 STS token。',
- 'type' => 'boolean',
- 'deprecated' => true,
- ],
- 'resourceGroupId' => [
- 'type' => 'string',
+ 'items' => ['description' => '标签信息。', '$ref' => '#/components/schemas/Tag'],
],
+ 'disableOndemand' => ['title' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例', 'description' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例', 'type' => 'boolean', 'deprecated' => true],
+ 'sessionAffinity' => ['title' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。', 'description' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。', 'type' => 'string', 'example' => 'MCP_SSE'],
+ 'enableLongLiving' => ['title' => '是否允许 GPU 函数的预留实例常驻,启用该功能时,创建的函数实例不会被注入 STS token。', 'description' => '是否允许 GPU 函数的预留实例常驻,启用该功能时,创建的函数实例不会被注入 STS token。', 'type' => 'boolean', 'deprecated' => true],
+ 'resourceGroupId' => ['type' => 'string', 'description' => ''],
'instanceIsolationMode' => [
'title' => '实例隔离模式',
'description' => '实例隔离模式',
'type' => 'string',
- 'enum' => [
- 'SHARE',
- 'REQUEST_EXCLUSIVE',
- 'SESSION_EXCLUSIVE',
- ],
- ],
- 'sessionAffinityConfig' => [
- 'title' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。',
- 'description' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。',
- 'type' => 'string',
- 'example' => '{\\"sseEndpointPath\\":\\"/sse\\", \\"sessionConcurrencyPerInstance\\":20}',
- ],
- 'idleTimeout' => [
- 'title' => '实例延迟释放时间',
- 'description' => '实例延迟释放时间。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
+ 'enum' => ['SHARE', 'REQUEST_EXCLUSIVE', 'SESSION_EXCLUSIVE'],
],
+ 'sessionAffinityConfig' => ['title' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。', 'description' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。', 'type' => 'string', 'example' => '{\\"sseEndpointPath\\":\\"/sse\\", \\"sessionConcurrencyPerInstance\\":20}'],
+ 'idleTimeout' => ['title' => '实例延迟释放时间', 'description' => '实例延迟释放时间。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'disableInjectCredentials' => [
'title' => '是否不注入 STS token,取值None/Env/Request/All'."\n"
.'None: 都注入'."\n"
@@ -1114,56 +436,31 @@
'type' => 'string',
'example' => 'Env',
'default' => 'None',
- 'enum' => [
- 'None',
- 'Env',
- 'Request',
- 'All',
- ],
- ],
- 'polarFsConfig' => [
- 'description' => 'PolarFs配置。配置此参数后,函数可以访问指定的PolarFs资源。',
- '$ref' => '#/components/schemas/PolarFsConfig',
+ 'enum' => ['None', 'Env', 'Request', 'All'],
],
+ 'polarFsConfig' => ['description' => 'PolarFs配置。配置此参数后,函数可以访问指定的PolarFs资源。', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => 'JuiceFs 挂载配置', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'microSandboxConfig' => ['$ref' => '#/components/schemas/MicroSandboxConfig'],
],
],
'CreateLayerVersionInput' => [
'title' => '创建层版本的请求参数',
'description' => '创建层版本的请求参数。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '层的代码信息。',
- 'description' => '层的代码信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/InputCodeLocation',
- ],
+ 'code' => ['title' => '层的代码信息。', 'description' => '层的代码信息。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'code', '$ref' => '#/components/schemas/InputCodeLocation'],
'compatibleRuntime' => [
'title' => '层支持的运行时环境列表。',
'description' => '层支持的运行时环境列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '运行时。',
- 'type' => 'string',
- 'example' => 'python3.10',
- ],
- 'required' => false,
- ],
- 'description' => [
- 'title' => '层版本的描述信息。',
- 'description' => '层版本的描述信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my first layer',
- 'maxLength' => 256,
- ],
- 'license' => [
- 'title' => '层的许可协议。',
- 'description' => '层的许可协议。',
- 'type' => 'string',
+ 'items' => ['description' => '运行时。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'python3.10', 'extendType' => 'true'],
'required' => false,
- 'example' => 'Apache',
+ 'backendName' => 'compatibleRuntime',
],
+ 'description' => ['title' => '层版本的描述信息。', 'description' => '层版本的描述信息。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my first layer', 'maxLength' => 256, 'backendName' => 'description'],
+ 'license' => ['title' => '层的许可协议。', 'description' => '层的许可协议。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Apache', 'backendName' => 'license'],
],
],
'CreateSessionInput' => [
@@ -1171,262 +468,149 @@
'description' => '创建会话的参数',
'type' => 'object',
'properties' => [
- 'sessionTTLInSeconds' => [
- 'title' => 'Session生命周期',
- 'description' => 'Session生命周期',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- ],
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => 'Session 闲置过期时间',
- 'description' => 'Session 闲置过期时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- ],
- 'nasConfig' => [
- 'description' => 'NAS配置,配置后Session关联的实例可以访问指定NAS资源。',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'sessionId' => [
- 'title' => '可自定义会话ID。不配置时由服务端生成。若配置则将此配置作为会话ID。仅适用于HEADER_FIELD亲和模式。',
- 'description' => '可自定义会话ID。不配置时由服务端生成。若配置则将此配置作为会话ID。仅适用于HEADER_FIELD亲和模式,'."\n"
- .'格式规范:长度限制[0,64],仅以 **a-zA-Z0-9_** 字符做首字符,非首字符可为 **a-zA-Z0-9_-**。',
- 'type' => 'string',
- 'example' => 'custom-test-session-id',
- 'maxLength' => 64,
- 'minLength' => 0,
- ],
- 'disableSessionIdReuse' => [
- 'title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'ossMountConfig' => [
- 'description' => 'OSS配置,配置后Session关联的实例可以访问指定OSS资源。',
- '$ref' => '#/components/schemas/OSSMountConfig',
- ],
- 'polarFsConfig' => [
- 'description' => 'PolarFs配置,配置后Session关联的实例可以访问指定PolarFs资源。',
- '$ref' => '#/components/schemas/PolarFsConfig',
- ],
+ 'sessionTTLInSeconds' => ['title' => 'Session生命周期', 'description' => 'Session生命周期', 'type' => 'integer', 'format' => 'int64', 'example' => '21600'],
+ 'sessionIdleTimeoutInSeconds' => ['title' => 'Session 闲置过期时间', 'description' => 'Session 闲置过期时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1800'],
+ 'nasConfig' => ['description' => 'NAS配置,配置后Session关联的实例可以访问指定NAS资源。', '$ref' => '#/components/schemas/NASConfig'],
+ 'sessionId' => ['title' => '可自定义会话ID。不配置时由服务端生成。若配置则将此配置作为会话ID。仅适用于HEADER_FIELD亲和模式。', 'description' => '可自定义会话ID。不配置时由服务端生成。若配置则将此配置作为会话ID。仅适用于HEADER_FIELD亲和模式,'."\n"
+ .'格式规范:长度限制[0,64],仅以 **a-zA-Z0-9_** 字符做首字符,非首字符可为 **a-zA-Z0-9_-**。', 'type' => 'string', 'example' => 'custom-test-session-id', 'maxLength' => 64, 'minLength' => 0],
+ 'disableSessionIdReuse' => ['title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'type' => 'boolean', 'example' => 'false'],
+ 'ossMountConfig' => ['description' => 'OSS配置,配置后Session关联的实例可以访问指定OSS资源。', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'polarFsConfig' => ['description' => 'PolarFs配置,配置后Session关联的实例可以访问指定PolarFs资源。', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => 'JuiceFs 挂载配置', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'enableAutoPause' => ['type' => 'boolean'],
+ 'enableAutoResume' => ['type' => 'boolean'],
+ ],
+ ],
+ 'CreateTimedResidentResourcePoolApplicationInput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'operationType' => ['type' => 'string'],
+ 'timedPoolId' => ['type' => 'string'],
+ 'poolName' => ['type' => 'string'],
+ 'gpuType' => ['type' => 'string'],
+ 'totalGPUCards' => ['type' => 'integer', 'format' => 'int64'],
+ 'vCpuCores' => ['type' => 'integer', 'format' => 'int64'],
+ 'memorySizeInGB' => ['type' => 'integer', 'format' => 'int64'],
+ 'associatedPoolId' => ['type' => 'string'],
+ 'reason' => ['type' => 'string'],
+ 'timedConfig' => ['$ref' => '#/components/schemas/TimedPoolConfig'],
+ 'diskSizeInGB' => ['type' => 'integer', 'format' => 'int64'],
+ ],
+ ],
+ 'CreateTimedResidentResourcePoolApplicationOutput' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'timedPoolId' => ['type' => 'string'],
+ 'applicationStatus' => ['type' => 'string'],
],
],
'CreateTriggerInput' => [
'title' => '创建触发器的请求参数',
'description' => '创建触发器的请求参数',
- 'type' => 'object',
- 'properties' => [
- 'description' => [
- 'title' => '触发器的描述。',
- 'description' => '触发器的描述。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'trigger for test',
- 'maxLength' => 256,
- ],
- 'invocationRole' => [
- 'title' => '事件源(如OSS)调用函数所需的角色。',
- 'description' => '事件源(如OSS)调用函数所需的角色。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::1234567890:role/fc-test',
- 'maxLength' => 300,
- ],
- 'qualifier' => [
- 'title' => '函数的版本或别名。',
- 'description' => '函数的版本或别名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
- 'sourceArn' => [
- 'title' => '触发器事件源的Aliyun Resource Name。',
- 'description' => '触发器事件源的Aliyun Resource Name。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:oss:cn-shanghai:12345:mybucket',
- 'maxLength' => 300,
- 'minLength' => 1,
- ],
- 'triggerConfig' => [
- 'title' => '触发器配置,针对不同类型的触发器,配置有所不同。',
- 'description' => '触发器配置,针对不同类型的触发器,配置有所不同。具体格式请参见如下对应的数据结构:'."\n"
- .' - OSS触发器:请参见[OSSTriggerConfig](~~2766465~~)。'."\n"
- .' - 日志服务触发器:请参见[SLSTriggerConfig](~~2766469~~)。'."\n"
- .' - 定时触发器:请参见[TimerTriggerConfig](~~2754638~~)。'."\n"
- .' - HTTP触发器:请参见[HTTPTriggerConfig](~~2766461~~)。'."\n"
- .' - Tablestore触发器:只需要填写完整的**SourceArn**参数便可, 这里无需额外配置,取值为空{}。'."\n"
- .' - CDN事件触发器:请参见[CDNTriggerConfig](~~2766462~~)。'."\n"
- .' - MNS主题触发器:请参见[MNSTopicTriggerConfig](~~2766464~~)。'."\n"
- .' - EventBridge触发器:请参见[EventBridgeTriggerConfig](~~2766447~~)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '{"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}}',
- ],
- 'triggerName' => [
- 'title' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。',
- 'description' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'oss_create_object_demo',
- 'maxLength' => 128,
- 'minLength' => 1,
- ],
- 'triggerType' => [
- 'title' => '触发器的类型。',
- 'description' => '触发器的类型。'."\n"
- .'具体取值和触发器类型对应关系如下所示:'."\n"
- .' - **oss**:OSS触发器。更多信息,请参见[OSS触发器概述](~~2513613~~)。'."\n"
- .' - **log**:日志服务触发器。更多信息,请参见[日志服务触发器概述](~~2513638~~)。'."\n"
- .' - **timer**:定时触发器。更多信息,请参见[定时触发器概述](~~2513611~~)。'."\n"
- .' - **http**:HTTP触发器。更多信息,请参见[HTTP触发器概述](~~2513634~~)。'."\n"
- .' - **tablestore**:Tablestore触发器。更多信息,请参见[Tablestore触发器概述](~~2513640~~)。'."\n"
- .' - **cdn_events**:CDN事件触发器。更多信息,请参见[CDN事件触发器概述](~~2513636~~)。'."\n"
- .' - **mns_topic**:MNS主题触发器。更多信息,请参见[MNS主题触发器概述](~~2513641~~)。'."\n"
- .' - **eventbridge**:EventBridge触发器。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'oss',
- ],
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'description' => ['title' => '触发器的描述。', 'description' => '触发器的描述。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'trigger for test', 'maxLength' => 256, 'backendName' => 'description'],
+ 'invocationRole' => ['title' => '事件源(如OSS)调用函数所需的角色。', 'description' => '事件源(如OSS)调用函数所需的角色。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1234567890:role/fc-test', 'maxLength' => 300, 'backendName' => 'invocationRole'],
+ 'qualifier' => ['title' => '函数的版本或别名。', 'description' => '函数的版本或别名。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'backendName' => 'qualifier'],
+ 'sourceArn' => ['title' => '触发器事件源的Aliyun Resource Name。', 'description' => '触发器事件源的Aliyun Resource Name。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:oss:cn-shanghai:12345:mybucket', 'maxLength' => 300, 'minLength' => 1, 'backendName' => 'sourceArn'],
+ 'triggerConfig' => ['title' => '触发器配置,针对不同类型的触发器,配置有所不同。', 'description' => '触发器配置,针对不同类型的触发器,配置有所不同。具体格式请参见如下对应的数据结构:'."\n"
+ .' - OSS触发器:请参见[OSSTriggerConfig](~~2766465~~)。'."\n"
+ .' - 日志服务触发器:请参见[SLSTriggerConfig](~~2766469~~)。'."\n"
+ .' - 定时触发器:请参见[TimerTriggerConfig](~~2754638~~)。'."\n"
+ .' - HTTP触发器:请参见[HTTPTriggerConfig](~~2766461~~)。'."\n"
+ .' - Tablestore触发器:只需要填写完整的**SourceArn**参数便可, 这里无需额外配置,取值为空{}。'."\n"
+ .' - CDN事件触发器:请参见[CDNTriggerConfig](~~2766462~~)。'."\n"
+ .' - MNS主题触发器:请参见[MNSTopicTriggerConfig](~~2766464~~)。'."\n"
+ .' - EventBridge触发器:请参见[EventBridgeTriggerConfig](~~2766447~~)。', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '{"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}}', 'backendName' => 'triggerConfig'],
+ 'triggerName' => ['title' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。', 'description' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'oss_create_object_demo', 'maxLength' => 128, 'minLength' => 1, 'backendName' => 'triggerName'],
+ 'triggerType' => ['title' => '触发器的类型。', 'description' => '触发器的类型。'."\n"
+ .'具体取值和触发器类型对应关系如下所示:'."\n"
+ .' - **oss**:OSS触发器。更多信息,请参见[OSS触发器概述](~~2513613~~)。'."\n"
+ .' - **log**:日志服务触发器。更多信息,请参见[日志服务触发器概述](~~2513638~~)。'."\n"
+ .' - **timer**:定时触发器。更多信息,请参见[定时触发器概述](~~2513611~~)。'."\n"
+ .' - **http**:HTTP触发器。更多信息,请参见[HTTP触发器概述](~~2513634~~)。'."\n"
+ .' - **tablestore**:Tablestore触发器。更多信息,请参见[Tablestore触发器概述](~~2513640~~)。'."\n"
+ .' - **cdn_events**:CDN事件触发器。更多信息,请参见[CDN事件触发器概述](~~2513636~~)。'."\n"
+ .' - **mns_topic**:MNS主题触发器。更多信息,请参见[MNS主题触发器概述](~~2513641~~)。'."\n"
+ .' - **eventbridge**:EventBridge触发器。', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'oss', 'backendName' => 'triggerType'],
],
],
'CreateVpcBindingInput' => [
'title' => '创建 vpc binding 请求参数',
'description' => '创建VPC绑定请求参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'vpcId' => [
- 'title' => 'VPC实例ID',
- 'description' => 'VPC实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'vpc-8vb8x8dggvr0a****',
- 'minLength' => 1,
- ],
+ 'vpcId' => ['title' => 'VPC实例ID', 'description' => 'VPC实例ID', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'vpc-8vb8x8dggvr0a****', 'minLength' => 1, 'backendName' => 'vpcId'],
],
],
'CustomContainerConfig' => [
'title' => '自定义容器运行时的配置信息',
'description' => '自定义容器运行时的配置信息。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'accelerationInfo' => [
- 'title' => '镜像加速信息(已废弃)',
- 'description' => '镜像加速信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/AccelerationInfo',
- ],
- 'accelerationType' => [
- 'title' => '是否开启镜像加速。Default: 默认值,表示开启镜像加速。None: 表示关闭镜像加速。(已废弃)',
- 'description' => '是否开启镜像加速。Default表示开启镜像加速,None表示关闭镜像加速。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Default',
- ],
- 'acrInstanceId' => [
- 'title' => 'ACR企业版镜像仓库ID,使用ACR企业版镜像时须传入。(已废弃)',
- 'description' => 'ACR企业版镜像仓库ID,使用ACR企业版镜像时须传入。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cri-xxxxxxxxxx',
- ],
+ 'accelerationInfo' => ['title' => '镜像加速信息(已废弃)', 'description' => '镜像加速信息。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'accelerationInfo', '$ref' => '#/components/schemas/AccelerationInfo'],
+ 'accelerationType' => ['title' => '是否开启镜像加速。Default: 默认值,表示开启镜像加速。None: 表示关闭镜像加速。(已废弃)', 'description' => '是否开启镜像加速。Default表示开启镜像加速,None表示关闭镜像加速。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Default', 'backendName' => 'accelerationType'],
+ 'acrInstanceId' => ['title' => 'ACR企业版镜像仓库ID,使用ACR企业版镜像时须传入。(已废弃)', 'description' => 'ACR企业版镜像仓库ID,使用ACR企业版镜像时须传入。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cri-xxxxxxxxxx', 'backendName' => 'acrInstanceId'],
'command' => [
'title' => '容器启动参数。',
'description' => '容器启动参数。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '启动参数。',
- 'type' => 'string',
- 'example' => 'arg1',
- ],
+ 'items' => ['description' => '启动参数。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'arg1', 'extendType' => 'true'],
'required' => false,
+ 'backendName' => 'command',
],
'entrypoint' => [
'title' => '容器启动命令。',
'description' => '容器启动命令。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '启动命令。',
- 'type' => 'string',
- 'example' => '/code/bootstrap',
- ],
- 'required' => false,
- ],
- 'healthCheckConfig' => [
- 'title' => '函数自定义健康检查配置',
- 'description' => '函数自定义健康检查配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomHealthCheckConfig',
- ],
- 'image' => [
- 'title' => '容器镜像地址。',
- 'description' => '容器镜像地址。',
- 'type' => 'string',
+ 'items' => ['description' => '启动命令。', 'visibility' => 'Public', 'type' => 'string', 'example' => '/code/bootstrap', 'extendType' => 'true'],
'required' => false,
- 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1',
- ],
- 'port' => [
- 'title' => '自定义容器运行时HTTP Server的监听端口。',
- 'description' => '自定义容器运行时HTTP Server的监听端口。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '9000',
- ],
- 'registryConfig' => [
- 'title' => 'registry related',
- 'description' => 'registry related',
- 'required' => false,
- '$ref' => '#/components/schemas/RegistryConfig',
- ],
- 'resolvedImageUri' => [
- 'title' => '所部署的Image字段镜像的实际digest版本, 函数启动及运行时实际使用此digest指定的代码版本(返回参数,作为入参无需填写)',
- 'description' => '所部署的镜像的实际digest版本,函数启动时实际使用此digest指定的代码版本。由GetFunction时返回,作为参数时无需提供。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'stand-sh-registry-vpc.cn-shanghai.cr.aliyuncs.com/fc-demo2/springboot-helloworld@sha256:68d1****0d64d6',
+ 'backendName' => 'entrypoint',
],
+ 'healthCheckConfig' => ['title' => '函数自定义健康检查配置', 'description' => '函数自定义健康检查配置。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'healthCheckConfig', '$ref' => '#/components/schemas/CustomHealthCheckConfig'],
+ 'image' => ['title' => '容器镜像地址。', 'description' => '容器镜像地址。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1', 'backendName' => 'image'],
+ 'port' => ['title' => '自定义容器运行时HTTP Server的监听端口。', 'description' => '自定义容器运行时HTTP Server的监听端口。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '9000', 'backendName' => 'port'],
+ 'registryConfig' => ['title' => 'registry related', 'description' => 'registry related', 'visibility' => 'Public', 'required' => false, 'backendName' => 'registryConfig', '$ref' => '#/components/schemas/RegistryConfig'],
+ 'resolvedImageUri' => ['title' => '所部署的Image字段镜像的实际digest版本, 函数启动及运行时实际使用此digest指定的代码版本(返回参数,作为入参无需填写)', 'description' => '所部署的镜像的实际digest版本,函数启动时实际使用此digest指定的代码版本。由GetFunction时返回,作为参数时无需提供。', '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' => '函数自定义DNS配置',
'description' => '函数自定义DNS配置。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'dnsOptions' => [
'title' => 'resolv.conf文件中的DNS解析配置列表。每一项对应一个键值对,格式为key:value,其中键为必填',
'description' => 'resolv.conf文件中的DNS解析配置列表。每一项对应一个键值对,格式为key:value,其中键为必填。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'DNS选项。',
- '$ref' => '#/components/schemas/DNSOption',
- ],
+ 'items' => ['description' => 'DNS选项。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/DNSOption'],
'required' => false,
+ 'backendName' => 'dnsOptions',
],
'nameServers' => [
'title' => 'DNS服务器的IP地址列表',
'description' => 'DNS服务器的IP地址列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'DNS服务器。',
- 'type' => 'string',
- 'example' => '8.8.x.x',
- ],
+ 'items' => ['description' => 'DNS服务器。', 'visibility' => 'Public', 'type' => 'string', 'example' => '8.8.x.x', 'extendType' => 'true'],
'required' => false,
+ 'backendName' => 'nameServers',
],
'searches' => [
'title' => 'DNS搜索域列表',
'description' => 'DNS搜索域列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'DNS搜索域。',
- 'type' => 'string',
- 'example' => 'ns1.svc.cluster-domain.example',
- ],
+ 'items' => ['description' => 'DNS搜索域。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'ns1.svc.cluster-domain.example', 'extendType' => 'true'],
'required' => false,
+ 'backendName' => 'searches',
],
],
],
@@ -1435,291 +619,121 @@
'description' => '自定义域名信息',
'type' => 'object',
'properties' => [
- 'accountId' => [
- 'title' => '您的阿里云账号(主账号)ID。',
- 'description' => '您的阿里云账号(主账号)ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '186851234023****',
- ],
- 'apiVersion' => [
- 'title' => '函数计算的API版本。',
- 'description' => '函数计算的API版本。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-30',
- ],
- 'authConfig' => [
- 'title' => '权限认证配置',
- 'description' => '权限认证配置',
- 'required' => false,
- '$ref' => '#/components/schemas/AuthConfig',
- ],
- 'certConfig' => [
- 'title' => 'HTTPS证书的信息。',
- 'description' => 'HTTPS证书的信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/CertConfig',
- ],
- 'createdTime' => [
- 'title' => '自定义域名的创建时间。',
- 'description' => '自定义域名的创建时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-30T08:02:19Z',
- ],
- 'domainName' => [
- 'title' => '域名。',
- 'description' => '域名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'example.com',
- ],
- 'lastModifiedTime' => [
- 'title' => '自定义域名上一次被更新的时间。',
- 'description' => '自定义域名上一次被更新的时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-30T08:02:19Z',
- ],
- 'protocol' => [
- 'title' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。',
- 'description' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'HTTP',
- ],
- 'routeConfig' => [
- 'title' => '路由表:自定义域名访问时的PATH到Function的映射。',
- 'description' => '路由表:自定义域名访问时的PATH到Function的映射。',
- 'required' => false,
- '$ref' => '#/components/schemas/RouteConfig',
- ],
- 'subdomainCount' => [
- 'title' => '子域名的数量。',
- 'description' => '子域名的数量。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
- 'tlsConfig' => [
- 'title' => 'TLS配置信息。',
- 'description' => 'TLS配置信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/TLSConfig',
- ],
- 'wafConfig' => [
- 'title' => 'Web应用防火墙配置信息。',
- 'description' => 'Web应用防火墙配置信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/WAFConfig',
- ],
- 'corsConfig' => [
- '$ref' => '#/components/schemas/CORSConfig',
- ],
+ 'accountId' => ['title' => '您的阿里云账号(主账号)ID。', 'description' => '您的阿里云账号(主账号)ID。', 'type' => 'string', 'required' => false, 'example' => '186851234023****'],
+ 'apiVersion' => ['title' => '函数计算的API版本。', 'description' => '函数计算的API版本。', 'type' => 'string', 'required' => false, 'example' => '2023-03-30'],
+ 'authConfig' => ['title' => '权限认证配置', 'description' => '权限认证配置', 'required' => false, '$ref' => '#/components/schemas/AuthConfig'],
+ 'certConfig' => ['title' => 'HTTPS证书的信息。', 'description' => 'HTTPS证书的信息。', 'required' => false, '$ref' => '#/components/schemas/CertConfig'],
+ 'createdTime' => ['title' => '自定义域名的创建时间。', 'description' => '自定义域名的创建时间。', 'type' => 'string', 'required' => false, 'example' => '2023-03-30T08:02:19Z'],
+ 'domainName' => ['title' => '域名。', 'description' => '域名。', 'type' => 'string', 'required' => false, 'example' => 'example.com'],
+ 'lastModifiedTime' => ['title' => '自定义域名上一次被更新的时间。', 'description' => '自定义域名上一次被更新的时间。', 'type' => 'string', 'required' => false, 'example' => '2023-03-30T08:02:19Z'],
+ 'protocol' => ['title' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。', 'description' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
+ 'routeConfig' => ['title' => '路由表:自定义域名访问时的PATH到Function的映射。', 'description' => '路由表:自定义域名访问时的PATH到Function的映射。', 'required' => false, '$ref' => '#/components/schemas/RouteConfig'],
+ 'subdomainCount' => ['title' => '子域名的数量。', 'description' => '子域名的数量。', 'type' => 'string', 'required' => false, 'example' => '1'],
+ 'tlsConfig' => ['title' => 'TLS配置信息。', 'description' => 'TLS配置信息。', 'required' => false, '$ref' => '#/components/schemas/TLSConfig'],
+ 'wafConfig' => ['title' => 'Web应用防火墙配置信息。', 'description' => 'Web应用防火墙配置信息。', 'required' => false, '$ref' => '#/components/schemas/WAFConfig'],
+ 'corsConfig' => ['$ref' => '#/components/schemas/CORSConfig'],
+ 'isE2B' => ['type' => 'boolean'],
],
],
'CustomHealthCheckConfig' => [
'title' => '函数自定义健康检查配置,仅适用于Custom Runtime和Custom Container',
'description' => '函数自定义健康检查配置,仅适用于Custom Runtime和Custom Container。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'failureThreshold' => [
- 'title' => '健康检查失败次数阈值,达到该值后系统认为检查失败。取值范围1~120。默认值为3。',
- 'description' => '健康检查失败次数阈值,达到该值后系统认为检查失败。取值范围1~120。默认值为3。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'httpGetUrl' => [
- 'title' => '容器自定义健康检查URL地址。长度不超过2048个字符。',
- 'description' => '容器自定义健康检查URL地址。长度不超过2048个字符。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/ready',
- ],
- 'initialDelaySeconds' => [
- 'title' => '容器启动到发起健康检查的延迟。取值范围0~120。默认值为0。',
- 'description' => '容器启动到发起健康检查的延迟。取值范围0~120。默认值为0。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'periodSeconds' => [
- 'title' => '健康检查周期。取值范围1~120。默认值为3。',
- 'description' => '健康检查周期。取值范围1~120。默认值为3。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'successThreshold' => [
- 'title' => '健康检查成功次数阈值,达到该值后系统认为检查成功。取值范围1~120。默认值为1。',
- 'description' => '健康检查成功次数阈值,达到该值后系统认为检查成功。取值范围1~120。默认值为1。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- 'timeoutSeconds' => [
- 'title' => '健康检查超时时间。取值范围1~3。默认值为1。',
- 'description' => '健康检查超时时间。取值范围1~3。默认值为1。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
+ 'failureThreshold' => ['title' => '健康检查失败次数阈值,达到该值后系统认为检查失败。取值范围1~120。默认值为3。', 'description' => '健康检查失败次数阈值,达到该值后系统认为检查失败。取值范围1~120。默认值为3。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'backendName' => 'failureThreshold'],
+ 'httpGetUrl' => ['title' => '容器自定义健康检查URL地址。长度不超过2048个字符。', 'description' => '容器自定义健康检查URL地址。长度不超过2048个字符。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '/ready', 'backendName' => 'httpGetUrl'],
+ 'initialDelaySeconds' => ['title' => '容器启动到发起健康检查的延迟。取值范围0~120。默认值为0。', 'description' => '容器启动到发起健康检查的延迟。取值范围0~120。默认值为0。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'backendName' => 'initialDelaySeconds'],
+ 'periodSeconds' => ['title' => '健康检查周期。取值范围1~120。默认值为3。', 'description' => '健康检查周期。取值范围1~120。默认值为3。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'backendName' => 'periodSeconds'],
+ 'successThreshold' => ['title' => '健康检查成功次数阈值,达到该值后系统认为检查成功。取值范围1~120。默认值为1。', 'description' => '健康检查成功次数阈值,达到该值后系统认为检查成功。取值范围1~120。默认值为1。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'backendName' => 'successThreshold'],
+ 'timeoutSeconds' => ['title' => '健康检查超时时间。取值范围1~3。默认值为1。', 'description' => '健康检查超时时间。取值范围1~3。默认值为1。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'backendName' => 'timeoutSeconds'],
],
],
'CustomRuntimeConfig' => [
'title' => '自定义运行时的配置信息',
'description' => '自定义运行时的配置信息。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'args' => [
'title' => '实例启动参数。',
'description' => '实例启动参数。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '启动参数。',
- 'type' => 'string',
- 'example' => 'arg1',
- ],
+ 'items' => ['description' => '启动参数。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'arg1', 'extendType' => 'true'],
'required' => false,
+ 'backendName' => 'args',
],
'command' => [
'title' => '实例启动命令。',
'description' => '实例启动命令。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '启动命令。',
- 'type' => 'string',
- 'example' => '/code/bootstrap',
- ],
- 'required' => false,
- ],
- 'healthCheckConfig' => [
- 'title' => '函数自定义健康检查配置。',
- 'description' => '函数自定义健康检查配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomHealthCheckConfig',
- ],
- 'port' => [
- 'title' => 'HTTP Server的监听端口。',
- 'description' => 'HTTP Server的监听端口。',
- 'type' => 'integer',
- 'format' => 'int32',
+ 'items' => ['description' => '启动命令。', 'visibility' => 'Public', 'type' => 'string', 'example' => '/code/bootstrap', 'extendType' => 'true'],
'required' => false,
- 'example' => '9000',
- ],
- ],
- ],
- 'DNSOption' => [
- 'title' => 'DNS解析配置',
- 'description' => 'DNS解析配置',
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'title' => '配置项名称',
- 'description' => '配置项名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ndots',
- 'maxLength' => 256,
- ],
- 'value' => [
- 'title' => '配置项值',
- 'description' => '配置项值',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2',
- 'maxLength' => 256,
+ 'backendName' => 'command',
],
+ 'healthCheckConfig' => ['title' => '函数自定义健康检查配置。', 'description' => '函数自定义健康检查配置。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'healthCheckConfig', '$ref' => '#/components/schemas/CustomHealthCheckConfig'],
+ 'port' => ['title' => 'HTTP Server的监听端口。', 'description' => 'HTTP Server的监听端口。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '9000', 'backendName' => 'port'],
],
],
'DeadLetterQueue' => [
'title' => 'EventBridge 触发器的死信队列配置',
'description' => 'EventBridge 触发器的死信队列配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'Arn' => [
- 'title' => '死信队列的 ARN',
- 'description' => '死信队列的 ARN',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:mq:cn-shanghai:14319991365*****:/instances/MQ_INST_14319991365*****_BYWs****/topic/testTopic',
- ],
+ 'Arn' => ['title' => '死信队列的 ARN', 'description' => '死信队列的 ARN', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:mq:cn-shanghai:14319991365*****:/instances/MQ_INST_14319991365*****_BYWs****/topic/testTopic', 'backendName' => 'Arn'],
],
],
'DeliveryOption' => [
'title' => 'EventBridge 触发器的事件推送配置',
'description' => 'EventBridge 触发器的事件推送配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'concurrency' => [
- 'title' => '上游事件源投递事件到函数计算的并发最大值,目前仅针对在 Kafka 作为事件源时有效。',
- 'description' => '上游事件源投递事件到函数计算的并发最大值,目前仅针对在 Kafka 作为事件源时有效。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '2',
- ],
- 'eventSchema' => [
- 'title' => '函数入口参数 event 中每个数据元素的格式。CloudEvents:以通用格式描述事件数据的规范,包含事件描述以及事件负载数据,旨在简化不同服务、平台间的事件声明和传输,默认值。RawData:只投递事件负载数据,不包含CloudEvents格式中的其它元数据信息。',
- 'description' => '函数入口参数 event 中每个数据元素的格式。CloudEvents:以通用格式描述事件数据的规范,包含事件描述以及事件负载数据,旨在简化不同服务、平台间的事件声明和传输,默认值。RawData:只投递事件负载数据,不包含CloudEvents格式中的其它元数据信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'RawData',
- ],
+ 'concurrency' => ['title' => '上游事件源投递事件到函数计算的并发最大值,目前仅针对在 Kafka 作为事件源时有效。', 'description' => '上游事件源投递事件到函数计算的并发最大值,目前仅针对在 Kafka 作为事件源时有效。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2', 'backendName' => 'concurrency'],
+ 'eventSchema' => ['title' => '函数入口参数 event 中每个数据元素的格式。CloudEvents:以通用格式描述事件数据的规范,包含事件描述以及事件负载数据,旨在简化不同服务、平台间的事件声明和传输,默认值。RawData:只投递事件负载数据,不包含CloudEvents格式中的其它元数据信息。', 'description' => '函数入口参数 event 中每个数据元素的格式。CloudEvents:以通用格式描述事件数据的规范,包含事件描述以及事件负载数据,旨在简化不同服务、平台间的事件声明和传输,默认值。RawData:只投递事件负载数据,不包含CloudEvents格式中的其它元数据信息。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'RawData', 'backendName' => 'eventSchema'],
],
],
'DescribeRegionsOutput' => [
'description' => '响应',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'Regions' => [
'description' => '地域信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'Region' => [
'description' => '地域信息集合',
+ 'visibility' => 'Public',
'type' => 'array',
'items' => [
'description' => '地域对象',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'RegionId' => [
- 'description' => '地域ID',
- 'type' => 'string',
- 'example' => 'cn-qingdao',
- ],
- 'LocalName' => [
- 'description' => '地域名称',
- 'type' => 'string',
- 'example' => '华北1(青岛)'."\n",
- ],
+ 'RegionId' => ['description' => '地域ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'cn-qingdao', 'backendName' => 'RegionId'],
+ 'LocalName' => ['description' => '地域名称', 'visibility' => 'Public', 'type' => 'string', 'example' => '华北1(青岛)'."\n", 'backendName' => 'LocalName'],
],
+ 'extendType' => 'true',
],
+ 'backendName' => 'Region',
],
],
+ 'backendName' => 'Regions',
],
],
],
'Destination' => [
'title' => '异步调用目标结构体',
'description' => '异步调用目标结构体',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'destination' => [
- 'title' => '异步调用目标资源描述符',
- 'description' => '异步调用目标资源描述符',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1',
- 'maxLength' => 512,
- ],
+ 'destination' => ['title' => '异步调用目标资源描述符', 'description' => '异步调用目标资源描述符', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1', 'maxLength' => 512, 'backendName' => 'destination'],
],
],
'DestinationConfig' => [
@@ -1727,107 +741,46 @@
'description' => '异步调用目标的配置信息',
'type' => 'object',
'properties' => [
- 'onFailure' => [
- 'title' => '失败的回调目标结构体。',
- 'description' => '失败的回调目标结构体。',
- 'required' => false,
- '$ref' => '#/components/schemas/Destination',
- ],
- 'onSuccess' => [
- 'title' => '成功的回调目标结构体。',
- 'description' => '成功的回调目标结构体。',
- 'required' => false,
- '$ref' => '#/components/schemas/Destination',
- ],
+ 'onFailure' => ['title' => '失败的回调目标结构体。', 'description' => '失败的回调目标结构体。', 'required' => false, '$ref' => '#/components/schemas/Destination'],
+ 'onSuccess' => ['title' => '成功的回调目标结构体。', 'description' => '成功的回调目标结构体。', 'required' => false, '$ref' => '#/components/schemas/Destination'],
],
],
- 'ElasticConfigStatus' => [
+ 'DNSOption' => [
+ 'title' => 'DNS解析配置',
+ 'description' => 'DNS解析配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'residentPoolId' => [
- 'type' => 'string',
- ],
- 'functionArn' => [
- 'type' => 'string',
- ],
- 'currentInstances' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'currentError' => [
- 'type' => 'string',
- ],
- 'minInstances' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'scheduledPolicies' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ScheduledPolicy',
- ],
- ],
- 'scalingPolicies' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ScalingPolicy',
- ],
- ],
- 'targetInstances' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'name' => ['title' => '配置项名称', 'description' => '配置项名称', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'ndots', 'maxLength' => 256, 'backendName' => 'name'],
+ 'value' => ['title' => '配置项值', 'description' => '配置项值', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2', 'maxLength' => 256, 'backendName' => 'value'],
+ ],
+ ],
+ 'ElasticInterval' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'startTime' => ['type' => 'string'],
+ 'endTime' => ['type' => 'string'],
],
],
'EqualRule' => [
'title' => '自定义域名完全匹配重写规则配置',
'description' => '自定义域名完全匹配重写规则配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'match' => [
- 'title' => '匹配规则',
- 'description' => '匹配规则',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/old',
- 'maxLength' => 256,
- ],
- 'replacement' => [
- 'title' => '替换规则',
- 'description' => '替换规则',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/new',
- 'maxLength' => 256,
- ],
+ 'match' => ['title' => '匹配规则', 'description' => '匹配规则', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/old', 'maxLength' => 256, 'backendName' => 'match'],
+ 'replacement' => ['title' => '替换规则', 'description' => '替换规则', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/new', 'maxLength' => 256, 'backendName' => 'replacement'],
],
],
'Error' => [
'title' => '错误信息',
'description' => '错误信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'Code' => [
- 'title' => '错误码',
- 'description' => '错误码',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'FunctionNotFound',
- ],
- 'Message' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'function not found',
- ],
- 'RequestId' => [
- 'title' => '请求ID',
- 'description' => '请求ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1-64e70cf1-5cbef92ea8fc8c42899cf5d1',
- ],
+ 'Code' => ['title' => '错误码', 'description' => '错误码', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'FunctionNotFound', 'backendName' => 'Code'],
+ 'Message' => ['title' => '错误信息', 'description' => '错误信息', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'function not found', 'backendName' => 'Message'],
+ 'RequestId' => ['title' => '请求ID', 'description' => '请求ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1-64e70cf1-5cbef92ea8fc8c42899cf5d1', 'backendName' => 'RequestId'],
],
],
'EventBridgeTriggerConfig' => [
@@ -1835,106 +788,59 @@
'description' => 'EventBridge 触发器配置',
'type' => 'object',
'properties' => [
- 'asyncInvocationType' => [
- 'title' => '触发器调用函数的方式。true:同步调用。false:异步调用,默认值。',
- 'description' => '触发器调用函数的方式,取值如下:'."\n"
- ."\n"
- .'- **true**:同步调用。'."\n"
- ."\n"
- .'- **false**:异步调用。'."\n"
- ."\n"
- .'> 默认取值为**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' => '事件模式。JSON格式,详细规则请参考[事件模式](~~181432~~)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
- ],
- 'eventSinkConfig' => [
- 'title' => '事件目标配置',
- 'description' => '事件目标配置',
- 'required' => false,
- '$ref' => '#/components/schemas/EventSinkConfig',
- ],
- 'eventSourceConfig' => [
- 'title' => '事件源配置。',
- 'description' => '事件源配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/EventSourceConfig',
- ],
- 'runOptions' => [
- 'title' => '运行环境参数配置',
- 'description' => '运行环境参数配置',
- 'required' => false,
- '$ref' => '#/components/schemas/RunOptions',
- ],
- 'triggerEnable' => [
- 'title' => '是否启用触发器。true: 启用触发器,默认值。false: 禁用触发器。',
- 'description' => '是否启用触发器,取值如下:'."\n"
- ."\n"
- .'- **true**:启用触发器。'."\n"
- ."\n"
- .'- **false**:禁用触发器。'."\n"
- ."\n"
- .'> 默认取值为**true**',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'asyncInvocationType' => ['title' => '触发器调用函数的方式。true:同步调用。false:异步调用,默认值。', 'description' => '触发器调用函数的方式,取值如下:'."\n"
+ ."\n"
+ .'- **true**:同步调用。'."\n"
+ ."\n"
+ .'- **false**:异步调用。'."\n"
+ ."\n"
+ .'> 默认取值为**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' => '事件模式。JSON格式,详细规则请参考[事件模式](~~181432~~)。', 'type' => 'string', 'required' => false, 'example' => '{}'],
+ 'eventSinkConfig' => ['title' => '事件目标配置', 'description' => '事件目标配置', 'required' => false, '$ref' => '#/components/schemas/EventSinkConfig'],
+ 'eventSourceConfig' => ['title' => '事件源配置。', 'description' => '事件源配置。', 'required' => false, '$ref' => '#/components/schemas/EventSourceConfig'],
+ 'runOptions' => ['title' => '运行环境参数配置', 'description' => '运行环境参数配置', 'required' => false, '$ref' => '#/components/schemas/RunOptions'],
+ 'triggerEnable' => ['title' => '是否启用触发器。true: 启用触发器,默认值。false: 禁用触发器。', 'description' => '是否启用触发器,取值如下:'."\n"
+ ."\n"
+ .'- **true**:启用触发器。'."\n"
+ ."\n"
+ .'- **false**:禁用触发器。'."\n"
+ ."\n"
+ .'> 默认取值为**true**', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'EventSinkConfig' => [
'title' => 'EventBridge 触发器的 sink 端配置',
'description' => 'EventBridge 触发器的 sink 端配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'deliveryOption' => [
- 'title' => '事件推送配置',
- 'description' => '事件推送配置',
- 'required' => false,
- '$ref' => '#/components/schemas/DeliveryOption',
- ],
+ 'deliveryOption' => ['title' => '事件推送配置', 'description' => '事件推送配置', 'visibility' => 'Public', 'required' => false, 'backendName' => 'deliveryOption', '$ref' => '#/components/schemas/DeliveryOption'],
],
],
'EventSourceConfig' => [
'title' => 'EventBridge 触发器的事件源配置',
'description' => 'EventBridge 触发器的事件源配置',
- 'type' => 'object',
- 'properties' => [
- 'eventSourceParameters' => [
- 'title' => '自定义事件源参数',
- 'description' => '自定义事件源参数,自定义事件源包括:MNS、RocketMQ、RabbitMQ、Kafka、MQTT、DTS。',
- 'required' => false,
- '$ref' => '#/components/schemas/EventSourceParameters',
- ],
- 'eventSourceType' => [
- 'title' => '触发器事件源类型。Default:表示 EventBridge 官方触发源,默认值。MNS:消息队列 MNS 队列作为触发源。RocketMQ:消息队列 RocketMQ 版作为触发源。RabbitMQ:消息队列 RabbitMQ 版作为触发源。Kafka:云消息队列 Kafka 版作为触发源。MQTT:云消息队列 MQTT 版作为触发源。DTS:数据传输服务 DTS 作为触发源。注意,该字段不可更新,更新时传入该字段将被忽略。',
- 'description' => '触发器事件源类型,包含如下几种类型:'."\n"
- ."\n"
- .'- **Default**:表示EventBridge 官方触发源。'."\n"
- ."\n"
- .'- **MNS**:消息队列 MNS 队列作为触发源。'."\n"
- ."\n"
- .'- **RocketMQ**:消息队列 RocketMQ 版作为触发源。'."\n"
- ."\n"
- .'- **RabbitMQ**:消息队列 RabbitMQ 版作为触发源。'."\n"
- ."\n"
- .'- **Kafka**:云消息队列 Kafka 版作为触发源。'."\n"
- ."\n"
- .'- **MQTT**:云消息队列 MQTT 版作为触发源。'."\n"
- ."\n"
- .'- **DTS**:数据传输服务 DTS 作为触发源。'."\n"
- ."\n"
- .'> 注意,该字段不可更新,更新时传入该字段将被忽略。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MNS',
- ],
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'eventSourceParameters' => ['title' => '自定义事件源参数', 'description' => '自定义事件源参数,自定义事件源包括:MNS、RocketMQ、RabbitMQ、Kafka、MQTT、DTS。', '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' => '触发器事件源类型,包含如下几种类型:'."\n"
+ ."\n"
+ .'- **Default**:表示EventBridge 官方触发源。'."\n"
+ ."\n"
+ .'- **MNS**:消息队列 MNS 队列作为触发源。'."\n"
+ ."\n"
+ .'- **RocketMQ**:消息队列 RocketMQ 版作为触发源。'."\n"
+ ."\n"
+ .'- **RabbitMQ**:消息队列 RabbitMQ 版作为触发源。'."\n"
+ ."\n"
+ .'- **Kafka**:云消息队列 Kafka 版作为触发源。'."\n"
+ ."\n"
+ .'- **MQTT**:云消息队列 MQTT 版作为触发源。'."\n"
+ ."\n"
+ .'- **DTS**:数据传输服务 DTS 作为触发源。'."\n"
+ ."\n"
+ .'> 注意,该字段不可更新,更新时传入该字段将被忽略。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'MNS', 'backendName' => 'eventSourceType'],
],
],
'EventSourceParameters' => [
@@ -1942,42 +848,12 @@
'description' => 'EventBridge 触发器的自定义事件源参数',
'type' => 'object',
'properties' => [
- 'sourceDTSParameters' => [
- 'title' => '事件源为数据传输服务DTS时的自定义参数配置',
- 'description' => '事件源为数据传输服务DTS时的自定义参数配置',
- 'required' => false,
- '$ref' => '#/components/schemas/SourceDTSParameters',
- ],
- 'sourceKafkaParameters' => [
- 'title' => '事件源为消息队列Kafka版时的自定义参数配置',
- 'description' => '事件源为消息队列Kafka版时的自定义参数配置',
- 'required' => false,
- '$ref' => '#/components/schemas/SourceKafkaParameters',
- ],
- 'sourceMNSParameters' => [
- 'title' => '事件源为消息服务MNS时的自定义参数配置',
- 'description' => '事件源为轻量消息队列(原 MNS)时的自定义参数配置',
- 'required' => false,
- '$ref' => '#/components/schemas/SourceMNSParameters',
- ],
- 'sourceMQTTParameters' => [
- 'title' => '事件源为云消息队列MQTT版时的自定义参数配置',
- 'description' => '事件源为云消息队列MQTT版时的自定义参数配置',
- 'required' => false,
- '$ref' => '#/components/schemas/SourceMQTTParameters',
- ],
- 'sourceRabbitMQParameters' => [
- 'title' => '事件源为消息队列RabbitMQ版时的自定义参数配置',
- 'description' => '事件源为消息队列RabbitMQ版时的自定义参数配置',
- 'required' => false,
- '$ref' => '#/components/schemas/SourceRabbitMQParameters',
- ],
- 'sourceRocketMQParameters' => [
- 'title' => '事件源为消息队列RockerMQ版时的自定义参数配置',
- 'description' => '事件源为消息队列RockerMQ版时的自定义参数配置',
- 'required' => false,
- '$ref' => '#/components/schemas/SourceRocketMQParameters',
- ],
+ 'sourceDTSParameters' => ['title' => '事件源为数据传输服务DTS时的自定义参数配置', 'description' => '事件源为数据传输服务DTS时的自定义参数配置', 'required' => false, '$ref' => '#/components/schemas/SourceDTSParameters'],
+ 'sourceKafkaParameters' => ['title' => '事件源为消息队列Kafka版时的自定义参数配置', 'description' => '事件源为消息队列Kafka版时的自定义参数配置', 'required' => false, '$ref' => '#/components/schemas/SourceKafkaParameters'],
+ 'sourceMNSParameters' => ['title' => '事件源为消息服务MNS时的自定义参数配置', 'description' => '事件源为轻量消息队列(原 MNS)时的自定义参数配置', 'required' => false, '$ref' => '#/components/schemas/SourceMNSParameters'],
+ 'sourceMQTTParameters' => ['title' => '事件源为云消息队列MQTT版时的自定义参数配置', 'description' => '事件源为云消息队列MQTT版时的自定义参数配置', 'required' => false, '$ref' => '#/components/schemas/SourceMQTTParameters'],
+ 'sourceRabbitMQParameters' => ['title' => '事件源为消息队列RabbitMQ版时的自定义参数配置', 'description' => '事件源为消息队列RabbitMQ版时的自定义参数配置', 'required' => false, '$ref' => '#/components/schemas/SourceRabbitMQParameters'],
+ 'sourceRocketMQParameters' => ['title' => '事件源为消息队列RockerMQ版时的自定义参数配置', 'description' => '事件源为消息队列RockerMQ版时的自定义参数配置', 'required' => false, '$ref' => '#/components/schemas/SourceRocketMQParameters'],
],
],
'Filter' => [
@@ -1985,12 +861,7 @@
'description' => 'OSS 触发器配置过滤器配置',
'type' => 'object',
'properties' => [
- 'key' => [
- 'title' => '事件过滤规则描述。',
- 'description' => '事件过滤规则描述。',
- 'required' => false,
- '$ref' => '#/components/schemas/Key',
- ],
+ 'key' => ['title' => '事件过滤规则描述。', 'description' => '事件过滤规则描述。', 'required' => false, '$ref' => '#/components/schemas/Key'],
],
],
'Function' => [
@@ -1998,312 +869,71 @@
'description' => '函数配置信息。',
'type' => 'object',
'properties' => [
- 'codeChecksum' => [
- 'title' => '函数代码包的CRC-64值。',
- 'description' => '函数代码包的CRC-64值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2825179536350****',
- ],
- 'codeSize' => [
- 'title' => '系统返回的函数代码包的大小,单位Byte。',
- 'description' => '系统返回的函数代码包的大小,单位Byte。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '412',
- ],
- 'cpu' => [
- 'title' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。',
- 'description' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。最小值为0.05,最大值为16。同时cpu和memorySize(按GB算)比例要在1:1和1:4之间。',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'example' => '1',
- ],
- 'createdTime' => [
- 'title' => '函数的创建时间。',
- 'description' => '函数的创建时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-04-01T08:15:27Z',
- ],
- 'customContainerConfig' => [
- 'title' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。',
- 'description' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomContainerConfig',
- ],
- 'customDNS' => [
- 'title' => '自定义DNS配置。',
- 'description' => '自定义DNS配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomDNS',
- ],
- 'customRuntimeConfig' => [
- 'title' => '自定义运行时配置。',
- 'description' => '自定义运行时配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomRuntimeConfig',
- ],
- 'description' => [
- 'title' => '函数的描述。',
- 'description' => '函数的描述。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my function',
- ],
- 'diskSize' => [
- 'title' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。',
- 'description' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- ],
+ 'codeChecksum' => ['title' => '函数代码包的CRC-64值。', 'description' => '函数代码包的CRC-64值。', 'type' => 'string', 'required' => false, 'example' => '2825179536350****'],
+ 'codeSize' => ['title' => '系统返回的函数代码包的大小,单位Byte。', 'description' => '系统返回的函数代码包的大小,单位Byte。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '412'],
+ 'cpu' => ['title' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。', 'description' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。最小值为0.05,最大值为16。同时cpu和memorySize(按GB算)比例要在1:1和1:4之间。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1'],
+ 'createdTime' => ['title' => '函数的创建时间。', 'description' => '函数的创建时间。', 'type' => 'string', 'required' => false, 'example' => '2023-04-01T08:15:27Z'],
+ 'customContainerConfig' => ['title' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。', 'description' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。', 'required' => false, '$ref' => '#/components/schemas/CustomContainerConfig'],
+ 'customDNS' => ['title' => '自定义DNS配置。', 'description' => '自定义DNS配置。', 'required' => false, '$ref' => '#/components/schemas/CustomDNS'],
+ 'customRuntimeConfig' => ['title' => '自定义运行时配置。', 'description' => '自定义运行时配置。', 'required' => false, '$ref' => '#/components/schemas/CustomRuntimeConfig'],
+ 'description' => ['title' => '函数的描述。', 'description' => '函数的描述。', 'type' => 'string', 'required' => false, 'example' => 'my function'],
+ 'diskSize' => ['title' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。', 'description' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
'environmentVariables' => [
'title' => '函数的环境变量,可以在运行环境中访问设置的环境变量。',
'description' => '函数的环境变量,可以在运行环境中访问设置的环境变量。',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'description' => '环境变量的值。',
- 'type' => 'string',
- 'example' => 'value1',
- ],
- ],
- 'functionArn' => [
- 'title' => '函数资源标识。',
- 'description' => '函数资源标识。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:123:functions/functionName',
- ],
- 'functionId' => [
- 'title' => '系统为每个函数生成的ID,全局唯一。',
- 'description' => '系统为每个函数生成的ID,全局唯一。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aa715851-1c20-4b89-a8fb-***',
- ],
- 'functionName' => [
- 'title' => '函数的名称。',
- 'description' => '函数的名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-function-1',
- ],
- 'gpuConfig' => [
- 'title' => '函数GPU配置。',
- 'description' => '函数GPU配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/GPUConfig',
- ],
- 'handler' => [
- 'title' => '函数执行的入口,具体格式和运行时相关。',
- 'description' => '函数执行的入口,具体格式和运行时相关。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index.handler',
- ],
- 'instanceConcurrency' => [
- 'title' => '实例最大并发度',
- 'description' => '实例最大并发度',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'instanceLifecycleConfig' => [
- 'title' => '实例生命周期回调方法配置。',
- 'description' => '实例生命周期回调方法配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/InstanceLifecycleConfig',
- ],
- 'internetAccess' => [
- 'title' => 'service config',
- 'description' => '是否允许函数访问公网。默认值为true。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'lastModifiedTime' => [
- 'title' => '函数上一次被更新的时间。',
- 'description' => '函数上一次被更新的时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-05-01T08:15:27Z',
- ],
- 'lastUpdateStatus' => [
- 'title' => '最近一次函数更新操作的状态,当函数新建成功时,此值为Successful,可选值:Successful、 Failed、 InProgress。',
- 'description' => '最近一次函数更新操作的状态,当函数新建成功时,此值为Successful,可选值:Successful、 Failed、 InProgress。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'InProgress',
- ],
- 'lastUpdateStatusReason' => [
- 'title' => '导致最近一次函数更新操作状态为当前值的原因。',
- 'description' => '导致最近一次函数更新操作状态为当前值的原因。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'The system is currently processing the acceleration optimization for the image.',
- ],
- 'lastUpdateStatusReasonCode' => [
- 'title' => '导致最近一次函数更新操作状态为当前值的原因的状态码。',
- 'description' => '导致最近一次函数更新操作状态为当前值的原因的状态码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ImageOptimizing',
- ],
+ 'additionalProperties' => ['description' => '环境变量的值。', 'type' => 'string', 'example' => 'value1'],
+ ],
+ 'functionArn' => ['title' => '函数资源标识。', 'description' => '函数资源标识。', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:123:functions/functionName'],
+ 'functionId' => ['title' => '系统为每个函数生成的ID,全局唯一。', 'description' => '系统为每个函数生成的ID,全局唯一。', 'type' => 'string', 'required' => false, 'example' => 'aa715851-1c20-4b89-a8fb-***'],
+ 'functionName' => ['title' => '函数的名称。', 'description' => '函数的名称。', 'type' => 'string', 'required' => false, 'example' => 'my-function-1'],
+ 'gpuConfig' => ['title' => '函数GPU配置。', 'description' => '函数GPU配置。', 'required' => false, '$ref' => '#/components/schemas/GPUConfig'],
+ 'handler' => ['title' => '函数执行的入口,具体格式和运行时相关。', 'description' => '函数执行的入口,具体格式和运行时相关。', 'type' => 'string', 'required' => false, 'example' => 'index.handler'],
+ 'instanceConcurrency' => ['title' => '实例最大并发度', 'description' => '实例最大并发度', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'instanceLifecycleConfig' => ['title' => '实例生命周期回调方法配置。', 'description' => '实例生命周期回调方法配置。', 'required' => false, '$ref' => '#/components/schemas/InstanceLifecycleConfig'],
+ 'internetAccess' => ['title' => 'service config', 'description' => '是否允许函数访问公网。默认值为true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'lastModifiedTime' => ['title' => '函数上一次被更新的时间。', 'description' => '函数上一次被更新的时间。', 'type' => 'string', 'required' => false, 'example' => '2023-05-01T08:15:27Z'],
+ 'lastUpdateStatus' => ['title' => '最近一次函数更新操作的状态,当函数新建成功时,此值为Successful,可选值:Successful、 Failed、 InProgress。', 'description' => '最近一次函数更新操作的状态,当函数新建成功时,此值为Successful,可选值:Successful、 Failed、 InProgress。', 'type' => 'string', 'required' => false, 'example' => 'InProgress'],
+ 'lastUpdateStatusReason' => ['title' => '导致最近一次函数更新操作状态为当前值的原因。', 'description' => '导致最近一次函数更新操作状态为当前值的原因。', 'type' => 'string', 'required' => false, 'example' => 'The system is currently processing the acceleration optimization for the image.'],
+ 'lastUpdateStatusReasonCode' => ['title' => '导致最近一次函数更新操作状态为当前值的原因的状态码。', 'description' => '导致最近一次函数更新操作状态为当前值的原因的状态码。', 'type' => 'string', 'required' => false, 'example' => 'ImageOptimizing'],
'layers' => [
'title' => '层的列表。',
'description' => '层的列表。',
'type' => 'array',
- 'items' => [
- 'description' => '层信息。',
- '$ref' => '#/components/schemas/FunctionLayer',
- ],
- 'required' => false,
- ],
- 'logConfig' => [
- 'title' => '日志配置。函数产生的日志会被写入到配置的日志库中。',
- 'description' => '日志配置。函数产生的日志会被写入到配置的日志库中。',
- 'required' => false,
- '$ref' => '#/components/schemas/LogConfig',
- ],
- 'memorySize' => [
- 'title' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。',
- 'description' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。最小值为128MB,最大值为32GB。同时cpu和memorySize(按GB算)比例要在1:1和1:4之间。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- ],
- 'nasConfig' => [
- 'title' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。',
- 'description' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。',
- 'required' => false,
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'ossMountConfig' => [
- 'title' => 'OSS挂载配置。',
- 'description' => 'OSS挂载配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/OSSMountConfig',
- ],
- 'role' => [
- 'title' => '授予函数计算所需权限的RAM角色。',
- 'description' => '用户授权给函数计算的RAM角色,设置后函数计算将扮演该角色生成临时访问凭证。在函数中可以使用该角色的临时访问凭证来访问指定的阿里云服务,例如OSS和OTS。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::188077086902****:role/fc-test',
- ],
- 'runtime' => [
- 'title' => '函数的运行时环境。',
- 'description' => '函数的运行时环境。目前支持的运行环境有: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, custom-container。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'python3.10',
- ],
- 'state' => [
- 'title' => 'function state',
- 'description' => '函数当前的状态。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Pending',
- ],
- 'stateReason' => [
- 'title' => '函数处于当前状态的原因。',
- 'description' => '函数处于当前状态的原因。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Function creating',
- ],
- 'stateReasonCode' => [
- 'title' => '函数处于当前状态的原因的状态码。',
- 'description' => '函数处于当前状态的原因的状态码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Creating',
- ],
- 'timeout' => [
- 'title' => '函数运行的超时时间。',
- 'description' => '函数运行的超时时间,单位为秒,最小1秒,最大值为86400秒,默认值是3秒。函数超过这个时间后会被终止执行。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '60',
- ],
- 'tracingConfig' => [
- 'title' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。',
- 'description' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。',
- 'required' => false,
- '$ref' => '#/components/schemas/TracingConfig',
- ],
- 'vpcConfig' => [
- 'title' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。',
- 'description' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。',
- 'required' => false,
- '$ref' => '#/components/schemas/VPCConfig',
- ],
+ 'items' => ['description' => '层信息。', '$ref' => '#/components/schemas/FunctionLayer'],
+ 'required' => false,
+ ],
+ 'logConfig' => ['title' => '日志配置。函数产生的日志会被写入到配置的日志库中。', 'description' => '日志配置。函数产生的日志会被写入到配置的日志库中。', 'required' => false, '$ref' => '#/components/schemas/LogConfig'],
+ 'memorySize' => ['title' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。', 'description' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。最小值为128MB,最大值为32GB。同时cpu和memorySize(按GB算)比例要在1:1和1:4之间。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
+ 'nasConfig' => ['title' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。', 'description' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。', 'required' => false, '$ref' => '#/components/schemas/NASConfig'],
+ 'ossMountConfig' => ['title' => 'OSS挂载配置。', 'description' => 'OSS挂载配置。', 'required' => false, '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'role' => ['title' => '授予函数计算所需权限的RAM角色。', 'description' => '用户授权给函数计算的RAM角色,设置后函数计算将扮演该角色生成临时访问凭证。在函数中可以使用该角色的临时访问凭证来访问指定的阿里云服务,例如OSS和OTS。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::188077086902****:role/fc-test'],
+ 'runtime' => ['title' => '函数的运行时环境。', 'description' => '函数的运行时环境。目前支持的运行环境有: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, custom-container。', 'type' => 'string', 'required' => false, 'example' => 'python3.10'],
+ 'state' => ['title' => 'function state', 'description' => '函数当前的状态。', 'type' => 'string', 'required' => false, 'example' => 'Pending'],
+ 'stateReason' => ['title' => '函数处于当前状态的原因。', 'description' => '函数处于当前状态的原因。', 'type' => 'string', 'required' => false, 'example' => 'Function creating'],
+ 'stateReasonCode' => ['title' => '函数处于当前状态的原因的状态码。', 'description' => '函数处于当前状态的原因的状态码。', 'type' => 'string', 'required' => false, 'example' => 'Creating'],
+ 'timeout' => ['title' => '函数运行的超时时间。', 'description' => '函数运行的超时时间,单位为秒,最小1秒,最大值为86400秒,默认值是3秒。函数超过这个时间后会被终止执行。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
+ 'tracingConfig' => ['title' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。', 'description' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。', 'required' => false, '$ref' => '#/components/schemas/TracingConfig'],
+ 'vpcConfig' => ['title' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。', 'description' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。', 'required' => false, '$ref' => '#/components/schemas/VPCConfig'],
'tags' => [
'description' => '标签列表',
'type' => 'array',
- 'items' => [
- 'description' => '标签信息。',
- '$ref' => '#/components/schemas/Tag',
- ],
- ],
- 'disableOndemand' => [
- 'title' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例',
- 'description' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例',
- 'type' => 'boolean',
- 'deprecated' => true,
- ],
- 'invocationRestriction' => [
- '$ref' => '#/components/schemas/FunctionRestriction',
- ],
- 'sessionAffinity' => [
- 'title' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。',
- 'description' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MCP_SSE',
- ],
- 'enableLongLiving' => [
- 'title' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。',
- 'description' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。',
- 'type' => 'boolean',
- 'deprecated' => true,
- ],
- 'resourceGroupId' => [
- 'title' => '资源组 ID',
- 'description' => '资源组 ID',
- 'type' => 'string',
+ 'items' => ['description' => '标签信息。', '$ref' => '#/components/schemas/Tag'],
],
+ 'disableOndemand' => ['title' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例', 'description' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例', 'type' => 'boolean', 'deprecated' => true],
+ 'invocationRestriction' => ['$ref' => '#/components/schemas/FunctionRestriction', 'description' => ''],
+ 'sessionAffinity' => ['title' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。', 'description' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。', 'type' => 'string', 'required' => false, 'example' => 'MCP_SSE'],
+ 'enableLongLiving' => ['title' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。', 'description' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。', 'type' => 'boolean', 'deprecated' => true],
+ 'resourceGroupId' => ['title' => '资源组 ID', 'description' => '资源组 ID', 'type' => 'string'],
'instanceIsolationMode' => [
'title' => '实例隔离模式',
'description' => '实例隔离模式',
'type' => 'string',
- 'enum' => [
- 'SHARE',
- 'SESSION_EXCLUSIVE',
- 'REQUEST_EXCLUSIVE',
- ],
- ],
- 'sessionAffinityConfig' => [
- 'title' => '当设置 sessionAffinity 亲和类型时,需设置相关的亲和配置。如 MCP_SSE 亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie 亲和需填充 CookieSessionAffinityConfig 配置,Header Field 亲和需填充 HeaderFieldSessionAffinityConfig 配置。',
- 'description' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。',
- 'type' => 'string',
- 'example' => '{\\"sseEndpointPath\\":\\"/sse\\", \\"sessionConcurrencyPerInstance\\":20}',
- ],
- 'idleTimeout' => [
- 'title' => '实例延迟释放时间',
- 'description' => '实例延迟释放时间',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
+ 'enum' => ['SHARE', 'SESSION_EXCLUSIVE', 'REQUEST_EXCLUSIVE'],
],
+ 'sessionAffinityConfig' => ['title' => '当设置 sessionAffinity 亲和类型时,需设置相关的亲和配置。如 MCP_SSE 亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie 亲和需填充 CookieSessionAffinityConfig 配置,Header Field 亲和需填充 HeaderFieldSessionAffinityConfig 配置。', 'description' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。', 'type' => 'string', 'example' => '{\\"sseEndpointPath\\":\\"/sse\\", \\"sessionConcurrencyPerInstance\\":20}'],
+ 'idleTimeout' => ['title' => '实例延迟释放时间', 'description' => '实例延迟释放时间', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'disableInjectCredentials' => [
'title' => '是否不注入 STS token,取值None/Env/Request/All'."\n"
.'None: 都注入'."\n"
@@ -2318,96 +948,45 @@
'type' => 'string',
'example' => 'Env',
'default' => 'None',
- 'enum' => [
- 'None',
- 'Env',
- 'Request',
- 'All',
- ],
- ],
- 'polarFsConfig' => [
- 'description' => 'PolarFs配置。配置此参数后,函数可以访问指定的PolarFs资源。',
- '$ref' => '#/components/schemas/PolarFsConfig',
+ 'enum' => ['None', 'Env', 'Request', 'All'],
],
+ 'polarFsConfig' => ['description' => 'PolarFs配置。配置此参数后,函数可以访问指定的PolarFs资源。', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'lockInfo' => ['title' => '函数锁定信息', 'example' => '{"lockedBy":"AgentRun","lockedAt":"2025-04-05T10:00:00Z","lockedResources":["function","trigger","version","alias"]}', '$ref' => '#/components/schemas/FunctionLockInfo'],
+ 'juiceFsConfig' => ['title' => 'JuiceFs 挂载配置', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'microSandboxConfig' => ['$ref' => '#/components/schemas/MicroSandboxConfig'],
],
],
'FunctionLayer' => [
'title' => '函数配置的层信息',
'description' => '函数配置的层信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'arn' => [
- 'title' => '层版本的资源标识。',
- 'description' => '层版本的资源标识。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1',
- ],
- 'size' => [
- 'title' => '层的代码包大小,单位为Byte。',
- 'description' => '层的代码包大小,单位为Byte。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '421',
- ],
- ],
- ],
- 'FunctionRestriction' => [
- 'type' => 'object',
- 'properties' => [
- 'reason' => [
- 'type' => 'string',
- ],
- 'lastModifiedTime' => [
- 'type' => 'string',
- ],
- 'disable' => [
- 'type' => 'boolean',
- ],
+ 'arn' => ['title' => '层版本的资源标识。', 'description' => '层版本的资源标识。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1', 'backendName' => 'arn'],
+ 'size' => ['title' => '层的代码包大小,单位为Byte。', 'description' => '层的代码包大小,单位为Byte。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '421', 'backendName' => 'size'],
],
],
- 'GPUConfig' => [
- 'title' => '函数GPU配置信息',
- 'description' => '函数GPU配置信息。',
+ 'FunctionLockInfo' => [
+ 'description' => '函数锁定信息',
'type' => 'object',
'properties' => [
- 'gpuMemorySize' => [
- 'title' => 'GPU显存规格,单位为MB,为1024MB的倍数',
- 'description' => 'GPU显存规格,单位为MB,为1024MB的倍数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2048',
- ],
- 'gpuType' => [
- 'title' => 'GPU 卡类型。 fc.gpu.tesla.1 表示 GPU Tesla系列实例类型。fc.gpu.ampere.1 表示 GPU Ampere系列实例类型。fc.gpu.ada.1 表示 GPU Ada系列实例类型。',
- 'description' => 'GPU实例类型。'."\n"
- ."\n"
- .' - fc.gpu.tesla.1 表示 GPU Tesla 系列实例类型。'."\n"
- ."\n"
- .' - fc.gpu.ampere.1 表示 GPU Ampere 系列实例类型。'."\n"
- ."\n"
- .' - fc.gpu.ada.1 表示 GPU Ada 系列实例类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'fc.gpu.tesla.1',
- 'maxLength' => 128,
+ 'lockedBy' => ['description' => '锁定方名称', 'type' => 'string', 'required' => false, 'example' => 'AgentRun'],
+ 'lockedAt' => ['description' => '锁定时间', 'type' => 'string', 'required' => false, 'example' => '2025-04-05T10:00:00Z'],
+ 'lockedResources' => [
+ 'description' => '锁定的资源类型列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ 'example' => '["function", "trigger", "version", "alias"]',
+ 'maxItems' => 20,
],
],
],
- 'GetInstanceLifecycleEventsOutput' => [
+ 'FunctionRestriction' => [
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'type' => 'string',
- ],
- 'events' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/InstanceEventItem',
- ],
- ],
+ 'reason' => ['type' => 'string'],
+ 'lastModifiedTime' => ['type' => 'string'],
+ 'disable' => ['type' => 'boolean'],
],
],
'GetResourceTagsOutput' => [
@@ -2415,56 +994,53 @@
'description' => '查询标签信息。',
'type' => 'object',
'properties' => [
- 'resouceType' => [
- 'title' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。',
- 'description' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ALIYUN::FC::FUNCTION',
- ],
- 'resourceArn' => [
- 'title' => '阿里云资源描述符。',
- 'description' => '阿里云资源描述符。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:****:functions/demo',
- ],
+ 'resouceType' => ['title' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。', 'description' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN::FC::FUNCTION'],
+ 'resourceArn' => ['title' => '阿里云资源描述符。', 'description' => '阿里云资源描述符。', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:****:functions/demo'],
'tags' => [
'title' => '标签字典。取值说明如下:key:表示标签键,value:表示标签值。',
'description' => '标签字典。',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'description' => '标签值。',
- 'type' => 'string',
- 'example' => 'value1',
- ],
+ 'additionalProperties' => ['description' => '标签值。', 'type' => 'string', 'example' => 'value1'],
],
],
],
- 'GetScalingConfigStatusOutput' => [
+ 'GPUConfig' => [
+ 'title' => '函数GPU配置信息',
+ 'description' => '函数GPU配置信息。',
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'gpuMemorySize' => ['title' => 'GPU显存规格,单位为MB,为1024MB的倍数', 'description' => 'GPU显存规格,单位为MB,为1024MB的倍数', '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' => 'GPU实例类型。'."\n"
+ ."\n"
+ .' - fc.gpu.tesla.1 表示 GPU Tesla 系列实例类型。'."\n"
+ ."\n"
+ .' - fc.gpu.ampere.1 表示 GPU Ampere 系列实例类型。'."\n"
+ ."\n"
+ .' - fc.gpu.ada.1 表示 GPU Ada 系列实例类型。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'fc.gpu.tesla.1', 'maxLength' => 128, 'backendName' => 'gpuType'],
+ ],
+ ],
+ 'HeaderFieldSessionAffinityConfig' => [
+ 'title' => '通过 HTTP 请求头传递客户端会话标识,函数计算基于该标识进行哈希计算,确保相同标识的请求被路由到同一个实例。',
+ 'description' => '通过 HTTP 请求头传递客户端会话标识,函数计算基于该标识进行哈希计算,确保相同标识的请求被路由到同一个实例。',
'type' => 'object',
- 'properties' => [],
+ 'properties' => [
+ 'sessionIdleTimeoutInSeconds' => ['title' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。', 'description' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。', 'type' => 'integer', 'format' => 'int64', 'example' => '1800'],
+ 'sessionTTLInSeconds' => ['title' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。', 'description' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。', 'type' => 'integer', 'format' => 'int64', 'example' => '21600'],
+ 'sessionConcurrencyPerInstance' => ['title' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。', 'description' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
+ 'affinityHeaderFieldName' => ['title' => '通过 HTTP 请求头传递客户端会话标识,不能以 x-fc- 前缀开头,以字母开头,非首字符可包含数字、中划线、下划线、字母,长度大于等于5个字符并且不超过40个字符。', 'description' => '通过 HTTP 请求头传递客户端会话标识,不能以 x-fc- 前缀开头,以字母开头,非首字符可包含数字、中划线、下划线、字母,长度大于等于5个字符并且不超过40个字符。', 'type' => 'string', 'required' => false, 'example' => 'test-session-header1'],
+ 'disableSessionIdReuse' => ['title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'type' => 'boolean', 'example' => 'false'],
+ ],
],
'HTTPTrigger' => [
'title' => 'HTTP 触发器配置',
'description' => 'HTTP 触发器配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'urlInternet' => [
- 'title' => '公网域名地址。在互联网可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。',
- 'description' => '公网域名地址。在互联网可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run',
- ],
- 'urlIntranet' => [
- 'title' => '私网域名地址。在VPC可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。',
- 'description' => '私网域名地址。在VPC可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run',
- ],
+ 'urlInternet' => ['title' => '公网域名地址。在互联网可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => '公网域名地址。在互联网可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', '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' => '私网域名地址。在VPC可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run', 'backendName' => 'urlIntranet'],
],
],
'HTTPTriggerConfig' => [
@@ -2472,104 +1048,36 @@
'description' => 'HTTP 触发器配置',
'type' => 'object',
'properties' => [
- 'authConfig' => [
- 'title' => '鉴权配置',
- 'description' => '鉴权配置',
- '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' => '认证类型,包含如下两种类型:'."\n"
- ."\n"
- .'- **function**:表示需要认证。'."\n"
- ."\n"
- .'- **anonymous**:表示不需要认证。'."\n"
- ."\n"
- .'> 默认类型为 **function**',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'anonymous',
- ],
- 'corsConfig' => [
- 'title' => 'CORS 配置',
- 'description' => 'CORS 配置',
- 'required' => false,
- '$ref' => '#/components/schemas/CORSConfig',
- ],
- 'disableURLInternet' => [
- 'title' => '禁用默认公网域名访问的开关。设置为true时,访问函数默认提供的公网URL地址会返回403错误。设置为false时,不会有任何影响。',
- 'description' => '禁用默认公网域名访问的开关。设置为true时,访问函数默认提供的公网URL地址会返回403错误。设置为false时,不会有任何影响。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'authConfig' => ['title' => '鉴权配置', 'description' => '鉴权配置', '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' => '认证类型,包含如下两种类型:'."\n"
+ ."\n"
+ .'- **function**:表示需要认证。'."\n"
+ ."\n"
+ .'- **anonymous**:表示不需要认证。'."\n"
+ ."\n"
+ .'> 默认类型为 **function**', 'type' => 'string', 'required' => false, 'example' => 'anonymous'],
+ 'corsConfig' => ['title' => 'CORS 配置', 'required' => false, '$ref' => '#/components/schemas/CORSConfig'],
+ 'disableURLInternet' => ['title' => '禁用默认公网域名访问的开关。设置为true时,访问函数默认提供的公网URL地址会返回403错误。设置为false时,不会有任何影响。', 'description' => '禁用默认公网域名访问的开关。设置为true时,访问函数默认提供的公网URL地址会返回403错误。设置为false时,不会有任何影响。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'methods' => [
'title' => '请求方法列表。允许同时支持多种方法。',
'description' => '请求方法列表。允许同时支持多种方法。',
'type' => 'array',
- 'items' => [
- 'description' => '请求方法名,包含如下枚举值:'."\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',
- ],
- 'required' => false,
- ],
- ],
- ],
- 'HeaderFieldSessionAffinityConfig' => [
- 'title' => '通过 HTTP 请求头传递客户端会话标识,函数计算基于该标识进行哈希计算,确保相同标识的请求被路由到同一个实例。',
- 'description' => '通过 HTTP 请求头传递客户端会话标识,函数计算基于该标识进行哈希计算,确保相同标识的请求被路由到同一个实例。',
- 'type' => 'object',
- 'properties' => [
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。',
- 'description' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- ],
- 'sessionTTLInSeconds' => [
- 'title' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。',
- 'description' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- ],
- 'sessionConcurrencyPerInstance' => [
- 'title' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。',
- 'description' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '20',
- ],
- 'affinityHeaderFieldName' => [
- 'title' => '通过 HTTP 请求头传递客户端会话标识,不能以 x-fc- 前缀开头,以字母开头,非首字符可包含数字、中划线、下划线、字母,长度大于等于5个字符并且不超过40个字符。',
- 'description' => '通过 HTTP 请求头传递客户端会话标识,不能以 x-fc- 前缀开头,以字母开头,非首字符可包含数字、中划线、下划线、字母,长度大于等于5个字符并且不超过40个字符。',
- 'type' => 'string',
+ 'items' => ['description' => '请求方法名,包含如下枚举值:'."\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'],
'required' => false,
- 'example' => 'test-session-header1',
- ],
- 'disableSessionIdReuse' => [
- 'title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'type' => 'boolean',
- 'example' => 'false',
],
],
],
@@ -2578,61 +1086,13 @@
'description' => '函数代码配置。可以使用两种方式提供代码包:'."\n"
.'1. 直接将代码包的内容包含在请求中,此时zipFile必须设置。'."\n"
.'2. 将代码包上传到OSS,在请求中包含OSS文件的地址,此时ossBucketName和ossObjectName必须设置。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'checksum' => [
- 'title' => '函数代码包的CRC-64值。',
- 'description' => '函数代码包的CRC-64值。如果提供了checksum,则函数计算会校验代码包的checksum是否和提供的一致。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2825179536350****',
- ],
- 'ossBucketName' => [
- 'title' => '存放函数代码ZIP包的OSS Bucket名称。',
- 'description' => '用户存放函数代码ZIP包的OSS Bucket名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo-bucket',
- 'maxLength' => 63,
- 'minLength' => 3,
- ],
- 'ossObjectName' => [
- 'title' => '存放函数代码ZIP包的OSS Object名称。',
- 'description' => '用户存放函数代码ZIP包的OSS Object名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo-object',
- ],
- 'zipFile' => [
- 'title' => '函数代码ZIP包的Base 64编码。',
- 'description' => '函数代码ZIP包的Base 64编码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'UEsDBAoAAAAAANF',
- ],
- ],
- ],
- 'InstanceEventItem' => [
- 'type' => 'object',
- 'properties' => [
- 'level' => [
- 'type' => 'string',
- ],
- 'children' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/InstanceEventItem',
- ],
- ],
- 'time' => [
- 'type' => 'string',
- ],
- 'message' => [
- 'type' => 'string',
- ],
- 'type' => [
- 'type' => 'string',
- ],
+ 'checksum' => ['title' => '函数代码包的CRC-64值。', 'description' => '函数代码包的CRC-64值。如果提供了checksum,则函数计算会校验代码包的checksum是否和提供的一致。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2825179536350****', 'backendName' => 'checksum'],
+ 'ossBucketName' => ['title' => '存放函数代码ZIP包的OSS Bucket名称。', 'description' => '用户存放函数代码ZIP包的OSS Bucket名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'demo-bucket', 'maxLength' => 63, 'minLength' => 3, 'backendName' => 'ossBucketName'],
+ 'ossObjectName' => ['title' => '存放函数代码ZIP包的OSS Object名称。', 'description' => '用户存放函数代码ZIP包的OSS Object名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'demo-object', 'backendName' => 'ossObjectName'],
+ 'zipFile' => ['title' => '函数代码ZIP包的Base 64编码。', 'description' => '函数代码ZIP包的Base 64编码。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'UEsDBAoAAAAAANF', 'backendName' => 'zipFile'],
],
],
'InstanceInfo' => [
@@ -2640,35 +1100,13 @@
'description' => '函数实例信息。',
'type' => 'object',
'properties' => [
- 'instanceId' => [
- 'title' => '实例ID。',
- 'description' => '实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1ef6b6ff-7f7b-485e-ab49-501ac681****',
- ],
- 'versionId' => [
- 'description' => '实例所属函数的版本。如果是LATEST别名下的函数实例,则返回版本号为0。',
- 'type' => 'string',
- 'example' => '0',
- ],
- 'qualifier' => [
- 'type' => 'string',
- ],
- 'status' => [
- 'type' => 'string',
- ],
- 'createdTimeMs' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'destroyedTimeMs' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'resourceType' => [
- 'type' => 'string',
- ],
+ 'instanceId' => ['title' => '实例ID。', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => '1ef6b6ff-7f7b-485e-ab49-501ac681****'],
+ 'versionId' => ['description' => '实例所属函数的版本。如果是LATEST别名下的函数实例,则返回版本号为0。', 'type' => 'string', 'example' => '0'],
+ 'qualifier' => ['type' => 'string', 'description' => ''],
+ 'status' => ['type' => 'string', 'description' => ''],
+ 'createdTimeMs' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
+ 'destroyedTimeMs' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
+ 'resourceType' => ['type' => 'string'],
],
],
'InstanceLifecycleConfig' => [
@@ -2676,470 +1114,292 @@
'description' => '实例生命周期回调方法配置',
'type' => 'object',
'properties' => [
- 'initializer' => [
- 'title' => 'Initializer 回调方法配置',
- 'description' => 'Initializer回调方法配置',
- 'required' => false,
- '$ref' => '#/components/schemas/LifecycleHook',
- ],
- 'preStop' => [
- 'title' => 'PreStop 回调方法配置',
- 'description' => 'PreStop回调方法配置',
- 'required' => false,
- '$ref' => '#/components/schemas/LifecycleHook',
- ],
+ 'initializer' => ['title' => 'Initializer 回调方法配置', 'description' => 'Initializer回调方法配置', 'required' => false, '$ref' => '#/components/schemas/LifecycleHook'],
+ 'preStop' => ['title' => 'PreStop 回调方法配置', 'description' => 'PreStop回调方法配置', 'required' => false, '$ref' => '#/components/schemas/LifecycleHook'],
],
],
'JobConfig' => [
'title' => 'SLS 触发器任务配置',
'description' => 'SLS 触发器任务配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'maxRetryTime' => [
- 'title' => '最大重试次数。取值范围为0~100。日志服务根据触发间隔每次触发函数执行时,如果遇到错误(例如权限不足、网络失败、函数执行异常返回等),该参数定义本次触发所允许的最大重试次数。对于本次触发,如果超过最大重试次数仍无法成功的,需要等到下一次触发间隔到来时,由日志服务再次触发函数执行。',
- 'description' => '最大重试次数。取值范围为0~100。日志服务根据触发间隔每次触发函数执行时,如果遇到错误(例如权限不足、网络失败、函数执行异常返回等),该参数定义本次触发所允许的最大重试次数。对于本次触发,如果超过最大重试次数仍无法成功的,需要等到下一次触发间隔到来时,由日志服务再次触发函数执行。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '3',
+ 'maxRetryTime' => ['title' => '最大重试次数。取值范围为0~100。日志服务根据触发间隔每次触发函数执行时,如果遇到错误(例如权限不足、网络失败、函数执行异常返回等),该参数定义本次触发所允许的最大重试次数。对于本次触发,如果超过最大重试次数仍无法成功的,需要等到下一次触发间隔到来时,由日志服务再次触发函数执行。', 'description' => '最大重试次数。取值范围为0~100。日志服务根据触发间隔每次触发函数执行时,如果遇到错误(例如权限不足、网络失败、函数执行异常返回等),该参数定义本次触发所允许的最大重试次数。对于本次触发,如果超过最大重试次数仍无法成功的,需要等到下一次触发间隔到来时,由日志服务再次触发函数执行。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'backendName' => 'maxRetryTime'],
+ 'triggerInterval' => ['title' => '日志服务触发函数运行的间隔。比如每隔120秒将logstore在最近120秒内的数据取出到函数服务,以执行自定义计算。', 'description' => '日志服务触发函数运行的间隔。比如每隔120秒将logstore在最近120秒内的数据取出到函数服务,以执行自定义计算。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', 'backendName' => 'triggerInterval'],
+ ],
+ ],
+ 'JuiceFsConfig' => [
+ 'title' => 'JuiceFs 配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'mountPoints' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/JuiceFsMountConfig'],
],
- 'triggerInterval' => [
- 'title' => '日志服务触发函数运行的间隔。比如每隔120秒将logstore在最近120秒内的数据取出到函数服务,以执行自定义计算。',
- 'description' => '日志服务触发函数运行的间隔。比如每隔120秒将logstore在最近120秒内的数据取出到函数服务,以执行自定义计算。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '60',
+ 'envs' => [
+ 'title' => '自定义环境变量',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string'],
+ ],
+ ],
+ ],
+ 'JuiceFsMountConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'volumeName' => ['title' => 'JuiceFs 名称', 'type' => 'string'],
+ 'mountDir' => ['title' => '挂载到函数上的目录', 'type' => 'string'],
+ 'remoteDir' => ['title' => 'JuiceFs 远端目录', 'type' => 'string'],
+ 'token' => ['title' => 'token 信息', 'type' => 'string'],
+ 'args' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
],
],
'Key' => [
'title' => 'OSS 触发器过滤规则描述',
'description' => 'OSS 触发器过滤规则描述',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'prefix' => [
- 'title' => '限定事件相关的资源名称,只关注以Prefix作为前缀的资源相关的事件,例如Prefix是“serverless_",则只有以"serverless_"开始的资源相关的事件才能触发当前函数。',
- 'description' => '限定事件相关的资源名称,只关注以Prefix作为前缀的资源相关的事件,例如Prefix是“serverless_",则只有以"serverless_"开始的资源相关的事件才能触发当前函数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'serverless_',
- ],
- 'suffix' => [
- 'title' => '限定事件相关的资源名称,只关注以Suffix作为后缀的资源相关的事件,例如Suffix是“.zip",则只有以".zip"为后缀的资源相关的事件才能触发当前函数。',
- 'description' => '限定事件相关的资源名称,只关注以Suffix作为后缀的资源相关的事件,例如Suffix是“.zip",则只有以".zip"为后缀的资源相关的事件才能触发当前函数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '.zip',
- ],
+ 'prefix' => ['title' => '限定事件相关的资源名称,只关注以Prefix作为前缀的资源相关的事件,例如Prefix是“serverless_",则只有以"serverless_"开始的资源相关的事件才能触发当前函数。', 'description' => '限定事件相关的资源名称,只关注以Prefix作为前缀的资源相关的事件,例如Prefix是“serverless_",则只有以"serverless_"开始的资源相关的事件才能触发当前函数。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'serverless_', 'backendName' => 'prefix'],
+ 'suffix' => ['title' => '限定事件相关的资源名称,只关注以Suffix作为后缀的资源相关的事件,例如Suffix是“.zip",则只有以".zip"为后缀的资源相关的事件才能触发当前函数。', 'description' => '限定事件相关的资源名称,只关注以Suffix作为后缀的资源相关的事件,例如Suffix是“.zip",则只有以".zip"为后缀的资源相关的事件才能触发当前函数。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '.zip', 'backendName' => 'suffix'],
],
],
'Layer' => [
'title' => '层的详细信息',
'description' => '层的详细信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'acl' => [
- 'title' => '层的权限。取值0代表私有,取值1代表公有。官方公共层默认为公有,自定义层可以设置为私有或者公有。',
- 'description' => '层的权限。取值0代表私有,取值1代表公有。官方公共层默认为公有,自定义层可以设置为私有或者公有。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
- 'code' => [
- 'title' => '层的代码包信息',
- 'description' => '层的代码包信息',
- 'required' => false,
- '$ref' => '#/components/schemas/OutputCodeLocation',
- ],
- 'codeChecksum' => [
- 'title' => '层代码包的crc64校验码,根据ECMA-182标准计算得出。',
- 'description' => '层代码包的crc64校验码,根据ECMA-182标准计算得出。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2825179536350****',
- ],
- 'codeSize' => [
- 'title' => '层的代码包大小,单位为Byte。',
- 'description' => '层的代码包大小,单位为Byte。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '421',
- ],
+ 'acl' => ['title' => '层的权限。取值0代表私有,取值1代表公有。官方公共层默认为公有,自定义层可以设置为私有或者公有。', 'description' => '层的权限。取值0代表私有,取值1代表公有。官方公共层默认为公有,自定义层可以设置为私有或者公有。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '0', 'backendName' => 'acl'],
+ 'code' => ['title' => '层的代码包信息', 'description' => '层的代码包信息', 'visibility' => 'Public', 'required' => false, 'backendName' => 'code', '$ref' => '#/components/schemas/OutputCodeLocation'],
+ 'codeChecksum' => ['title' => '层代码包的crc64校验码,根据ECMA-182标准计算得出。', 'description' => '层代码包的crc64校验码,根据ECMA-182标准计算得出。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2825179536350****', 'backendName' => 'codeChecksum'],
+ 'codeSize' => ['title' => '层的代码包大小,单位为Byte。', 'description' => '层的代码包大小,单位为Byte。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '421', 'backendName' => 'codeSize'],
'compatibleRuntime' => [
'title' => '层支持的运行时环境列表。',
'description' => '层支持的运行时环境列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '运行时。',
- 'type' => 'string',
- 'example' => 'python3.10',
- ],
- 'required' => false,
- ],
- 'createTime' => [
- 'title' => '层版本的创建时间。',
- 'description' => '层版本的创建时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-30T11:08:00Z',
- ],
- 'description' => [
- 'title' => '版本的描述信息。',
- 'description' => '版本的描述信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'My first layer',
- 'maxLength' => 256,
- ],
- 'layerName' => [
- 'title' => '层的名称。',
- 'description' => '层的名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'MyLayer',
- 'maxLength' => 128,
- 'minLength' => 1,
- ],
- 'layerVersionArn' => [
- 'title' => '层版本资源的名称,格式为 acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}.',
- 'description' => '层版本资源的名称,格式为 acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}.',
- 'type' => 'string',
+ 'items' => ['description' => '运行时。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'python3.10', 'extendType' => 'true'],
'required' => false,
- 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1',
- ],
- 'license' => [
- 'title' => '许可协议。',
- 'description' => '许可协议。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Apache',
- ],
- 'version' => [
- 'title' => '层的版本。',
- 'description' => '层的版本。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
+ 'backendName' => 'compatibleRuntime',
],
+ 'createTime' => ['title' => '层版本的创建时间。', 'description' => '层版本的创建时间。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2023-03-30T11:08:00Z', 'backendName' => 'createTime'],
+ 'description' => ['title' => '版本的描述信息。', 'description' => '版本的描述信息。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'My first layer', 'maxLength' => 256, 'backendName' => 'description'],
+ 'layerName' => ['title' => '层的名称。', 'description' => '层的名称。', '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' => '层版本资源的名称,格式为 acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}.', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1', 'backendName' => 'layerVersionArn'],
+ 'license' => ['title' => '许可协议。', 'description' => '许可协议。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Apache', 'backendName' => 'license'],
+ 'version' => ['title' => '层的版本。', 'description' => '层的版本。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'backendName' => 'version'],
],
],
'LifecycleHook' => [
'title' => '实例生命周期回调方法配置',
'description' => '实例生命周期回调方法配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'handler' => [
- 'title' => '回调方法的执行入口,含义与请求处理程序类似。',
- 'description' => '回调方法的执行入口,含义与请求处理程序类似。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index.initializer',
- 'maxLength' => 128,
- ],
- 'timeout' => [
- 'title' => '回调方法的超时时间,单位为秒。',
- 'description' => '回调方法的超时时间,单位为秒。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'handler' => ['title' => '回调方法的执行入口,含义与请求处理程序类似。', 'description' => '回调方法的执行入口,含义与请求处理程序类似。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'index.initializer', 'maxLength' => 128, 'backendName' => 'handler'],
+ 'timeout' => ['title' => '回调方法的超时时间,单位为秒。', 'description' => '回调方法的超时时间,单位为秒。', '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' => '生命周期初始化阶段回调指令',
- 'type' => 'string',
- 'example' => 'curl -X POST \'http://localhost:9000/preWarm',
- ],
+ 'items' => ['title' => '生命周期初始化阶段回调指令', 'description' => '生命周期初始化阶段回调指令', 'visibility' => 'Public', 'type' => 'string', 'example' => 'curl -X POST \'http://localhost:9000/preWarm', 'extendType' => 'true'],
+ 'backendName' => 'command',
],
],
],
'ListAliasesOutput' => [
'title' => '函数别名列表',
'description' => '函数别名列表',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'aliases' => [
'title' => '别名列表',
'description' => '别名列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '别名信息',
- '$ref' => '#/components/schemas/Alias',
- ],
- 'required' => false,
- ],
- 'nextToken' => [
- 'title' => '下一个版本名',
- 'description' => '下一个版本名',
- 'type' => 'string',
+ 'items' => ['description' => '别名信息', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Alias'],
'required' => false,
- 'example' => 'test',
+ 'backendName' => 'aliases',
],
+ 'nextToken' => ['title' => '下一个版本名', 'description' => '下一个版本名', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'test', 'backendName' => 'nextToken'],
],
],
'ListAsyncInvokeConfigOutput' => [
'title' => '获取函数异步配置列表的响应信息',
'description' => '获取函数异步配置列表的响应信息。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'configs' => [
'title' => '异步调用配置列表',
'description' => '异步调用配置列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '异步调用配置。',
- '$ref' => '#/components/schemas/AsyncConfig',
- ],
- 'required' => false,
- ],
- 'nextToken' => [
- 'title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。',
- 'description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。',
- 'type' => 'string',
+ 'items' => ['description' => '异步调用配置。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/AsyncConfig'],
'required' => false,
- 'example' => '8bj81uI8n****',
+ 'backendName' => 'configs',
],
+ 'nextToken' => ['title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '8bj81uI8n****', 'backendName' => 'nextToken'],
],
],
'ListAsyncTaskOutput' => [
'title' => '列举异步任务信息响应内容',
'description' => '列举异步任务信息响应内容。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结',
- 'description' => '分页标记,用来返回更多结果。如果这个值没有返回,则说明没有更多结果。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM='."\n",
- ],
+ 'nextToken' => ['title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结', 'description' => '分页标记,用来返回更多结果。如果这个值没有返回,则说明没有更多结果。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='."\n", 'backendName' => 'nextToken'],
'tasks' => [
'title' => '异步任务信息列表',
'description' => '异步任务信息列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '异步任务信息。',
- '$ref' => '#/components/schemas/AsyncTask',
- ],
+ 'items' => ['description' => '异步任务信息。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/AsyncTask'],
'required' => false,
+ 'backendName' => 'tasks',
],
],
],
'ListConcurrencyConfigsOutput' => [
'title' => '获取函数的并发配置列表信息',
'description' => '获取函数的并发配置列表信息。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'configs' => [
'title' => '并发配置列表',
'description' => '并发配置列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '并发配置。',
- '$ref' => '#/components/schemas/ConcurrencyConfig',
- ],
+ 'items' => ['description' => '并发配置。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/ConcurrencyConfig'],
'required' => false,
+ 'backendName' => 'configs',
],
- 'nextToken' => [
- 'title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。',
- 'description' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- ],
+ 'nextToken' => ['title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'description' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'nextToken'],
],
],
'ListCustomDomainOutput' => [
'title' => '获取自定义域名列表的响应信息',
'description' => '获取自定义域名列表的响应信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'customDomains' => [
'title' => '自定义域名列表',
'description' => '自定义域名列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '自定义域名。',
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'items' => ['description' => '自定义域名。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/CustomDomain'],
'required' => false,
+ 'backendName' => 'customDomains',
],
- 'nextToken' => [
- 'title' => '当符合查询条件的数据未读取完时,服务端会返回nextToken,此时可以使用nextToken继续读取后面的数据。第一次查询不需要提供这个参数。',
- 'description' => '当符合查询条件的数据未读取完时,服务端会返回nextToken,此时可以使用nextToken继续读取后面的数据。第一次查询不需要提供这个参数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_domain_name',
- ],
- ],
- ],
- 'ListElasticConfigsOutput' => [
- 'type' => 'object',
- 'properties' => [
- 'nextToken' => [
- 'type' => 'string',
- ],
- 'elasticConfigs' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ElasticConfigStatus',
- ],
- ],
+ 'nextToken' => ['title' => '当符合查询条件的数据未读取完时,服务端会返回nextToken,此时可以使用nextToken继续读取后面的数据。第一次查询不需要提供这个参数。', 'description' => '当符合查询条件的数据未读取完时,服务端会返回nextToken,此时可以使用nextToken继续读取后面的数据。第一次查询不需要提供这个参数。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_domain_name', 'backendName' => 'nextToken'],
],
],
'ListFunctionsOutput' => [
'title' => '获取函数列表响应信息',
'description' => '获取函数列表响应信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'functions' => [
'title' => '函数信息列表',
'description' => '函数信息列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '函数信息',
- '$ref' => '#/components/schemas/Function',
- ],
- 'required' => false,
- ],
- 'nextToken' => [
- 'title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。',
- 'description' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。',
- 'type' => 'string',
+ 'items' => ['description' => '函数信息', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Function'],
'required' => false,
- 'example' => 'next_function_name',
+ 'backendName' => 'functions',
],
+ 'nextToken' => ['title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'description' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_function_name', 'backendName' => 'nextToken'],
],
],
'ListInstancesOutput' => [
'title' => '查询返回的实例信息列表',
'description' => '查询返回的实例信息列表',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'instances' => [
'title' => '实例列表信息',
'description' => '实例列表信息',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '实例信息',
- '$ref' => '#/components/schemas/InstanceInfo',
- ],
+ 'items' => ['description' => '实例信息', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/InstanceInfo'],
'required' => false,
+ 'backendName' => 'instances',
],
- 'requestId' => [
- 'type' => 'string',
- ],
+ 'requestId' => ['visibility' => 'Public', 'type' => 'string', 'backendName' => 'requestId'],
],
],
- 'ListLayerVersionOutput' => [
- 'title' => '获取指定层的版本列表',
- 'description' => '获取指定层的版本列表。',
+ 'ListLayersOutput' => [
+ 'title' => '获取层列表',
+ 'description' => '获取层列表',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'layers' => [
- 'title' => '层版本的列表。',
- 'description' => '层版本的列表。',
+ 'title' => '层的列表。',
+ 'description' => '层的列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '层版本。',
- '$ref' => '#/components/schemas/Layer',
- ],
- 'required' => false,
- ],
- 'nextVersion' => [
- 'title' => '剩余列表的起始版本名,用来返回更多结果。',
- 'description' => '剩余列表的起始版本名,用来返回更多结果。',
- 'type' => 'integer',
- 'format' => 'int32',
+ 'items' => ['description' => '层信息。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Layer'],
'required' => false,
- 'example' => '10',
+ 'backendName' => 'layers',
],
+ 'nextToken' => ['title' => '剩余列表的起始层名,用来返回更多结果。', 'description' => '剩余列表的起始层名,用来返回更多结果。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next-layer-name', 'backendName' => 'nextToken'],
],
],
- 'ListLayersOutput' => [
- 'title' => '获取层列表',
- 'description' => '获取层列表',
+ 'ListLayerVersionOutput' => [
+ 'title' => '获取指定层的版本列表',
+ 'description' => '获取指定层的版本列表。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'layers' => [
- 'title' => '层的列表。',
- 'description' => '层的列表。',
+ 'title' => '层版本的列表。',
+ 'description' => '层版本的列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '层信息。',
- '$ref' => '#/components/schemas/Layer',
- ],
- 'required' => false,
- ],
- 'nextToken' => [
- 'title' => '剩余列表的起始层名,用来返回更多结果。',
- 'description' => '剩余列表的起始层名,用来返回更多结果。',
- 'type' => 'string',
+ 'items' => ['description' => '层版本。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Layer'],
'required' => false,
- 'example' => 'next-layer-name',
+ 'backendName' => 'layers',
],
+ 'nextVersion' => ['title' => '剩余列表的起始版本名,用来返回更多结果。', 'description' => '剩余列表的起始版本名,用来返回更多结果。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'backendName' => 'nextVersion'],
],
],
'ListProvisionConfigsOutput' => [
'title' => '获取函数预留配置信息',
'description' => '获取函数预留配置信息。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'title' => '下次查询的起始Token。如果这个值没有返回,则说明没有更多结果。',
- 'description' => '下次查询的起始Token。如果这个值没有返回,则说明没有更多结果。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- ],
+ 'nextToken' => ['title' => '下次查询的起始Token。如果这个值没有返回,则说明没有更多结果。', 'description' => '下次查询的起始Token。如果这个值没有返回,则说明没有更多结果。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'nextToken'],
'provisionConfigs' => [
'title' => '函数预留配置',
'description' => '函数预留配置列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '预留配置。',
- '$ref' => '#/components/schemas/ProvisionConfig',
- ],
+ 'items' => ['description' => '预留配置。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/ProvisionConfig'],
'required' => false,
+ 'backendName' => 'provisionConfigs',
],
],
],
- 'ListResidentResourcePoolsOutput' => [
- 'type' => 'object',
- 'properties' => [
- 'nextToken' => [
- 'type' => 'string',
- ],
- 'residentResourcePools' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ResidentResourcePool',
- ],
- ],
- ],
- ],
- 'ListScalingConfigStatusOutput' => [
- 'type' => 'object',
- 'properties' => [],
- ],
'ListScalingConfigsOutput' => [
+ 'description' => '弹性配置列表',
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'type' => 'string',
- ],
+ 'nextToken' => ['description' => '下一次请求的分页token。', 'type' => 'string', 'example' => 'next_token'],
'scalingConfigs' => [
+ 'description' => '函数弹性配置信息',
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ScalingConfigStatus',
- ],
+ 'items' => ['description' => '函数弹性配置信息', '$ref' => '#/components/schemas/ScalingConfigStatus'],
],
],
],
@@ -3148,149 +1408,113 @@
'description' => '函数会话列表',
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'title' => '下一次查询会话列表的起始位置。',
- 'description' => '下一次查询会话列表的起始位置。',
- 'type' => 'string',
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'nextToken' => ['title' => '下一次查询会话列表的起始位置。', 'description' => '下一次查询会话列表的起始位置。', 'type' => 'string', 'example' => 'MTIzNCNhYmM='],
'sessions' => [
'title' => '会话列表信息',
'description' => '会话列表信息',
'type' => 'array',
- 'items' => [
- 'title' => '函数会话列表',
- 'description' => '函数会话列表',
- '$ref' => '#/components/schemas/Session',
- ],
+ 'items' => ['title' => '函数会话列表', 'description' => '函数会话列表', '$ref' => '#/components/schemas/Session'],
+ ],
+ ],
+ ],
+ 'ListTaggedResourcesOutput' => [
+ 'title' => '具有指定标签的资源列表',
+ 'description' => '具有指定标签的资源列表',
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'nextToken' => ['title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'nextToken'],
+ 'resources' => [
+ 'title' => '被打标签的资源列表。',
+ 'description' => '被打标签的资源列表。',
+ 'visibility' => 'Public',
+ 'type' => 'array',
+ 'items' => ['description' => '资源信息。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Resource'],
+ 'required' => false,
+ 'backendName' => 'resources',
],
],
],
'ListTagResourcesOutput' => [
'title' => '查询绑定指定标签的资源信息',
'description' => '查询绑定指定标签的资源信息。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'NextToken' => [
- 'title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。',
- 'description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- ],
- 'RequestId' => [
- 'title' => 'TODO',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'xxx',
- ],
+ 'NextToken' => ['title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'NextToken'],
+ 'RequestId' => ['title' => 'TODO', 'description' => '请求ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'xxx', 'backendName' => 'RequestId'],
'TagResources' => [
'title' => '被打标签的资源列表。',
'description' => '查询到的资源和标签的信息。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '资源和标签的信息,包含了资源ID、资源类型和标签键值等信息。',
- '$ref' => '#/components/schemas/TagResource',
- ],
+ 'items' => ['description' => '资源和标签的信息,包含了资源ID、资源类型和标签键值等信息。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/TagResource'],
'required' => false,
+ 'backendName' => 'TagResources',
],
],
],
- 'ListTaggedResourcesOutput' => [
- 'title' => '具有指定标签的资源列表',
- 'description' => '具有指定标签的资源列表',
+ 'ListTimedResidentResourcePoolApplicationsOutput' => [
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。',
- 'description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- ],
- 'resources' => [
- 'title' => '被打标签的资源列表。',
- 'description' => '被打标签的资源列表。',
+ 'nextToken' => ['type' => 'string'],
+ 'applications' => [
'type' => 'array',
- 'items' => [
- 'description' => '资源信息。',
- '$ref' => '#/components/schemas/Resource',
- ],
- 'required' => false,
+ 'items' => ['$ref' => '#/components/schemas/TimedResidentResourcePoolApplication'],
],
],
],
'ListTriggersOutput' => [
'title' => '获取触发器列表的响应结构体',
'description' => '获取触发器列表的响应结构体。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'nextToken' => [
- 'title' => '下一个触发器的名称。用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。',
- 'description' => '下一个触发器的名称。用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'next_token',
- ],
+ 'nextToken' => ['title' => '下一个触发器的名称。用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'description' => '下一个触发器的名称。用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'next_token', 'backendName' => 'nextToken'],
'triggers' => [
'title' => '触发器列表',
'description' => '触发器列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '触发器信息。',
- '$ref' => '#/components/schemas/Trigger',
- ],
+ 'items' => ['description' => '触发器信息。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Trigger'],
'required' => false,
+ 'backendName' => 'triggers',
],
],
],
'ListVersionsOutput' => [
'title' => '列出版本的请求参数',
'description' => '列出版本的请求参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'direction' => [
- 'title' => '版本排序方式',
- 'description' => '版本排序方式',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'FORWARD',
- ],
- 'nextToken' => [
- 'title' => '下一个版本ID',
- 'description' => '下一个版本ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => '3',
- ],
+ 'direction' => ['title' => '版本排序方式', 'description' => '版本排序方式', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'FORWARD', 'backendName' => 'direction'],
+ 'nextToken' => ['title' => '下一个版本ID', 'description' => '下一个版本ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '3', 'backendName' => 'nextToken'],
'versions' => [
'title' => '版本ID列表',
'description' => '版本ID列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '版本信息',
- '$ref' => '#/components/schemas/Version',
- ],
+ 'items' => ['description' => '版本信息', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Version'],
'required' => false,
+ 'backendName' => 'versions',
],
],
],
'ListVpcBindingsOutput' => [
'title' => '列出服务/函数下的全部 vpc binding 的请求参数',
'description' => '列出服务/函数下的全部VPC绑定的请求参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'vpcIds' => [
'title' => 'VPC实例ID列表',
'description' => 'VPC实例ID列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'VPC ID',
- 'type' => 'string',
- 'example' => 'vpc-8vb8x8dggvr0axxxxxxxx',
- ],
+ 'items' => ['description' => 'VPC ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'vpc-8vb8x8dggvr0axxxxxxxx', 'extendType' => 'true'],
'required' => false,
+ 'backendName' => 'vpcIds',
],
],
],
@@ -3299,765 +1523,336 @@
'description' => '函数日志配置',
'type' => 'object',
'properties' => [
- 'enableInstanceMetrics' => [
- 'title' => '是否开启实例级别指标。开启该功能后,您可以查看实例级别的CPU使用情况、内存使用情况、实例网络情况和实例内请求数等核心指标信息。false:默认值,表示关闭实例级别指标。true:表示开启实例级别指标。',
- 'description' => '是否开启实例级别指标。开启该功能后,您可以查看实例级别的CPU使用情况、内存使用情况、实例网络情况和实例内请求数等核心指标信息。false:默认值,表示关闭实例级别指标。true:表示开启实例级别指标。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'enableRequestMetrics' => [
- 'title' => '是否开启请求级别指标。开启该功能后,您可以查看该服务下所有函数的某次调用所消耗的时间及内存。false:表示关闭请求级别指标。true:默认值,表示开启请求级别指标。',
- 'description' => '是否开启请求级别指标。开启该功能后,您可以查看该服务下所有函数的某次调用所消耗的时间及内存。false:表示关闭请求级别指标。true:默认值,表示开启请求级别指标。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'logBeginRule' => [
- 'title' => '日志行首匹配规则',
- 'description' => '日志行首匹配规则',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DefaultRegex',
- ],
- 'logstore' => [
- 'title' => '日志服务的Logstore名称。',
- 'description' => '日志服务的Logstore名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-logstore',
- 'maxLength' => 63,
- ],
- 'project' => [
- 'title' => '日志服务的Project名称',
- 'description' => '日志服务的Project名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-project',
- 'maxLength' => 63,
- ],
- 'enableLlmMetrics' => [
- 'title' => '是否开启LLM指标。开启该功能后,您可以查看LLM指标信息,建议只对LLM推理服务开启。false:默认值,表示关闭LLM指标。true:表示开启LLM指标。',
- 'description' => '是否开启LLM指标。开启该功能后,您可以查看LLM指标信息,建议只对LLM推理服务开启。false:默认值,表示关闭LLM指标。true:表示开启LLM指标。',
- 'type' => 'boolean',
- 'default' => 'false',
- ],
- ],
- ],
- 'MCPSSESessionAffinityConfig' => [
- 'title' => '基于 MCP SSE 协议规范,函数计算确保客户端携带相同 Session ID 的请求始终路由到同一个实例。',
- 'description' => '基于 MCP SSE 协议规范,函数计算确保客户端携带相同 Session ID 的请求始终路由到同一个实例。',
- 'type' => 'object',
- 'properties' => [
- 'sseEndpointPath' => [
- 'title' => 'SSE 路径',
- 'description' => 'SSE 路径',
- 'type' => 'string',
- 'example' => '/sse',
- ],
- 'sessionConcurrencyPerInstance' => [
- 'title' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。',
- 'description' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '20',
- ],
+ 'enableInstanceMetrics' => ['title' => '是否开启实例级别指标。开启该功能后,您可以查看实例级别的CPU使用情况、内存使用情况、实例网络情况和实例内请求数等核心指标信息。false:默认值,表示关闭实例级别指标。true:表示开启实例级别指标。', 'description' => '是否开启实例级别指标。开启该功能后,您可以查看实例级别的CPU使用情况、内存使用情况、实例网络情况和实例内请求数等核心指标信息。false:默认值,表示关闭实例级别指标。true:表示开启实例级别指标。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'enableRequestMetrics' => ['title' => '是否开启请求级别指标。开启该功能后,您可以查看该服务下所有函数的某次调用所消耗的时间及内存。false:表示关闭请求级别指标。true:默认值,表示开启请求级别指标。', 'description' => '是否开启请求级别指标。开启该功能后,您可以查看该服务下所有函数的某次调用所消耗的时间及内存。false:表示关闭请求级别指标。true:默认值,表示开启请求级别指标。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'logBeginRule' => ['title' => '日志行首匹配规则', 'description' => '日志行首匹配规则', 'type' => 'string', 'required' => false, 'example' => 'DefaultRegex'],
+ 'logstore' => ['title' => '日志服务的Logstore名称。', 'description' => '日志服务的Logstore名称。', 'type' => 'string', 'required' => false, 'example' => 'test-logstore', 'maxLength' => 63],
+ 'project' => ['title' => '日志服务的Project名称', 'description' => '日志服务的Project名称', 'type' => 'string', 'required' => false, 'example' => 'test-project', 'maxLength' => 63],
+ 'enableLlmMetrics' => ['title' => '是否开启LLM指标。开启该功能后,您可以查看LLM指标信息,建议只对LLM推理服务开启。false:默认值,表示关闭LLM指标。true:表示开启LLM指标。', 'type' => 'boolean', 'default' => 'false'],
],
],
- 'MCPStreamableSessionAffinityConfig' => [
- 'title' => 'MCP Streamable 亲和性配置结构',
- 'description' => 'MCP Streamable 亲和性配置结构',
+ 'MicroSandboxConfig' => [
'type' => 'object',
'properties' => [
- 'sessionTTLInSeconds' => [
- 'title' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。',
- 'description' => '指从 Session 创建、使用到最终销毁的全过程。 超过生命周期,函数计算将会自动销毁Session, 不再保证亲和性,取值范围为[1, 21600]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- ],
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。',
- 'description' => '用户在一段时间内没有进行任何操作,导致会话进入空闲状态,最大时长为单个 Session 生命周期上限,取值范围为[0, 21600]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- ],
- 'sessionConcurrencyPerInstance' => [
- 'title' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。',
- 'description' => '单实例在同一个时间内能同时处理的最大 Session 数,取值范围为[1, 200]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '20',
- ],
+ 'osType' => ['type' => 'string'],
+ 'startCommand' => ['type' => 'string'],
+ 'readyCommand' => ['type' => 'string'],
],
],
'MNSTopicTriggerConfig' => [
'title' => 'MNS 主题触发器配置',
'description' => '轻量消息队列(原 MNS) 主题触发器配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'filterTag' => [
- 'title' => '过滤标签。只有收到包含了此处设置的过滤标签字符串的消息时,才会触发函数执行。',
- 'description' => '过滤标签。只有收到包含了此处设置的过滤标签字符串的消息时,才会触发函数执行。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'serverless',
- ],
- 'notifyContentFormat' => [
- 'title' => '触发事件的内容格式。有 JSON 与 STREAM 两种格式,默认为 STREAM',
- 'description' => '触发事件的内容格式,目前支持如下两种格式:'."\n"
- ."\n"
- .'- **JSON**'."\n"
- ."\n"
- .'- **STREAM**'."\n"
- ."\n"
- .'> 默认格式为 STREAM。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'JSON',
- ],
- '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' => '重试策略。'."\n"
- ."\n"
- .'- **BACKOFF_RETRY**:表示退避重试;重试3次,每次重试的间隔时间是10秒到20秒之间的随机值,默认值。'."\n"
- ."\n"
- .'- **EXPONENTIAL_DECAY_RETRY**:表示指数衰减重试;重试176次,每次重试的间隔时间指数递增至512秒,总计重试时间为1天。每次重试的具体间隔为:1,2,4,8,16,32,64,128,256,512,512...512(共167个512)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'BACKOFF_RETRY',
- ],
+ 'filterTag' => ['title' => '过滤标签。只有收到包含了此处设置的过滤标签字符串的消息时,才会触发函数执行。', 'description' => '过滤标签。只有收到包含了此处设置的过滤标签字符串的消息时,才会触发函数执行。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'serverless', 'backendName' => 'filterTag'],
+ 'notifyContentFormat' => ['title' => '触发事件的内容格式。有 JSON 与 STREAM 两种格式,默认为 STREAM', 'description' => '触发事件的内容格式,目前支持如下两种格式:'."\n"
+ ."\n"
+ .'- **JSON**'."\n"
+ ."\n"
+ .'- **STREAM**'."\n"
+ ."\n"
+ .'> 默认格式为 STREAM。', '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' => '重试策略。'."\n"
+ ."\n"
+ .'- **BACKOFF_RETRY**:表示退避重试;重试3次,每次重试的间隔时间是10秒到20秒之间的随机值,默认值。'."\n"
+ ."\n"
+ .'- **EXPONENTIAL_DECAY_RETRY**:表示指数衰减重试;重试176次,每次重试的间隔时间指数递增至512秒,总计重试时间为1天。每次重试的具体间隔为:1,2,4,8,16,32,64,128,256,512,512...512(共167个512)。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'BACKOFF_RETRY', 'backendName' => 'notifyStrategy'],
],
],
'NASConfig' => [
'title' => 'NAS配置',
'description' => 'NAS配置。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'groupId' => [
- 'title' => '群组ID。',
- 'description' => '群组ID。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- ],
+ 'groupId' => ['title' => '群组ID。', 'description' => '群组ID。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'backendName' => 'groupId'],
'mountPoints' => [
'title' => '挂载点列表。',
'description' => '挂载点列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '挂载点信息。',
- '$ref' => '#/components/schemas/NASMountConfig',
- ],
+ 'items' => ['description' => '挂载点信息。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/NASMountConfig'],
'required' => false,
'maxItems' => 5,
+ 'backendName' => 'mountPoints',
],
- 'userId' => [
- 'title' => '账号ID。',
- 'description' => '账号ID。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- ],
+ 'userId' => ['title' => '账号ID。', 'description' => '账号ID。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'backendName' => 'userId'],
],
],
'NASMountConfig' => [
'title' => 'NAS挂载点列表',
'description' => 'NAS挂载点列表',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'enableTLS' => [
- 'title' => '使用传输加密方式挂载。 说明:仅通用型NAS支持传输加密',
- 'description' => '使用传输加密方式挂载。 说明:仅通用型NAS支持传输加密',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'mountDir' => [
- 'title' => '本地挂载目录。',
- 'description' => '本地挂载目录。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/home/test',
- 'maxLength' => 64,
- ],
- 'serverAddr' => [
- 'title' => 'NAS服务器地址。',
- 'description' => 'NAS服务器地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '***-uni85.cn-hangzhou.nas.com:/',
- 'maxLength' => 128,
- ],
+ 'enableTLS' => ['title' => '使用传输加密方式挂载。 说明:仅通用型NAS支持传输加密', 'description' => '使用传输加密方式挂载。 说明:仅通用型NAS支持传输加密', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'enableTLS'],
+ 'mountDir' => ['title' => '本地挂载目录。', 'description' => '本地挂载目录。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '/home/test', 'maxLength' => 64, 'backendName' => 'mountDir'],
+ 'serverAddr' => ['title' => 'NAS服务器地址。', 'description' => 'NAS服务器地址。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '***-uni85.cn-hangzhou.nas.com:/', 'maxLength' => 128, 'backendName' => 'serverAddr'],
],
],
'OSSMountConfig' => [
'title' => 'OSS挂载配置',
'description' => 'OSS挂载配置。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'mountPoints' => [
'title' => 'OSS挂载点配置。',
'description' => 'OSS挂载点列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'OSS挂载点配置。',
- '$ref' => '#/components/schemas/OSSMountPoint',
- ],
+ 'items' => ['description' => 'OSS挂载点配置。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/OSSMountPoint'],
'required' => false,
'maxItems' => 5,
+ 'backendName' => 'mountPoints',
],
],
],
'OSSMountPoint' => [
'title' => 'OSS挂载点配置',
'description' => 'OSS挂载点配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'bucketName' => [
- 'title' => '挂载的OSS Bucket。',
- 'description' => '挂载的OSS Bucket。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-bucket',
- 'maxLength' => 64,
- 'minLength' => 3,
- ],
- 'bucketPath' => [
- 'title' => '挂载的OSS Bucket路径。',
- 'description' => '挂载的OSS Bucket路径。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/my-dir',
- 'maxLength' => 128,
- ],
- 'endpoint' => [
- 'title' => 'OSS访问地址。',
- 'description' => 'OSS访问地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://oss-cn-shanghai.aliyuncs.com',
- 'maxLength' => 128,
- ],
- 'mountDir' => [
- 'title' => '挂载目录。',
- 'description' => '挂载目录。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/mnt/dir',
- 'maxLength' => 64,
- 'minLength' => 2,
- ],
- 'readOnly' => [
- 'title' => '是否只读。',
- 'description' => '是否只读。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'bucketName' => ['title' => '挂载的OSS Bucket。', 'description' => '挂载的OSS Bucket。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my-bucket', 'maxLength' => 64, 'minLength' => 3, 'backendName' => 'bucketName'],
+ 'bucketPath' => ['title' => '挂载的OSS Bucket路径。', 'description' => '挂载的OSS Bucket路径。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '/my-dir', 'maxLength' => 128, 'backendName' => 'bucketPath'],
+ 'endpoint' => ['title' => 'OSS访问地址。', 'description' => 'OSS访问地址。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'http://oss-cn-shanghai.aliyuncs.com', 'maxLength' => 128, 'backendName' => 'endpoint'],
+ 'mountDir' => ['title' => '挂载目录。', 'description' => '挂载目录。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '/mnt/dir', 'maxLength' => 64, 'minLength' => 2, 'backendName' => 'mountDir'],
+ 'readOnly' => ['title' => '是否只读。', 'description' => '是否只读。', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'readOnly'],
],
],
'OSSTriggerConfig' => [
'title' => 'OSS 触发器配置',
'description' => 'OSS 触发器配置。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'events' => [
'title' => '事件列表,请填写OSS对象存储相关的事件。事件类型请参考:https://help.aliyun.com/zh/fc/overview-of-oss-event-triggers?spm=a2c4g.11186623.0.i174',
'description' => '事件列表,请填写OSS对象存储相关的事件。事件类型请参见[OSS 触发事件列表](~~2513613~~)。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '事件类型名称,支持事件类型名称中包含通配符号。具体事件类型,请参见 [OSS 触发事件列表](~~2513613~~)。',
- 'type' => 'string',
- 'example' => 'oss:ObjectCreated:*',
- ],
+ 'items' => ['description' => '事件类型名称,支持事件类型名称中包含通配符号。具体事件类型,请参见 [OSS 触发事件列表](~~2513613~~)。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'oss:ObjectCreated:*', 'extendType' => 'true'],
'required' => false,
+ 'backendName' => 'events',
],
- 'filter' => [
- 'title' => '事件过滤规则',
- 'description' => '事件过滤规则。',
- 'required' => false,
- '$ref' => '#/components/schemas/Filter',
- ],
+ 'filter' => ['title' => '事件过滤规则', 'description' => '事件过滤规则。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'filter', '$ref' => '#/components/schemas/Filter'],
],
],
'OutputCodeLocation' => [
'title' => '代码包配置',
'description' => '代码包配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'location' => [
- 'title' => '代码包的地址。',
- 'description' => '代码包的地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx',
- ],
- 'repositoryType' => [
- 'title' => '代码包的类型。',
- 'description' => '代码包的类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OSS',
- ],
+ 'location' => ['title' => '代码包的地址。', 'description' => '代码包的地址。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx', 'backendName' => 'location'],
+ 'repositoryType' => ['title' => '代码包的类型。', 'description' => '代码包的类型。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'OSS', 'backendName' => 'repositoryType'],
],
],
'OutputFuncCode' => [
'title' => '函数代码包信息',
'description' => '函数代码包信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'checksum' => [
- 'title' => '函数代码包的CRC64值。',
- 'description' => '函数代码包的CRC64值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1234567890',
- ],
- 'url' => [
- 'title' => '函数代码包的URL。',
- 'description' => '函数代码包的URL。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f',
- ],
+ 'checksum' => ['title' => '函数代码包的CRC64值。', 'description' => '函数代码包的CRC64值。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1234567890', 'backendName' => 'checksum'],
+ 'url' => ['title' => '函数代码包的URL。', 'description' => '函数代码包的URL。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f', 'backendName' => 'url'],
],
],
'PathConfig' => [
'title' => '自定义域名路由配置',
'description' => '自定义域名路由配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'functionName' => [
- 'title' => '函数名',
- 'description' => '函数名',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'myFunction',
- ],
+ 'functionName' => ['title' => '函数名', 'description' => '函数名', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'myFunction', 'backendName' => 'functionName'],
'methods' => [
'title' => '支持的方法',
'description' => '支持的方法',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => 'HTTP方法。支持的方法有:HEAD, GET, POST, PUT, DELETE, PATCH, OPTIONS。',
- 'type' => 'string',
- 'example' => 'GET',
- ],
- 'required' => false,
- ],
- 'path' => [
- 'title' => '路由匹配规则',
- 'description' => '路由匹配规则',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/api/*',
- 'maxLength' => 2048,
- ],
- 'qualifier' => [
- 'title' => '版本或者别名',
- 'description' => '版本或者别名',
- 'type' => 'string',
+ 'items' => ['description' => 'HTTP方法。支持的方法有:HEAD, GET, POST, PUT, DELETE, PATCH, OPTIONS。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'GET', 'extendType' => 'true'],
'required' => false,
- 'example' => 'myAlias',
- ],
- 'rewriteConfig' => [
- 'title' => '重写配置',
- 'description' => '重写配置',
- 'required' => false,
- '$ref' => '#/components/schemas/RewriteConfig',
+ 'backendName' => 'methods',
],
+ 'path' => ['title' => '路由匹配规则', 'description' => '路由匹配规则', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/api/*', 'maxLength' => 2048, 'backendName' => 'path'],
+ 'qualifier' => ['title' => '版本或者别名', 'description' => '版本或者别名', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'myAlias', 'backendName' => 'qualifier'],
+ 'rewriteConfig' => ['title' => '重写配置', 'description' => '重写配置', 'visibility' => 'Public', 'required' => false, 'backendName' => 'rewriteConfig', '$ref' => '#/components/schemas/RewriteConfig'],
],
],
'PolarFsConfig' => [
'type' => 'object',
'properties' => [
- 'groupId' => [
- 'description' => '群组ID。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'userId' => [
- 'description' => '账号ID。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
+ 'groupId' => ['description' => '群组ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'userId' => ['description' => '账号ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'mountPoints' => [
'description' => '挂载点列表。',
'type' => 'array',
- 'items' => [
- 'description' => '挂载点信息。',
- '$ref' => '#/components/schemas/PolarFsMountConfig',
- ],
+ 'items' => ['description' => '挂载点信息。', '$ref' => '#/components/schemas/PolarFsMountConfig'],
],
],
+ 'description' => '',
],
'PolarFsMountConfig' => [
'type' => 'object',
'properties' => [
- 'instanceId' => [
- 'type' => 'string',
- ],
- 'mountDir' => [
- 'type' => 'string',
- ],
- 'remoteDir' => [
- 'type' => 'string',
- ],
+ 'instanceId' => ['type' => 'string'],
+ 'mountDir' => ['type' => 'string'],
+ 'remoteDir' => ['type' => 'string'],
+ 'readOnly' => ['title' => '只读挂载', 'type' => 'boolean'],
],
],
'ProvisionConfig' => [
'title' => '函数预留配置',
'description' => '函数预留配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'scheduledActions' => [
'title' => '定时策略配置。',
'description' => '定时策略配置。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '定时策略。',
- '$ref' => '#/components/schemas/ScheduledAction',
- ],
- 'required' => false,
- ],
- 'currentError' => [
- 'title' => '预留实例创建失败时的错误信息。',
- 'description' => '预留实例创建失败时的错误信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'image not found',
- ],
- 'defaultTarget' => [
- 'title' => '所有指标追踪伸缩策略和定时策略失效时的默认资源个数。',
- 'description' => '所有指标追踪伸缩策略和定时策略失效时的默认资源个数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '5',
- ],
- 'current' => [
- 'title' => '实际资源个数。',
- 'description' => '实际资源个数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- ],
- 'alwaysAllocateCPU' => [
- 'title' => '是否始终分配CPU给函数实例。',
- 'description' => '是否始终分配CPU给函数实例。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'alwaysAllocateGPU' => [
- 'title' => '是否始终分配GPU给函数实例。',
- 'description' => '是否始终分配GPU给函数实例。',
- 'type' => 'boolean',
+ 'items' => ['description' => '定时策略。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/ScheduledAction'],
'required' => false,
- 'example' => 'true',
+ 'backendName' => 'scheduledActions',
],
+ 'currentError' => ['title' => '预留实例创建失败时的错误信息。', 'description' => '预留实例创建失败时的错误信息。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'image not found', 'backendName' => 'currentError'],
+ 'defaultTarget' => ['title' => '所有指标追踪伸缩策略和定时策略失效时的默认资源个数。', 'description' => '所有指标追踪伸缩策略和定时策略失效时的默认资源个数。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '5', 'backendName' => 'defaultTarget'],
+ 'current' => ['title' => '实际资源个数。', 'description' => '实际资源个数。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'backendName' => 'current'],
+ 'alwaysAllocateCPU' => ['title' => '是否始终分配CPU给函数实例。', 'description' => '是否始终分配CPU给函数实例。', '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' => '指标追踪伸缩策略配置。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '指标追踪策略。',
- '$ref' => '#/components/schemas/TargetTrackingPolicy',
- ],
+ 'items' => ['description' => '指标追踪策略。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/TargetTrackingPolicy'],
'required' => false,
+ 'backendName' => 'targetTrackingPolicies',
],
- 'functionArn' => [
- 'title' => '函数的资源描述',
- 'description' => '函数的资源描述',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:124:functions/myFunction/prod',
- ],
- 'target' => [
- 'title' => '当前目标资源个数,如果存在指标追踪伸缩策略或定时策略,为策略计算的资源个数,否则为默认预留实例数',
- 'description' => '当前目标资源个数,如果存在指标追踪伸缩策略或定时策略,为策略计算的资源个数,否则为默认预留实例数。'."\n"
- ."\n\n"
- .'> 与 defaultTarget 有什么区别?\\'."\n"
- .'> 假设配置预留实例数为1后,新增了定时伸缩策略,设置某个时间段内的预留实例数为5。'."\n"
- .'> - 在定时伸缩策略**生效期间**,target 与 defaultTarget 分别为 5 和 1。'."\n"
- .'>- 在定时伸缩策略**失效期间**,target 与 defaultTarget 都为 1。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '5',
- ],
+ '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' => '发布版本的请求参数',
'description' => '发布版本的请求参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '版本描述信息',
- 'description' => '版本描述信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my version',
- 'maxLength' => 256,
- ],
+ 'description' => ['title' => '版本描述信息', 'description' => '版本描述信息', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my version', 'maxLength' => 256, 'backendName' => 'description'],
],
],
'PutAsyncInvokeConfigInput' => [
'title' => '函数异步配置信息',
'description' => '函数异步配置信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'asyncTask' => [
- 'title' => '是否开启异步任务(非必填)',
- 'description' => '是否开启异步任务(非必填)',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'destinationConfig' => [
- 'title' => '异步调用目标的配置结构体(非必填)。',
- 'description' => '异步调用目标的配置结构体(非必填)。',
- 'required' => false,
- '$ref' => '#/components/schemas/DestinationConfig',
- ],
- 'maxAsyncEventAgeInSeconds' => [
- 'title' => '消息最大存活时长(非必填),取值范围[1,2592000]。单位:秒。',
- 'description' => '消息最大存活时长(非必填),取值范围[1,604800],默认为86400,单位为秒。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '300',
- ],
- 'maxAsyncRetryAttempts' => [
- 'title' => '异步调用失败后的最大重试次数,非必填。取值范围[0,8]。当您未进行配置时,系统内部默认重试次数为3。',
- 'description' => '异步调用失败后的最大重试次数,非必填。取值范围[0,8]。当您未进行配置时,系统内部默认重试次数为3。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '3',
- ],
+ 'asyncTask' => ['title' => '是否开启异步任务(非必填)', 'description' => '是否开启异步任务(非必填)', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'asyncTask'],
+ 'destinationConfig' => ['title' => '异步调用目标的配置结构体(非必填)。', 'description' => '异步调用目标的配置结构体(非必填)。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'destinationConfig', '$ref' => '#/components/schemas/DestinationConfig'],
+ 'maxAsyncEventAgeInSeconds' => ['title' => '消息最大存活时长(非必填),取值范围[1,2592000]。单位:秒。', 'description' => '消息最大存活时长(非必填),取值范围[1,604800],默认为86400,单位为秒。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '300', 'backendName' => 'maxAsyncEventAgeInSeconds'],
+ 'maxAsyncRetryAttempts' => ['title' => '异步调用失败后的最大重试次数,非必填。取值范围[0,8]。当您未进行配置时,系统内部默认重试次数为3。', 'description' => '异步调用失败后的最大重试次数,非必填。取值范围[0,8]。当您未进行配置时,系统内部默认重试次数为3。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3', 'backendName' => 'maxAsyncRetryAttempts'],
],
],
'PutConcurrencyInput' => [
'title' => '设置函数的并发配置',
'description' => '设置函数的并发配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'reservedConcurrency' => [
- 'title' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。',
- 'description' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '10',
- ],
- ],
- ],
- 'PutElasticConfigInput' => [
- 'type' => 'object',
- 'properties' => [
- 'minInstances' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'residentPoolId' => [
- 'type' => 'string',
- ],
- 'scheduledPolicies' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ScheduledPolicy',
- ],
- ],
- 'scalingPolicies' => [
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ScalingPolicy',
- ],
- ],
+ 'reservedConcurrency' => ['title' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。', 'description' => '预留并发,函数预留账号并发的一部份,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10', 'backendName' => 'reservedConcurrency'],
],
],
'PutProvisionConfigInput' => [
'title' => '申请或更新预留资源的配置',
'description' => '申请或更新预留资源的配置。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'scheduledActions' => [
'title' => '定时策略配置。',
'description' => '定时策略配置。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '定时策略。',
- '$ref' => '#/components/schemas/ScheduledAction',
- ],
- 'required' => false,
- ],
- 'defaultTarget' => [
- 'title' => '预留的默认目标资源个数,没有指标追踪伸缩策略或定时策略生效时使用,取值范围为[0,10000]。',
- 'description' => '默认最小实例数,取值范围为[0,10000]。'."\n"
- .'> - 未配置指标追踪弹性策略或定时弹性策略时,当前最小实例数等于您配置最小实例数。'."\n"
- .'> - 如果您配置了多条最小实例数弹性策略,系统会计算每条策略触发时的最小实例数,并取当前时间有效的弹性策略中最小实例数的最大值作为当前最小实例数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '5',
- ],
- 'alwaysAllocateCPU' => [
- 'title' => '是否始终分配CPU,默认为true。',
- 'description' => '是否始终分配CPU,默认为true。',
- 'type' => 'boolean',
+ 'items' => ['description' => '定时策略。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/ScheduledAction'],
'required' => false,
- 'example' => 'true',
- ],
- 'alwaysAllocateGPU' => [
- 'title' => '是否始终分配GPU,默认为true。',
- 'description' => '是否始终分配GPU,默认为true。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
+ 'backendName' => 'scheduledActions',
],
+ 'defaultTarget' => ['title' => '预留的默认目标资源个数,没有指标追踪伸缩策略或定时策略生效时使用,取值范围为[0,10000]。', 'description' => '默认最小实例数,取值范围为[0,10000]。'."\n"
+ .'> - 未配置指标追踪弹性策略或定时弹性策略时,当前最小实例数等于您配置最小实例数。'."\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' => '指标追踪伸缩策略配置。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '指标追踪策略。',
- '$ref' => '#/components/schemas/TargetTrackingPolicy',
- ],
+ 'items' => ['description' => '指标追踪策略。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/TargetTrackingPolicy'],
'required' => false,
+ 'backendName' => 'targetTrackingPolicies',
],
- 'target' => [
- 'title' => '预留的目标资源个数。取值范围为[0,10000]。',
- 'description' => '><notice>建议不再使用该参数,请使用 defaultTarget 参数。 </notice>'."\n"
- .'预留的目标资源个数。取值范围为[0,10000]。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'deprecated' => true,
- 'required' => true,
- 'example' => '1',
- ],
+ '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' => '函数弹性配置',
'type' => 'object',
'properties' => [
- 'residentPoolId' => [
- 'description' => '常驻资源池id',
- 'type' => 'string',
- 'example' => 'fc-pool-a2b664c1f87171j4******',
- ],
- 'minInstances' => [
- 'description' => '最小实例数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'enableOnDemandScaling' => [
- 'description' => '弹性开关',
- 'type' => 'boolean',
- 'example' => 'True',
- ],
+ 'residentPoolId' => ['description' => '常驻资源池id', 'type' => 'string', 'example' => 'fc-pool-a2b664c1f87171j4******'],
+ 'minInstances' => ['description' => '最小实例数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'enableOnDemandScaling' => ['description' => '弹性开关', 'type' => 'boolean', 'example' => 'True'],
'scheduledPolicies' => [
'description' => '定时弹性策略',
'type' => 'array',
- 'items' => [
- 'description' => '定时弹性策略',
- '$ref' => '#/components/schemas/ScheduledPolicy',
- ],
+ 'items' => ['description' => '定时弹性策略', '$ref' => '#/components/schemas/ScheduledPolicy'],
],
'horizontalScalingPolicies' => [
'description' => '水平弹性策略',
'type' => 'array',
- 'items' => [
- 'description' => '水平弹性策略',
- '$ref' => '#/components/schemas/ScalingPolicy',
- ],
- ],
- 'enableMixMode' => [
- 'description' => 'mix模式',
- 'type' => 'boolean',
- 'example' => 'False',
- ],
- 'requestDispatchPolicy' => [
- 'description' => '策略',
- 'type' => 'string',
- 'example' => 'Balanced',
+ 'items' => ['description' => '水平弹性策略', '$ref' => '#/components/schemas/ScalingPolicy'],
],
+ 'enableMixMode' => ['description' => 'mix模式', 'type' => 'boolean', 'example' => 'False'],
+ 'requestDispatchPolicy' => ['description' => '策略', 'type' => 'string', 'example' => 'Balanced'],
],
],
- 'PutScalingConfigOutput' => [
- 'type' => 'object',
- 'properties' => [],
- ],
'RegexRule' => [
'title' => '自定义域名正则重写规则配置',
'description' => '自定义域名正则重写规则配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'match' => [
- 'title' => '匹配规则',
- 'description' => '匹配规则',
- 'type' => 'string',
- 'required' => true,
- 'example' => '^/api/.+?/(.*)',
- 'maxLength' => 256,
- ],
- 'replacement' => [
- 'title' => '替换规则',
- 'description' => '替换规则',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/api/v2/$1',
- 'maxLength' => 256,
- ],
+ 'match' => ['title' => '匹配规则', 'description' => '匹配规则', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '^/api/.+?/(.*)', 'maxLength' => 256, 'backendName' => 'match'],
+ 'replacement' => ['title' => '替换规则', 'description' => '替换规则', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/api/v2/$1', 'maxLength' => 256, 'backendName' => 'replacement'],
],
],
'RegistryAuthConfig' => [
'title' => '镜像仓库的认证信息',
'description' => '镜像仓库的认证信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'password' => [
- 'title' => '镜像仓库密码',
- 'description' => '镜像仓库密码',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'abc***',
- ],
- 'userName' => [
- 'title' => '镜像仓库用户名',
- 'description' => '镜像仓库用户名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'admin',
- ],
+ 'password' => ['title' => '镜像仓库密码', 'description' => '镜像仓库密码', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'abc***', 'backendName' => 'password', 'sensitive' => true],
+ 'userName' => ['title' => '镜像仓库用户名', 'description' => '镜像仓库用户名', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'admin', 'backendName' => 'userName'],
],
],
'RegistryCertConfig' => [
'title' => '镜像仓库的证书信息',
'description' => '镜像仓库的证书信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'insecure' => [
- 'title' => '是否跳过证书验证',
- 'description' => '是否跳过证书验证',
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'rootCaCertBase64' => [
- 'title' => '镜像仓库CA证书',
- 'description' => '镜像仓库CA证书',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cm9vdF9jYV9jZXJ0',
- ],
+ 'insecure' => ['title' => '是否跳过证书验证', 'description' => '是否跳过证书验证', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'backendName' => 'insecure'],
+ 'rootCaCertBase64' => ['title' => '镜像仓库CA证书', 'description' => '镜像仓库CA证书', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cm9vdF9jYV9jZXJ0', 'backendName' => 'rootCaCertBase64'],
],
],
'RegistryConfig' => [
@@ -4065,281 +1860,70 @@
'description' => '镜像仓库的配置信息',
'type' => 'object',
'properties' => [
- 'authConfig' => [
- 'title' => 'TODO',
- 'description' => '权限认证配置',
- 'required' => false,
- '$ref' => '#/components/schemas/RegistryAuthConfig',
- ],
- 'certConfig' => [
- 'title' => 'TODO',
- 'description' => '证书配置',
- 'required' => false,
- '$ref' => '#/components/schemas/RegistryCertConfig',
- ],
- 'networkConfig' => [
- 'title' => 'TODO',
- 'description' => '网络配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/RegistryNetworkConfig',
- ],
+ 'authConfig' => ['title' => 'TODO', 'description' => '权限认证配置', 'required' => false, '$ref' => '#/components/schemas/RegistryAuthConfig'],
+ 'certConfig' => ['title' => 'TODO', 'description' => '证书配置', 'required' => false, '$ref' => '#/components/schemas/RegistryCertConfig'],
+ 'networkConfig' => ['title' => 'TODO', 'description' => '网络配置。', 'required' => false, '$ref' => '#/components/schemas/RegistryNetworkConfig'],
],
],
'RegistryNetworkConfig' => [
'title' => '镜像仓库的网络信息',
'description' => '镜像仓库的网络信息',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'securityGroupId' => [
- 'title' => '可以连通镜像仓库的SecurityGroup ID',
- 'description' => '可以连通镜像仓库的SecurityGroup ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sg-xxxxxxxxxxxxxx',
- ],
- 'vSwitchId' => [
- 'title' => '可以连通镜像仓库的VSwitch ID',
- 'description' => '可以连通镜像仓库的VSwitch ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vsw-xxxxxxxxxxxxxx',
- ],
- 'vpcId' => [
- 'title' => '可以连通镜像仓库的VPC ID',
- 'description' => '可以连通镜像仓库的VPC ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc-xxxxxxxxxxxxxx',
- ],
- ],
- ],
- 'ResidentConfig' => [
- 'type' => 'object',
- 'properties' => [
- 'poolId' => [
- 'type' => 'string',
- ],
- 'count' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'securityGroupId' => ['title' => '可以连通镜像仓库的SecurityGroup ID', 'description' => '可以连通镜像仓库的SecurityGroup ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'sg-xxxxxxxxxxxxxx', 'backendName' => 'securityGroupId'],
+ 'vSwitchId' => ['title' => '可以连通镜像仓库的VSwitch ID', 'description' => '可以连通镜像仓库的VSwitch ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vsw-xxxxxxxxxxxxxx', 'backendName' => 'vSwitchId'],
+ 'vpcId' => ['title' => '可以连通镜像仓库的VPC ID', 'description' => '可以连通镜像仓库的VPC ID', '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' => '',
- ],
- 'qualifier' => [
- 'title' => '函数的别名',
- 'description' => '函数的别名',
- 'type' => 'string',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => true,
- 'default' => '',
- ],
- 'instanceCount' => [
- 'title' => '实例数',
- 'description' => '实例数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => true,
- 'default' => '',
- ],
- 'totalCpuCores' => [
- 'title' => 'CPU 占用总核数',
- 'description' => 'CPU 占用总核数',
- 'type' => 'number',
- 'format' => 'double',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => true,
- 'default' => '',
- ],
- 'totalMemorySize' => [
- 'title' => '内存占用大小',
- 'description' => '内存占用大小,单位 GB',
- 'type' => 'number',
- 'format' => 'double',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => true,
- 'default' => '',
- ],
- 'totalGpuMemorySize' => [
- 'title' => '占用显存大小',
- 'description' => '占用显存大小,单位 GB',
- 'type' => 'number',
- 'format' => 'double',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => true,
- 'default' => '',
- ],
- 'totalDiskSize' => [
- 'title' => '占用磁盘大小',
- 'description' => '占用磁盘大小,单位 GB',
- 'type' => 'number',
- 'format' => 'double',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => true,
- 'default' => '',
- ],
- 'instanceType' => [
- 'type' => 'string',
- ],
+ 'functionName' => ['title' => '函数名', 'description' => '使用该资源池的函数名', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'qualifier' => ['title' => '函数的别名', 'description' => '函数的别名', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'instanceCount' => ['title' => '实例数', 'description' => '实例数', 'type' => 'integer', 'format' => 'int32', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'totalCpuCores' => ['title' => 'CPU 占用总核数', 'description' => 'CPU 占用总核数', 'type' => 'number', 'format' => 'double', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'totalMemorySize' => ['title' => '内存占用大小', 'description' => '内存占用大小,单位 GB', 'type' => 'number', 'format' => 'double', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'totalGpuMemorySize' => ['title' => '占用显存大小', 'description' => '占用显存大小,单位 GB', 'type' => 'number', 'format' => 'double', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'totalDiskSize' => ['title' => '占用磁盘大小', 'description' => '占用磁盘大小,单位 GB', 'type' => 'number', 'format' => 'double', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'instanceType' => ['type' => 'string'],
],
],
'ResidentResourceAllocationStatus' => [
'type' => 'object',
'properties' => [
- 'lastAllocatedTime' => [
- 'type' => 'string',
- ],
+ 'lastAllocatedTime' => ['type' => 'string'],
'lastAllocation' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/ResidentResourceAllocation',
- ],
+ 'items' => ['$ref' => '#/components/schemas/ResidentResourceAllocation'],
],
],
],
'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' => '',
- ],
+ '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' => '代表资源名称的资源属性字段',
- 'type' => 'string',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => false,
- 'default' => '',
- ],
- 'lastModifiedTime' => [
- 'title' => '上次修改时间',
- 'description' => '上次修改时间,包含扩容、续费、更名等操作',
- 'type' => 'string',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => true,
- 'default' => '',
- ],
- 'expireTime' => [
- 'title' => '过期时间',
- 'description' => '资源池过期时间',
- 'type' => 'string',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => true,
- 'default' => '',
- ],
- 'resourcePoolConfig' => [
- 'deprecated' => false,
- '$ref' => '#/components/schemas/ResidentResourceCapacity',
- ],
- 'residentResourcePoolId' => [
- 'type' => 'string',
- ],
- 'resourcePoolCapacity' => [
- 'title' => '资源池总体规格',
- 'description' => '资源池总体规格',
- 'deprecated' => false,
- 'readOnly' => true,
- '$ref' => '#/components/schemas/ResidentResourceCapacity',
- ],
- 'createdTime' => [
- 'title' => '创建时间',
- 'description' => '代表创建时间的资源属性字段',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'deprecated' => false,
- 'pattern' => '',
- 'readOnly' => true,
- 'default' => '',
- ],
- 'allocationStatus' => [
- 'title' => '资源池实时分配情况',
- 'description' => '资源池实时分配情况,包含每个函数的具体分配情况',
- 'deprecated' => false,
- 'readOnly' => true,
- '$ref' => '#/components/schemas/ResidentResourceAllocationStatus',
- ],
+ 'residentResourcePoolName' => ['title' => '常驻资源池名称', 'description' => '代表资源名称的资源属性字段', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => false, 'default' => ''],
+ 'createdTime' => ['title' => '创建时间', 'description' => '代表创建时间的资源属性字段', 'type' => 'string', 'format' => 'iso8601', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'allocationStatus' => ['title' => '资源池实时分配情况', 'description' => '资源池实时分配情况,包含每个函数的具体分配情况', 'deprecated' => false, 'readOnly' => true, '$ref' => '#/components/schemas/ResidentResourceAllocationStatus'],
+ 'lastModifiedTime' => ['title' => '上次修改时间', 'description' => '上次修改时间,包含扩容、续费、更名等操作', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'expireTime' => ['title' => '过期时间', 'description' => '资源池过期时间', 'type' => 'string', 'deprecated' => false, 'pattern' => '', 'readOnly' => true, 'default' => ''],
+ 'resourcePoolCapacity' => ['title' => '资源池总体规格', 'description' => '资源池总体规格', 'deprecated' => false, 'readOnly' => true, '$ref' => '#/components/schemas/ResidentResourceCapacity'],
+ 'resourcePoolConfig' => ['deprecated' => false, '$ref' => '#/components/schemas/ResidentResourceCapacity'],
+ 'residentResourcePoolId' => ['type' => 'string'],
+ 'poolType' => ['type' => 'string'],
+ 'associatedPoolId' => ['type' => 'string'],
+ 'timedConfig' => ['$ref' => '#/components/schemas/TimedPoolConfig'],
],
],
'Resource' => [
@@ -4347,437 +1931,173 @@
'description' => '资源标签信息。',
'type' => 'object',
'properties' => [
- 'resouceType' => [
- 'title' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。',
- 'description' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ALIYUN::FC::FUNCTION',
- ],
- 'resourceArn' => [
- 'title' => '阿里云资源描述符。',
- 'description' => '阿里云资源描述符。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:****:functions/demo',
- ],
+ 'resouceType' => ['title' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。', 'description' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN::FC::FUNCTION'],
+ 'resourceArn' => ['title' => '阿里云资源描述符。', 'description' => '阿里云资源描述符。', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:****:functions/demo'],
'tags' => [
'title' => '标签字典。取值说明如下:key:表示标签键,value:表示标签值。',
'description' => '标签字典。',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => 'value1',
- ],
+ 'additionalProperties' => ['type' => 'string', 'example' => 'value1', 'description' => ''],
],
],
],
'RetryStrategy' => [
'title' => 'EventBridge 触发器的重试策略配置',
'description' => '事件推送失败时的重试策略。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'PushRetryStrategy' => [
- 'title' => '重试策略。BACKOFF_RETRY:退避重试。EXPONENTIAL_DECAY_RETRY:指数衰减重试。',
- 'description' => '重试策略,包含如下两种策略:'."\n"
- ."\n"
- .'- **BACKOFF_RETRY**:退避重试。'."\n"
- ."\n"
- .'- **EXPONENTIAL_DECAY_RETRY**:指数衰减重试。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'BACKOFF_RETRY',
- ],
+ 'PushRetryStrategy' => ['title' => '重试策略。BACKOFF_RETRY:退避重试。EXPONENTIAL_DECAY_RETRY:指数衰减重试。', 'description' => '重试策略,包含如下两种策略:'."\n"
+ ."\n"
+ .'- **BACKOFF_RETRY**:退避重试。'."\n"
+ ."\n"
+ .'- **EXPONENTIAL_DECAY_RETRY**:指数衰减重试。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'BACKOFF_RETRY', 'backendName' => 'PushRetryStrategy'],
],
],
'RewriteConfig' => [
'title' => '重写规则配置',
'description' => '重写规则配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'equalRules' => [
'title' => '精确匹配规则列表',
'description' => '精确匹配规则列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '精确匹配规则',
- '$ref' => '#/components/schemas/EqualRule',
- ],
+ 'items' => ['description' => '精确匹配规则', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/EqualRule'],
'required' => false,
+ 'backendName' => 'equalRules',
],
'regexRules' => [
'title' => '正则匹配规则列表',
'description' => '正则匹配规则列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '正则匹配规则',
- '$ref' => '#/components/schemas/RegexRule',
- ],
+ 'items' => ['description' => '正则匹配规则', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/RegexRule'],
'required' => false,
+ 'backendName' => 'regexRules',
],
'wildcardRules' => [
'title' => '通配匹配规则列表',
'description' => '通配匹配规则列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '通配匹配规则',
- '$ref' => '#/components/schemas/WildcardRule',
- ],
+ 'items' => ['description' => '通配匹配规则', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/WildcardRule'],
'required' => false,
+ 'backendName' => 'wildcardRules',
],
],
],
'RouteConfig' => [
'title' => '路由匹配规则配置',
'description' => '路由匹配规则配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'routes' => [
'title' => '路由配置列表',
'description' => '路由配置列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '路由配置',
- '$ref' => '#/components/schemas/PathConfig',
- ],
+ 'items' => ['description' => '路由配置', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/PathConfig'],
'required' => false,
+ 'backendName' => 'routes',
],
],
],
'RunOptions' => [
'title' => 'EventBridge 触发器运行环境参数配置',
'description' => 'EventBridge 触发器运行环境参数配置',
- 'type' => 'object',
- 'properties' => [
- 'batchWindow' => [
- 'title' => '攒批窗口配置。',
- 'description' => '攒批窗口配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/BatchWindow',
- ],
- 'deadLetterQueue' => [
- 'title' => '是否启用死信队列。配置该参数即为启用死信队列,默认不启用死信队列,超过重试策略后的消息将被丢弃。支持配置消息服务 MNS、云消息队列 RocketMQ 版、消息队列 Kafka 版以及事件总线 EventBridge。',
- 'description' => '是否启用死信队列。配置该参数即为启用死信队列,默认不启用死信队列,超过重试策略后的消息将被丢弃。支持配置轻量消息队列(原 MNS)、云消息队列 RocketMQ 版、消息队列 Kafka 版以及事件总线 EventBridge。',
- 'required' => false,
- '$ref' => '#/components/schemas/DeadLetterQueue',
- ],
- 'errorsTolerance' => [
- 'title' => '异常容忍策略。NONE:不容忍异常,默认值。ALL:容忍所有异常。',
- 'description' => '异常容忍策略,包含如下两种策略:'."\n"
- ."\n"
- .'- **NONE**:不容忍异常,默认值。'."\n"
- ."\n"
- .'- **ALL**:容忍所有异常。'."\n"
- ."\n"
- .'> 默认策略为**NONE**',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ALL',
- ],
- 'mode' => [
- 'title' => '消息数据推送到函数计算时的底层应用模式。event-streaming:事件流模式,按照数组格式推送事件,会根据用户推送配置将一个或多个消息事件以批的形式推送到函数中进行处理,适合端到端的流式数据处理场景,该模式下支持的事件源类型有 MNS、RocketMQ、RabbitMQ、Kafka、MQTT 以及 DTS。event-driven:事件模式,每次会将单个消息作为事件参数传入函数中,事件遵循CloudEvents规范,,该模式下支持的事件源有 Default、MNS、RocketMQ 以及 RabbitMQ,注意:该模式下,不支持攒批配置。',
- 'description' => '消息数据推送到函数计算时的底层应用模式,包含如下两种模式:'."\n"
- ."\n"
- .'- **event-streaming**:事件流模式,按照数组格式推送事件,会根据用户推送配置将一个或多个消息事件以批的形式推送到函数中进行处理,适合端到端的流式数据处理场景,该模式下支持的事件源类型有轻量消息队列(原 MNS)、RocketMQ、RabbitMQ、Kafka、MQTT 以及 DTS。'."\n"
- ."\n"
- .'- **event-driven**:事件模式,每次会将单个消息作为事件参数传入函数中,事件遵循CloudEvents规范,该模式下支持的事件源有 Default、轻量消息队列(原 MNS)、RocketMQ 以及 RabbitMQ,注意,该模式下,不支持攒批配置。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'event-streaming',
- ],
- 'retryStrategy' => [
- 'title' => '事件推送失败时的重试策略。',
- 'description' => '事件推送失败时的重试策略。',
- 'required' => false,
- '$ref' => '#/components/schemas/RetryStrategy',
- ],
- ],
- ],
- 'SLSTriggerConfig' => [
- 'title' => 'SLS 触发器配置',
- 'description' => 'SLS 触发器配置',
- 'type' => 'object',
- 'properties' => [
- 'enable' => [
- 'title' => '是否启用触发器',
- 'description' => '是否启用触发器',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'functionParameter' => [
- 'title' => '调用参数。日志服务将该配置内容作为event的一部分传入函数,该配置内容必须是JSON格式的字符串。',
- 'description' => '调用参数。日志服务将该配置内容作为event的一部分传入函数,该配置内容必须是JSON格式的字符串。',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'description' => '调用参数内容。日志服务将该配置内容作为 event 的一部分传入函数,该配置内容必须是 JSON 格式的字符串。',
- 'type' => 'string',
- 'example' => '{"foo":"bar"}',
- ],
- ],
- 'jobConfig' => [
- 'title' => '触发器读取日志间隔及错误重试配置。',
- 'description' => '触发器读取日志间隔及错误重试配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/JobConfig',
- ],
- 'logConfig' => [
- 'title' => '触发操作自身的日志配置。',
- 'description' => '触发操作自身的日志配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/SLSTriggerLogConfig',
- ],
- 'sourceConfig' => [
- 'title' => '触发源配置。',
- 'description' => '触发源配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/SourceConfig',
- ],
- ],
- ],
- 'SLSTriggerLogConfig' => [
- 'title' => 'SLS 触发器日志配置',
- 'description' => 'SLS 触发器日志配置',
- 'type' => 'object',
- 'properties' => [
- 'logstore' => [
- 'title' => 'Logstore名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Logstore。',
- 'description' => 'Logstore名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Logstore。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-sls-logstore-name',
- ],
- 'project' => [
- 'title' => 'Project名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Project下的Logstore中。',
- 'description' => 'Project名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Project下的Logstore中。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-sls-project-name',
- ],
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'batchWindow' => ['title' => '攒批窗口配置。', 'description' => '攒批窗口配置。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'batchWindow', '$ref' => '#/components/schemas/BatchWindow'],
+ 'deadLetterQueue' => ['title' => '是否启用死信队列。配置该参数即为启用死信队列,默认不启用死信队列,超过重试策略后的消息将被丢弃。支持配置消息服务 MNS、云消息队列 RocketMQ 版、消息队列 Kafka 版以及事件总线 EventBridge。', 'description' => '是否启用死信队列。配置该参数即为启用死信队列,默认不启用死信队列,超过重试策略后的消息将被丢弃。支持配置轻量消息队列(原 MNS)、云消息队列 RocketMQ 版、消息队列 Kafka 版以及事件总线 EventBridge。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'deadLetterQueue', '$ref' => '#/components/schemas/DeadLetterQueue'],
+ 'errorsTolerance' => ['title' => '异常容忍策略。NONE:不容忍异常,默认值。ALL:容忍所有异常。', 'description' => '异常容忍策略,包含如下两种策略:'."\n"
+ ."\n"
+ .'- **NONE**:不容忍异常,默认值。'."\n"
+ ."\n"
+ .'- **ALL**:容忍所有异常。'."\n"
+ ."\n"
+ .'> 默认策略为**NONE**', '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' => '消息数据推送到函数计算时的底层应用模式,包含如下两种模式:'."\n"
+ ."\n"
+ .'- **event-streaming**:事件流模式,按照数组格式推送事件,会根据用户推送配置将一个或多个消息事件以批的形式推送到函数中进行处理,适合端到端的流式数据处理场景,该模式下支持的事件源类型有轻量消息队列(原 MNS)、RocketMQ、RabbitMQ、Kafka、MQTT 以及 DTS。'."\n"
+ ."\n"
+ .'- **event-driven**:事件模式,每次会将单个消息作为事件参数传入函数中,事件遵循CloudEvents规范,该模式下支持的事件源有 Default、轻量消息队列(原 MNS)、RocketMQ 以及 RabbitMQ,注意,该模式下,不支持攒批配置。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'event-streaming', 'backendName' => 'mode'],
+ 'retryStrategy' => ['title' => '事件推送失败时的重试策略。', 'description' => '事件推送失败时的重试策略。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'retryStrategy', '$ref' => '#/components/schemas/RetryStrategy'],
],
],
'ScalingConfigStatus' => [
'description' => '函数弹性配置信息',
'type' => 'object',
'properties' => [
- 'functionArn' => [
- 'description' => '函数资源标识。',
- 'type' => 'string',
- 'example' => 'acs:fc:cn-shanghai:124:functions/myFunction/prod',
- ],
- 'residentPoolId' => [
- 'description' => '常驻资源池id',
- 'type' => 'string',
- 'example' => 'fc-pool-a2b664c1f87171j4******',
- ],
- 'minInstances' => [
- 'description' => '最小实例数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'currentInstances' => [
- 'description' => '当前实例数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'currentError' => [
- 'description' => '实例创建失败时的错误信息。',
- 'type' => 'string',
- 'example' => 'image not found',
- ],
- 'targetInstances' => [
- 'description' => '目标实例数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- ],
- 'enableOnDemandScaling' => [
- 'description' => '开关',
- 'type' => 'boolean',
- 'example' => 'True',
- ],
+ 'functionArn' => ['description' => '函数资源标识。', 'type' => 'string', 'example' => 'acs:fc:cn-shanghai:124:functions/myFunction/prod'],
+ 'residentPoolId' => ['description' => '常驻资源池id', 'type' => 'string', 'example' => 'fc-pool-a2b664c1f87171j4******'],
+ 'minInstances' => ['description' => '最小实例数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'currentInstances' => ['description' => '当前实例数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'currentError' => ['description' => '实例创建失败时的错误信息。', 'type' => 'string', 'example' => 'image not found'],
+ 'targetInstances' => ['description' => '目标实例数', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
+ 'enableOnDemandScaling' => ['description' => '开关', 'type' => 'boolean', 'example' => 'True'],
'scheduledPolicies' => [
'description' => '定时弹性策略',
'type' => 'array',
- 'items' => [
- 'description' => '定时弹性策略',
- '$ref' => '#/components/schemas/ScheduledPolicy',
- ],
+ 'items' => ['description' => '定时弹性策略', '$ref' => '#/components/schemas/ScheduledPolicy'],
],
'horizontalScalingPolicies' => [
'description' => '水平弹性策略',
'type' => 'array',
- 'items' => [
- 'description' => '水平弹性策略',
- '$ref' => '#/components/schemas/ScalingPolicy',
- ],
- ],
- 'enableMixMode' => [
- 'description' => 'mix模式开关',
- 'type' => 'boolean',
- 'example' => 'False',
- ],
- 'requestDispatchPolicy' => [
- 'description' => '策略',
- 'type' => 'string',
- 'example' => 'Balanced',
+ 'items' => ['description' => '水平弹性策略', '$ref' => '#/components/schemas/ScalingPolicy'],
],
+ 'enableMixMode' => ['description' => 'mix模式开关', 'type' => 'boolean', 'example' => 'False'],
+ 'requestDispatchPolicy' => ['description' => '策略', 'type' => 'string', 'example' => 'Balanced'],
],
],
'ScalingPolicy' => [
'description' => '水平弹性策略。',
'type' => 'object',
'properties' => [
- 'name' => [
- 'description' => '策略名称。',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'startTime' => [
- 'description' => '策略生效时间。',
- 'type' => 'string',
- 'example' => '2023-03-10T10:10:10Z',
- ],
- 'endTime' => [
- 'description' => '策略失效时间。',
- 'type' => 'string',
- 'example' => '2024-03-10T10:10:10Z',
- ],
- 'metricType' => [
- 'description' => '跟踪的指标类型:ProvisionedConcurrencyUtilization:预留模式实例并发度利用率。CPUUtilization:CPU利用率。GPUMemUtilization:GPU利用率。',
- 'type' => 'string',
- 'example' => 'CPUUtilization',
- ],
- 'metricTarget' => [
- 'description' => '指标的追踪值。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.6',
- ],
- 'minInstances' => [
- 'description' => '最小实例数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'maxInstances' => [
- 'description' => '最大实例数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- ],
- 'timeZone' => [
- 'description' => '时区。时区参数为空时,startTime、endTime和scheduleExpression的时间需为UTC格式。',
- 'type' => 'string',
- 'example' => 'Asia/Shanghai',
- ],
- ],
- ],
- 'ScalingStatus' => [
- 'type' => 'object',
- 'properties' => [
- 'currentError' => [
- 'type' => 'string',
- ],
- 'resourceCount' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'name' => ['description' => '策略名称。', 'type' => 'string', 'example' => 'test'],
+ 'startTime' => ['description' => '策略生效时间。', 'type' => 'string', 'example' => '2023-03-10T10:10:10Z'],
+ 'endTime' => ['description' => '策略失效时间。', 'type' => 'string', 'example' => '2024-03-10T10:10:10Z'],
+ 'metricType' => ['description' => '跟踪的指标类型:ProvisionedConcurrencyUtilization:预留模式实例并发度利用率。CPUUtilization:CPU利用率。GPUMemUtilization:GPU利用率。', 'type' => 'string', 'example' => 'CPUUtilization'],
+ 'metricTarget' => ['description' => '指标的追踪值。', 'type' => 'number', 'format' => 'float', 'example' => '0.6'],
+ 'minInstances' => ['description' => '最小实例数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'maxInstances' => ['description' => '最大实例数', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
+ 'timeZone' => ['description' => '时区。时区参数为空时,startTime、endTime和scheduleExpression的时间需为UTC格式。', 'type' => 'string', 'example' => 'Asia/Shanghai'],
],
],
'ScheduledAction' => [
'title' => '定时策略配置',
'description' => '定时策略配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'endTime' => [
- 'title' => '策略失效时间。',
- 'description' => '策略失效时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-03-10T10:10:10Z',
- ],
- 'name' => [
- 'title' => '策略名称。',
- 'description' => '策略名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_1',
- ],
- 'scheduleExpression' => [
- 'title' => '定时配置。',
- 'description' => '定时配置。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cron(0 0 22 * * *)',
- ],
- 'startTime' => [
- 'title' => '策略生效时间。',
- 'description' => '策略生效时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-10T10:10:10Z',
- ],
- 'target' => [
- 'title' => '预留的目标资源个数。',
- 'description' => '预留的目标资源个数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '50',
- ],
- 'timeZone' => [
- 'title' => '时区。时区参数为空时,startTime、endTime和scheduleExpression的时间需为UTC格式。',
- 'description' => '时区。时区参数为空时,startTime、endTime和scheduleExpression的时间需为UTC格式。',
- 'type' => 'string',
- 'example' => 'Asia/Shanghai',
- ],
+ 'endTime' => ['title' => '策略失效时间。', 'description' => '策略失效时间。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2024-03-10T10:10:10Z', 'backendName' => 'endTime'],
+ 'name' => ['title' => '策略名称。', 'description' => '策略名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'test_1', 'backendName' => 'name'],
+ 'scheduleExpression' => ['title' => '定时配置。', 'description' => '定时配置。', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'cron(0 0 22 * * *)', 'backendName' => 'scheduleExpression'],
+ 'startTime' => ['title' => '策略生效时间。', 'description' => '策略生效时间。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2023-03-10T10:10:10Z', 'backendName' => 'startTime'],
+ 'target' => ['title' => '预留的目标资源个数。', 'description' => '预留的目标资源个数。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50', 'backendName' => 'target'],
+ 'timeZone' => ['title' => '时区。时区参数为空时,startTime、endTime和scheduleExpression的时间需为UTC格式。', 'description' => '时区。时区参数为空时,startTime、endTime和scheduleExpression的时间需为UTC格式。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Asia/Shanghai', 'backendName' => 'timeZone'],
],
],
'ScheduledPolicy' => [
'description' => '策略',
'type' => 'object',
'properties' => [
- 'name' => [
- 'description' => '策略名称。',
- 'type' => 'string',
- 'example' => 'student_app_shop_analyzer',
- ],
- 'startTime' => [
- 'description' => '开始时间',
- 'type' => 'string',
- 'example' => '1764432000000',
- ],
- 'endTime' => [
- 'description' => '结束时间',
- 'type' => 'string',
- 'example' => '1633449590000',
- ],
- 'target' => [
- 'description' => '当前目标资源个数,如果存在指标追踪伸缩策略或定时策略,为策略计算的资源个数,否则为默认预留实例数。'."\n"
- ."\n\n"
- .'> 与 defaultTarget 有什么区别?\\'."\n"
- .'> 假设配置预留实例数为1后,新增了定时伸缩策略,设置某个时间段内的预留实例数为5。'."\n"
- .'> - 在定时伸缩策略**生效期间**,target 与 defaultTarget 分别为 5 和 1。'."\n"
- .'>- 在定时伸缩策略**失效期间**,target 与 defaultTarget 都为 1。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '5',
- ],
- 'scheduleExpression' => [
- 'description' => '定时配置。',
- 'type' => 'string',
- 'example' => '。',
- ],
- 'timeZone' => [
- 'description' => '时区。时区参数为空时,startTime、endTime和scheduleExpression的时间需为UTC格式。',
- 'type' => 'string',
- 'example' => '。',
- ],
+ 'name' => ['description' => '策略名称。', 'type' => 'string', 'example' => 'student_app_shop_analyzer'],
+ 'startTime' => ['description' => '开始时间', 'type' => 'string', 'example' => '1764432000000'],
+ 'endTime' => ['description' => '结束时间', 'type' => 'string', 'example' => '1633449590000'],
+ 'target' => ['description' => '当前目标资源个数,如果存在指标追踪伸缩策略或定时策略,为策略计算的资源个数,否则为默认预留实例数。'."\n"
+ ."\n\n"
+ .'> 与 defaultTarget 有什么区别?\\'."\n"
+ .'> 假设配置预留实例数为1后,新增了定时伸缩策略,设置某个时间段内的预留实例数为5。'."\n"
+ .'> - 在定时伸缩策略**生效期间**,target 与 defaultTarget 分别为 5 和 1。'."\n"
+ .'>- 在定时伸缩策略**失效期间**,target 与 defaultTarget 都为 1。', 'type' => 'integer', 'format' => 'int64', 'example' => '5'],
+ 'scheduleExpression' => ['description' => '定时配置。', 'type' => 'string', 'example' => '。'],
+ 'timeZone' => ['description' => '时区。时区参数为空时,startTime、endTime和scheduleExpression的时间需为UTC格式。', 'type' => 'string', 'example' => '。'],
],
],
'Session' => [
@@ -4785,871 +2105,367 @@
'description' => '会话信息',
'type' => 'object',
'properties' => [
- 'sessionId' => [
- 'title' => '函数会话唯一标识',
- 'description' => '函数会话唯一标识',
- 'type' => 'string',
- 'example' => '81f70ae156904eb9b7d43e12f511fe58',
- ],
- 'functionName' => [
- 'title' => 'Session所属函数名称',
- 'description' => 'Session所属函数名称',
- 'type' => 'string',
- 'example' => 'functionName1',
- ],
- 'sessionAffinityType' => [
- 'title' => '会话亲和类型',
- 'description' => '会话亲和类型',
- 'type' => 'string',
- 'example' => 'HEADER_FIELD',
- ],
- 'sessionTTLInSeconds' => [
- 'title' => 'Session 生命周期最大值',
- 'description' => 'Session 生命周期最大值',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- ],
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => 'Session 闲置过期时间',
- 'description' => 'Session 闲置过期时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- ],
- 'createdTime' => [
- 'title' => 'Session 的创建时间',
- 'description' => 'Session 的创建时间',
- 'type' => 'string',
- 'example' => '2025-04-01T08:15:27Z',
- ],
- 'lastModifiedTime' => [
- 'title' => 'Session上一次被更新的时间。',
- 'description' => 'Session上一次被更新的时间。',
- 'type' => 'string',
- 'example' => '2025-04-01T18:15:27Z',
- ],
- 'sessionStatus' => [
- 'title' => 'Session 状态:Active 代表 Session 有效,Expired代表 Session已过期',
- 'description' => 'Session 状态:Active 代表 Session 有效,Expired代表 Session已过期',
- 'type' => 'string',
- 'example' => 'Active',
- ],
- 'containerId' => [
- 'title' => 'Session关联的函数实例ID',
- 'description' => 'Session关联的函数实例ID',
- 'type' => 'string',
- 'example' => 'c-68999e02-16a1955c-d2a03d1ccs',
- ],
- 'qualifier' => [
- 'title' => '客户创建 Session 时传入的 Qualifier,如未传则为默认值 LATEST',
- 'description' => '客户创建 Session 时传入的 Qualifier,如未传则为默认值 LATEST',
- 'type' => 'string',
- 'example' => 'AliasName1',
- ],
- 'nasConfig' => [
- 'description' => 'NAS配置,配置后Session关联的实例可以访问指定NAS资源。',
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'disableSessionIdReuse' => [
- 'title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'ossMountConfig' => [
- '$ref' => '#/components/schemas/OSSMountConfig',
- ],
- 'polarFsConfig' => [
- '$ref' => '#/components/schemas/PolarFsConfig',
+ 'sessionId' => ['title' => '函数会话唯一标识', 'description' => '函数会话唯一标识', 'type' => 'string', 'example' => '81f70ae156904eb9b7d43e12f511fe58'],
+ 'functionName' => ['title' => 'Session所属函数名称', 'description' => 'Session所属函数名称', 'type' => 'string', 'example' => 'functionName1'],
+ 'sessionAffinityType' => ['title' => '会话亲和类型', 'description' => '会话亲和类型', 'type' => 'string', 'example' => 'HEADER_FIELD'],
+ 'sessionTTLInSeconds' => ['title' => 'Session 生命周期最大值', 'description' => 'Session 生命周期最大值', 'type' => 'integer', 'format' => 'int64', 'example' => '21600'],
+ 'sessionIdleTimeoutInSeconds' => ['title' => 'Session 闲置过期时间', 'description' => 'Session 闲置过期时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1800'],
+ 'createdTime' => ['title' => 'Session 的创建时间', 'description' => 'Session 的创建时间', 'type' => 'string', 'example' => '2025-04-01T08:15:27Z'],
+ 'lastModifiedTime' => ['title' => 'Session上一次被更新的时间。', 'description' => 'Session上一次被更新的时间。', 'type' => 'string', 'example' => '2025-04-01T18:15:27Z'],
+ 'sessionStatus' => ['title' => 'Session 状态:Active 代表 Session 有效,Expired代表 Session已过期', 'description' => 'Session 状态:Active 代表 Session 有效,Expired代表 Session已过期', 'type' => 'string', 'example' => 'Active'],
+ 'containerId' => ['title' => 'Session关联的函数实例ID', 'description' => 'Session关联的函数实例ID', 'type' => 'string', 'example' => 'c-68999e02-16a1955c-d2a03d1ccs'],
+ 'qualifier' => ['title' => '客户创建 Session 时传入的 Qualifier,如未传则为默认值 LATEST', 'description' => '客户创建 Session 时传入的 Qualifier,如未传则为默认值 LATEST', 'type' => 'string', 'example' => 'AliasName1'],
+ 'nasConfig' => ['description' => 'NAS配置,配置后Session关联的实例可以访问指定NAS资源。', '$ref' => '#/components/schemas/NASConfig'],
+ 'disableSessionIdReuse' => ['title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'type' => 'boolean', 'example' => 'false'],
+ 'ossMountConfig' => ['$ref' => '#/components/schemas/OSSMountConfig'],
+ 'polarFsConfig' => ['$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => 'JuiceFs 挂载配置', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'enableAutoPause' => ['type' => 'boolean'],
+ 'enableAutoResume' => ['type' => 'boolean'],
+ ],
+ ],
+ 'SLSTriggerConfig' => [
+ 'title' => 'SLS 触发器配置',
+ 'description' => 'SLS 触发器配置',
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'enable' => ['title' => '是否启用触发器', 'description' => '是否启用触发器', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'enable'],
+ 'functionParameter' => [
+ 'title' => '调用参数。日志服务将该配置内容作为event的一部分传入函数,该配置内容必须是JSON格式的字符串。',
+ 'description' => '调用参数。日志服务将该配置内容作为event的一部分传入函数,该配置内容必须是JSON格式的字符串。',
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['description' => '调用参数内容。日志服务将该配置内容作为 event 的一部分传入函数,该配置内容必须是 JSON 格式的字符串。', 'visibility' => 'Public', 'type' => 'string', 'example' => '{"foo":"bar"}'],
+ 'backendName' => 'functionParameter',
],
+ 'jobConfig' => ['title' => '触发器读取日志间隔及错误重试配置。', 'description' => '触发器读取日志间隔及错误重试配置。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'jobConfig', '$ref' => '#/components/schemas/JobConfig'],
+ 'logConfig' => ['title' => '触发操作自身的日志配置。', 'description' => '触发操作自身的日志配置。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'logConfig', '$ref' => '#/components/schemas/SLSTriggerLogConfig'],
+ 'sourceConfig' => ['title' => '触发源配置。', 'description' => '触发源配置。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'sourceConfig', '$ref' => '#/components/schemas/SourceConfig'],
+ ],
+ ],
+ 'SLSTriggerLogConfig' => [
+ 'title' => 'SLS 触发器日志配置',
+ 'description' => 'SLS 触发器日志配置',
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'logstore' => ['title' => 'Logstore名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Logstore。', 'description' => 'Logstore名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Logstore。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my-sls-logstore-name', 'backendName' => 'logstore'],
+ 'project' => ['title' => 'Project名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Project下的Logstore中。', 'description' => 'Project名称。触发函数的过程中发生的异常和函数执行统计信息会记录到该Project下的Logstore中。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my-sls-project-name', 'backendName' => 'project'],
],
],
'SourceConfig' => [
'title' => 'SLS 触发器配置事件源配置',
'description' => 'SLS 触发器配置事件源配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'logstore' => [
- 'title' => 'Logstore名称。当前触发器会定时从此Logstore中订阅数据,然后触发函数。',
- 'description' => 'Logstore名称。当前触发器会定时从此Logstore中订阅数据,然后触发函数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-sls-logstore-name',
- ],
- 'startTime' => [
- 'title' => '消费起始时间,单位为秒,若不指定,则会从最新数据开始消费。若指定,则会对指定时间之后写入的数据产生触发事件,针对存量数据消费,在追上实时触发进度以前会忽略触发间隔来追赶消费延迟,当追赶完成后,此时触发没有延迟,开始按照设置的触发事件间隔来触发函数调用。',
- 'description' => '消费起始时间,单位为秒,若不指定,则会从最新数据开始消费。若指定,则会对指定时间之后写入的数据产生触发事件,针对存量数据消费,在追上实时触发进度以前会忽略触发间隔来追赶消费延迟,当追赶完成后,此时触发没有延迟,开始按照设置的触发事件间隔来触发函数调用。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1704790317',
- ],
+ 'logstore' => ['title' => 'Logstore名称。当前触发器会定时从此Logstore中订阅数据,然后触发函数。', 'description' => 'Logstore名称。当前触发器会定时从此Logstore中订阅数据,然后触发函数。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my-sls-logstore-name', 'backendName' => 'logstore'],
+ 'startTime' => ['title' => '消费起始时间,单位为秒,若不指定,则会从最新数据开始消费。若指定,则会对指定时间之后写入的数据产生触发事件,针对存量数据消费,在追上实时触发进度以前会忽略触发间隔来追赶消费延迟,当追赶完成后,此时触发没有延迟,开始按照设置的触发事件间隔来触发函数调用。', 'description' => '消费起始时间,单位为秒,若不指定,则会从最新数据开始消费。若指定,则会对指定时间之后写入的数据产生触发事件,针对存量数据消费,在追上实时触发进度以前会忽略触发间隔来追赶消费延迟,当追赶完成后,此时触发没有延迟,开始按照设置的触发事件间隔来触发函数调用。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1704790317', 'backendName' => 'startTime'],
],
],
'SourceDTSParameters' => [
'title' => 'EventBridge 数据传输服务DTS版的自定义事件源参数',
'description' => 'EventBridge 数据传输服务DTS版的自定义事件源参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'BrokerUrl' => [
- 'title' => '数据订阅通道的网络地址及端口号信息。',
- 'description' => '数据订阅通道的网络地址及端口号信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dts-cn-shanghai-vpc.com:18003',
- ],
- 'InitCheckPoint' => [
- 'title' => '消费位点,即SDK客户端消费第一条数据的时间戳,格式为Unix时间戳。',
- 'description' => '消费位点,即SDK客户端消费第一条数据的时间戳,格式为Unix时间戳。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1677340805',
- ],
- 'Password' => [
- 'title' => '消费组的账号密码。',
- 'description' => '消费组的账号密码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dtsTest123',
- ],
- 'RegionId' => [
- 'title' => '数据传输服务DTS版的实例所属地域。',
- 'description' => '数据传输服务DTS版的实例所属地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
- 'Sid' => [
- 'title' => '消费组ID。',
- 'description' => '消费组ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dtse34j22j025a****',
- ],
- 'TaskId' => [
- 'title' => '任务 ID。',
- 'description' => '任务 ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e34z2gm325q****',
- ],
- 'Topic' => [
- 'title' => '数据订阅通道的订阅Topic。',
- 'description' => '数据订阅通道的订阅Topic。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn_shanghai_vpc_rm_uf6398ykj0218****_dts_trigger_upgrade_from_old_version2',
- ],
- 'Username' => [
- 'title' => '消费组的账号。',
- 'description' => '消费组的账号。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dts_trigger',
- ],
+ 'BrokerUrl' => ['title' => '数据订阅通道的网络地址及端口号信息。', 'description' => '数据订阅通道的网络地址及端口号信息。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'dts-cn-shanghai-vpc.com:18003', 'backendName' => 'BrokerUrl'],
+ 'InitCheckPoint' => ['title' => '消费位点,即SDK客户端消费第一条数据的时间戳,格式为Unix时间戳。', 'description' => '消费位点,即SDK客户端消费第一条数据的时间戳,格式为Unix时间戳。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1677340805', 'backendName' => 'InitCheckPoint'],
+ 'Password' => ['title' => '消费组的账号密码。', 'description' => '消费组的账号密码。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'dtsTest123', 'backendName' => 'Password'],
+ 'RegionId' => ['title' => '数据传输服务DTS版的实例所属地域。', 'description' => '数据传输服务DTS版的实例所属地域。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
+ 'Sid' => ['title' => '消费组ID。', 'description' => '消费组ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'dtse34j22j025a****', 'backendName' => 'Sid'],
+ 'TaskId' => ['title' => '任务 ID。', 'description' => '任务 ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'e34z2gm325q****', 'backendName' => 'TaskId'],
+ 'Topic' => ['title' => '数据订阅通道的订阅Topic。', 'description' => '数据订阅通道的订阅Topic。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn_shanghai_vpc_rm_uf6398ykj0218****_dts_trigger_upgrade_from_old_version2', 'backendName' => 'Topic'],
+ 'Username' => ['title' => '消费组的账号。', 'description' => '消费组的账号。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'dts_trigger', 'backendName' => 'Username'],
],
],
'SourceKafkaParameters' => [
'title' => 'EventBridge 消息队列Kafka版的自定义事件源参数',
'description' => 'EventBridge 消息队列Kafka版的自定义事件源参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'ConsumerGroup' => [
- 'title' => '订阅该Topic的消费者所对应的Group ID。',
- 'description' => '订阅该Topic的消费者所对应的Group ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DEFAULT_GROUP',
- ],
- 'InstanceId' => [
- 'title' => '消息队列Kafka版的实例的ID。',
- 'description' => '消息队列Kafka版的实例的ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'r-8vb64581862c****',
- ],
- 'Network' => [
- 'title' => '网络配置 :默认值Default,VPC网络是PublicNetwork。',
- 'description' => '网络配置 :默认值Default,VPC网络是PublicNetwork。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Default',
- ],
- 'OffsetReset' => [
- 'title' => '偏移量。earliest:最早消费位点。latest:最新消费位点。',
- 'description' => '偏移量。earliest:最早消费位点。latest:最新消费位点。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'latest',
- ],
- 'RegionId' => [
- 'title' => '消息队列Kafka版的实例所属地域。',
- 'description' => '消息队列Kafka版的实例所属地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
- 'SecurityGroupId' => [
- 'title' => '安全组 ID',
- 'description' => '安全组 ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sg-bp1iv19sp1msc7zot4****',
- ],
- 'Topic' => [
- 'title' => '消息队列 Kafka 版实例下的 Topic 名称',
- 'description' => '消息队列 Kafka 版实例下的 Topic 名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'popvip_center_robot_order',
- ],
- 'VSwitchIds' => [
- 'title' => '交换机 ID',
- 'description' => '交换机 ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vsw-bp179l3llg3jjxwrq72****',
- ],
- 'VpcId' => [
- 'title' => 'VPC 网络的 ID',
- 'description' => 'VPC 网络的 ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc-8vblalsi0vbhizr77****',
- ],
+ 'ConsumerGroup' => ['title' => '订阅该Topic的消费者所对应的Group ID。', 'description' => '订阅该Topic的消费者所对应的Group ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'DEFAULT_GROUP', 'backendName' => 'ConsumerGroup'],
+ 'InstanceId' => ['title' => '消息队列Kafka版的实例的ID。', 'description' => '消息队列Kafka版的实例的ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'r-8vb64581862c****', 'backendName' => 'InstanceId'],
+ 'Network' => ['title' => '网络配置 :默认值Default,VPC网络是PublicNetwork。', 'description' => '网络配置 :默认值Default,VPC网络是PublicNetwork。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Default', 'backendName' => 'Network'],
+ 'OffsetReset' => ['title' => '偏移量。earliest:最早消费位点。latest:最新消费位点。', 'description' => '偏移量。earliest:最早消费位点。latest:最新消费位点。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'latest', 'backendName' => 'OffsetReset'],
+ 'RegionId' => ['title' => '消息队列Kafka版的实例所属地域。', 'description' => '消息队列Kafka版的实例所属地域。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
+ 'SecurityGroupId' => ['title' => '安全组 ID', 'description' => '安全组 ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'sg-bp1iv19sp1msc7zot4****', 'backendName' => 'SecurityGroupId'],
+ 'Topic' => ['title' => '消息队列 Kafka 版实例下的 Topic 名称', 'description' => '消息队列 Kafka 版实例下的 Topic 名称', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'popvip_center_robot_order', 'backendName' => 'Topic'],
+ 'VSwitchIds' => ['title' => '交换机 ID', 'description' => '交换机 ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp179l3llg3jjxwrq72****', 'backendName' => 'VSwitchIds'],
+ 'VpcId' => ['title' => 'VPC 网络的 ID', 'description' => 'VPC 网络的 ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vpc-8vblalsi0vbhizr77****', 'backendName' => 'VpcId'],
],
],
'SourceMNSParameters' => [
'title' => 'EventBridge 消息服务MNS版的自定义事件源参数',
'description' => 'EventBridge 轻量消息队列(原 MNS)版的自定义事件源参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'IsBase64Decode' => [
- 'title' => '是否开启Base64编码。true:开启 Base64 编码,默认值。false:不开启 Base64 编码。',
- 'description' => '是否开启Base64编码。true:开启 Base64 编码,默认值。false:不开启 Base64 编码。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'QueueName' => [
- 'title' => '消息服务MNS的Queue的名称。',
- 'description' => '轻量消息队列(原 MNS)的Queue的名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo',
- ],
- 'RegionId' => [
- 'title' => '消息服务MNS Queue所属地域。',
- 'description' => '轻量消息队列(原 MNS)Queue所属地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
- ],
+ 'IsBase64Decode' => ['title' => '是否开启Base64编码。true:开启 Base64 编码,默认值。false:不开启 Base64 编码。', 'description' => '是否开启Base64编码。true:开启 Base64 编码,默认值。false:不开启 Base64 编码。', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'IsBase64Decode'],
+ 'QueueName' => ['title' => '消息服务MNS的Queue的名称。', 'description' => '轻量消息队列(原 MNS)的Queue的名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'demo', 'backendName' => 'QueueName'],
+ 'RegionId' => ['title' => '消息服务MNS Queue所属地域。', 'description' => '轻量消息队列(原 MNS)Queue所属地域。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'backendName' => 'RegionId'],
],
],
'SourceMQTTParameters' => [
'title' => 'EventBridge 消息队列MQTT版的自定义事件源参数',
'description' => 'EventBridge 消息队列MQTT版的自定义事件源参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'InstanceId' => [
- 'title' => '消息队列MQTT版的实例的ID。',
- 'description' => '消息队列MQTT版的实例的ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'mqtt-****',
- ],
- 'RegionId' => [
- 'title' => '消息队列MQTT版的实例所属地域。',
- 'description' => '消息队列MQTT版的实例所属地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
- 'Topic' => [
- 'title' => '消息队列MQTT版实例的Topic的名称。',
- 'description' => '消息队列MQTT版实例的Topic的名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'testTopic',
- ],
+ 'InstanceId' => ['title' => '消息队列MQTT版的实例的ID。', 'description' => '消息队列MQTT版的实例的ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'mqtt-****', 'backendName' => 'InstanceId'],
+ 'RegionId' => ['title' => '消息队列MQTT版的实例所属地域。', 'description' => '消息队列MQTT版的实例所属地域。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
+ 'Topic' => ['title' => '消息队列MQTT版实例的Topic的名称。', 'description' => '消息队列MQTT版实例的Topic的名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'testTopic', 'backendName' => 'Topic'],
],
],
'SourceRabbitMQParameters' => [
'title' => 'EventBridge 消息队列RabbitMQ版的自定义事件源参数',
'description' => 'EventBridge 消息队列RabbitMQ版的自定义事件源参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'InstanceId' => [
- 'title' => '消息队列RabbitMQ版的实例的ID。',
- 'description' => '消息队列RabbitMQ版的实例的ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'amqp-cn-nif22u74****',
- ],
- 'QueueName' => [
- 'title' => '消息队列RabbitMQ版实例的Queue的名称。',
- 'description' => '消息队列RabbitMQ版实例的Queue的名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'demo',
- ],
- 'RegionId' => [
- 'title' => '消息队列RabbitMQ版的实例所属地域。',
- 'description' => '消息队列RabbitMQ版的实例所属地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
- 'VirtualHostName' => [
- 'title' => '消息队列RabbitMQ版实例的Vhost的名称。',
- 'description' => '消息队列RabbitMQ版实例的Vhost的名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'eb-connect',
- ],
+ 'InstanceId' => ['title' => '消息队列RabbitMQ版的实例的ID。', 'description' => '消息队列RabbitMQ版的实例的ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'amqp-cn-nif22u74****', 'backendName' => 'InstanceId'],
+ 'QueueName' => ['title' => '消息队列RabbitMQ版实例的Queue的名称。', 'description' => '消息队列RabbitMQ版实例的Queue的名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'demo', 'backendName' => 'QueueName'],
+ 'RegionId' => ['title' => '消息队列RabbitMQ版的实例所属地域。', 'description' => '消息队列RabbitMQ版的实例所属地域。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
+ 'VirtualHostName' => ['title' => '消息队列RabbitMQ版实例的Vhost的名称。', 'description' => '消息队列RabbitMQ版实例的Vhost的名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'eb-connect', 'backendName' => 'VirtualHostName'],
],
],
'SourceRocketMQParameters' => [
'title' => 'EventBridge 消息队列RocketMQ版的自定义事件源参数',
'description' => 'EventBridge 消息队列RocketMQ版的自定义事件源参数。',
- 'type' => 'object',
- 'properties' => [
- 'AuthType' => [
- 'title' => '认证类型。取值为 ACL 或为空。取值为 ACL 表示开启鉴权,需填写 InstanceUsername 和 InstancePassword。',
- 'description' => '认证类型。取值为 ACL 或为空。取值为 ACL 表示开启鉴权,需填写 InstanceUsername 和 InstancePassword。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ACL',
- ],
- 'FilterType' => [
- 'title' => '消息过滤类型。',
- 'description' => '消息过滤类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Tag',
- ],
- 'GroupID' => [
- 'title' => '消息队列 RocketMQ 版的 Group ID',
- 'description' => '消息队列 RocketMQ 版的 Group ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'GID_group1',
- ],
- 'InstanceEndpoint' => [
- 'title' => '消息队列 RocketMQ 版的实例接入点信息。',
- 'description' => '消息队列 RocketMQ 版的实例接入点信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com',
- ],
- 'InstanceId' => [
- 'title' => '消息队列 RocketMQ 版的实例 ID',
- 'description' => '消息队列 RocketMQ 版的实例 ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MQ_INST_164901546557****_BAAN****',
- ],
- 'InstanceNetwork' => [
- 'title' => '网络类型。',
- 'description' => '网络类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'PrivateNetwork',
- ],
- 'InstancePassword' => [
- 'title' => '消息队列 RocketMQ 版的实例的密码。',
- 'description' => '消息队列 RocketMQ 版的实例的密码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123',
- ],
- 'InstanceSecurityGroupId' => [
- 'title' => '安全组 ID。',
- 'description' => '安全组 ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sg-hp35r2hc3a3sv8q2****',
- ],
- 'InstanceType' => [
- 'title' => '消息队列 RocketMQ 版的实例类型。',
- 'description' => '消息队列 RocketMQ 版的实例类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Cloud_5',
- ],
- 'InstanceUsername' => [
- 'title' => '消息队列 RocketMQ 版的实例的用户名。使用公网访问时,SDK 代码中需要配置实例的用户名和密码,进行身份验证。',
- 'description' => '消息队列 RocketMQ 版的实例的用户名。使用公网访问时,SDK 代码中需要配置实例的用户名和密码,进行身份验证。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '6W0xz2uPfiwp****',
- ],
- 'InstanceVSwitchIds' => [
- 'title' => '实例所关联的交换机 ID。',
- 'description' => '实例所关联的交换机 ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vsw-uf6gwtbn6etadpvz7****',
- ],
- 'InstanceVpcId' => [
- 'title' => '实例所关联的专有网络的 ID。',
- 'description' => '实例所关联的专有网络的 ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc-uf6of9452b2pba82c****',
- ],
- 'Offset' => [
- 'title' => '消息的消费位点。CONSUME_FROM_LAST_OFFSET:从最新位点开始消费,默认值。CONSUME_FROM_FIRST_OFFSET:从最早位点开始消费。CONSUME_FROM_TIMESTAMP:从指定时间点的位点开始消费。',
- 'description' => '消息的消费位点。'."\n"
- ."\n"
- .'- CONSUME_FROM_LAST_OFFSET:从最新位点开始消费,默认值。'."\n"
- .'- CONSUME_FROM_FIRST_OFFSET:从最早位点开始消费。'."\n"
- .'- CONSUME_FROM_TIMESTAMP:从指定时间点的位点开始消费。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CONSUME_FROM_TIMESTAMP',
- ],
- 'RegionId' => [
- 'title' => '消息队列RocketMQ版Queue所属地域。',
- 'description' => '消息队列RocketMQ版Queue所属地域。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
- ],
- 'Tag' => [
- 'title' => '消息的过滤标签。',
- 'description' => '消息的过滤标签。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'Timestamp' => [
- 'title' => '时间戳。仅当参数 Offset 取值为 CONSUME_FROM_TIMESTAMP 时,该参数有效。',
- 'description' => '时间戳。仅当参数 Offset 取值为 CONSUME_FROM_TIMESTAMP 时,该参数有效。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1636597951964',
- ],
- 'Topic' => [
- 'title' => '消息队列 RocketMQ 版实例的 Topic 名称。',
- 'description' => '消息队列 RocketMQ 版实例的 Topic 名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'myTopic',
- ],
- ],
- ],
- 'TLSConfig' => [
- 'title' => 'TLS配置',
- 'description' => 'TLS配置。',
- 'type' => 'object',
- 'properties' => [
- 'cipherSuites' => [
- 'title' => 'TLS加密套件列表。',
- 'description' => 'TLS加密套件列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => 'TLS加密套件。',
- 'type' => 'string',
- 'example' => 'TLS_RSA_WITH_RC4_128_SHA',
- ],
- 'required' => true,
- ],
- 'maxVersion' => [
- 'title' => 'TLS最大版本号。枚举值:TLSv1.3, TLSv1.2, TLSv1.1, TLSv1.0',
- 'description' => 'TLS最大版本号。枚举值:TLSv1.3, TLSv1.2',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TLSv1.3',
- ],
- 'minVersion' => [
- 'title' => 'TLS最小版本号。枚举值:TLSv1.3, TLSv1.2, TLSv1.1, TLSv1.0',
- 'description' => 'TLS最小版本号。枚举值:TLSv1.3, TLSv1.2',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'TLSv1.2',
- ],
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'AuthType' => ['title' => '认证类型。取值为 ACL 或为空。取值为 ACL 表示开启鉴权,需填写 InstanceUsername 和 InstancePassword。', 'description' => '认证类型。取值为 ACL 或为空。取值为 ACL 表示开启鉴权,需填写 InstanceUsername 和 InstancePassword。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'ACL', 'backendName' => 'AuthType'],
+ 'FilterType' => ['title' => '消息过滤类型。', 'description' => '消息过滤类型。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Tag', 'backendName' => 'FilterType'],
+ 'GroupID' => ['title' => '消息队列 RocketMQ 版的 Group ID', 'description' => '消息队列 RocketMQ 版的 Group ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'GID_group1', 'backendName' => 'GroupID'],
+ 'InstanceEndpoint' => ['title' => '消息队列 RocketMQ 版的实例接入点信息。', 'description' => '消息队列 RocketMQ 版的实例接入点信息。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com', 'backendName' => 'InstanceEndpoint'],
+ 'InstanceId' => ['title' => '消息队列 RocketMQ 版的实例 ID', 'description' => '消息队列 RocketMQ 版的实例 ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'MQ_INST_164901546557****_BAAN****', 'backendName' => 'InstanceId'],
+ 'InstanceNetwork' => ['title' => '网络类型。', 'description' => '网络类型。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'PrivateNetwork', 'backendName' => 'InstanceNetwork'],
+ 'InstancePassword' => ['title' => '消息队列 RocketMQ 版的实例的密码。', 'description' => '消息队列 RocketMQ 版的实例的密码。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '123', 'backendName' => 'InstancePassword'],
+ 'InstanceSecurityGroupId' => ['title' => '安全组 ID。', 'description' => '安全组 ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'sg-hp35r2hc3a3sv8q2****', 'backendName' => 'InstanceSecurityGroupId'],
+ 'InstanceType' => ['title' => '消息队列 RocketMQ 版的实例类型。', 'description' => '消息队列 RocketMQ 版的实例类型。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Cloud_5', 'backendName' => 'InstanceType'],
+ 'InstanceUsername' => ['title' => '消息队列 RocketMQ 版的实例的用户名。使用公网访问时,SDK 代码中需要配置实例的用户名和密码,进行身份验证。', 'description' => '消息队列 RocketMQ 版的实例的用户名。使用公网访问时,SDK 代码中需要配置实例的用户名和密码,进行身份验证。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '6W0xz2uPfiwp****', 'backendName' => 'InstanceUsername'],
+ 'InstanceVSwitchIds' => ['title' => '实例所关联的交换机 ID。', 'description' => '实例所关联的交换机 ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vsw-uf6gwtbn6etadpvz7****', 'backendName' => 'InstanceVSwitchIds'],
+ 'InstanceVpcId' => ['title' => '实例所关联的专有网络的 ID。', 'description' => '实例所关联的专有网络的 ID。', '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' => '消息的消费位点。'."\n"
+ ."\n"
+ .'- CONSUME_FROM_LAST_OFFSET:从最新位点开始消费,默认值。'."\n"
+ .'- CONSUME_FROM_FIRST_OFFSET:从最早位点开始消费。'."\n"
+ .'- CONSUME_FROM_TIMESTAMP:从指定时间点的位点开始消费。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'CONSUME_FROM_TIMESTAMP', 'backendName' => 'Offset'],
+ 'RegionId' => ['title' => '消息队列RocketMQ版Queue所属地域。', 'description' => '消息队列RocketMQ版Queue所属地域。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'backendName' => 'RegionId'],
+ 'Tag' => ['title' => '消息的过滤标签。', 'description' => '消息的过滤标签。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'test', 'backendName' => 'Tag'],
+ 'Timestamp' => ['title' => '时间戳。仅当参数 Offset 取值为 CONSUME_FROM_TIMESTAMP 时,该参数有效。', 'description' => '时间戳。仅当参数 Offset 取值为 CONSUME_FROM_TIMESTAMP 时,该参数有效。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1636597951964', 'backendName' => 'Timestamp'],
+ 'Topic' => ['title' => '消息队列 RocketMQ 版实例的 Topic 名称。', 'description' => '消息队列 RocketMQ 版实例的 Topic 名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'myTopic', 'backendName' => 'Topic'],
],
],
'Tag' => [
'title' => '标签',
'description' => '标签',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'title' => '标签名',
- 'description' => '标签名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'k1',
- ],
- 'Value' => [
- 'title' => '标签值',
- 'description' => '标签值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v1',
- ],
+ 'Key' => ['title' => '标签名', 'description' => '标签名', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'k1', 'backendName' => 'Key'],
+ 'Value' => ['title' => '标签值', 'description' => '标签值', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'v1', 'backendName' => 'Value'],
],
],
'TagResource' => [
'title' => '资源标签信息',
'description' => '资源标签信息。',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'ResourceId' => [
- 'title' => '阿里云资源描述符。',
- 'description' => '阿里云资源描述符。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:****:functions/demo',
- ],
- 'ResourceType' => [
- 'title' => '资源类型名称。函数计算3.0中的函数:ALIYUN::FC::FUNCTION,函数计算旧版本中的服务:ALIYUN::FC::SERVICE。',
- 'description' => '资源类型名称。'."\n"
- ."\n"
- .'函数计算3.0中的函数类型:ALIYUN::FC::FUNCTION,简写:function。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'function',
- ],
- 'TagKey' => [
- 'title' => '标签键',
- 'description' => '标签键。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'key1',
- ],
- 'TagValue' => [
- 'title' => '标签值',
- 'description' => '标签值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'key1',
- ],
+ 'ResourceId' => ['title' => '阿里云资源描述符。', 'description' => '阿里云资源描述符。', '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' => '资源类型名称。'."\n"
+ ."\n"
+ .'函数计算3.0中的函数类型:ALIYUN::FC::FUNCTION,简写:function。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'function', 'backendName' => 'ResourceType'],
+ 'TagKey' => ['title' => '标签键', 'description' => '标签键。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'key1', 'backendName' => 'TagKey'],
+ 'TagValue' => ['title' => '标签值', 'description' => '标签值。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'key1', 'backendName' => 'TagValue'],
],
],
'TagResourceInput' => [
'title' => '给指定资源打标签',
'description' => '给指定资源打标签',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'resourceArn' => [
- 'title' => '资源描述符。',
- 'description' => '资源描述符。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1',
- 'minLength' => 1,
- ],
+ 'resourceArn' => ['title' => '资源描述符。', 'description' => '资源描述符。', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1', 'minLength' => 1, 'backendName' => 'resourceArn'],
'tags' => [
'title' => '标签字典。',
'description' => '标签字典。',
+ 'visibility' => 'Public',
'type' => 'object',
'required' => true,
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => 'value1',
- ],
+ 'additionalProperties' => ['visibility' => 'Public', 'type' => 'string', 'example' => 'value1'],
+ 'backendName' => 'tags',
],
],
],
'TagResourcesInput' => [
'title' => '给指定资源打标签',
'description' => '给指定资源打标签',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'ResourceId' => [
'title' => '资源ID列表',
'description' => '资源ID列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '资源ID。',
- 'type' => 'string',
- 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1',
- ],
+ 'items' => ['description' => '资源ID。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1', 'extendType' => 'true'],
'required' => true,
+ 'backendName' => 'ResourceId',
],
- 'ResourceType' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'FUNCTION',
- ],
+ 'ResourceType' => ['title' => '资源类型', 'description' => '资源类型', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'FUNCTION', 'backendName' => 'ResourceType'],
'Tag' => [
'title' => '标签列表',
'description' => '标签列表',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '标签信息。',
- '$ref' => '#/components/schemas/Tag',
- ],
+ 'items' => ['description' => '标签信息。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Tag'],
'required' => true,
+ 'backendName' => 'Tag',
],
],
],
'TargetTrackingPolicy' => [
'title' => '指标追踪伸缩策略配置',
'description' => '指标追踪伸缩策略配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'endTime' => [
- 'title' => '策略结束时间。',
- 'description' => '策略结束时间(UTC)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-03-10T10:10:10Z',
- ],
- 'maxCapacity' => [
- 'title' => '扩容的最大值。',
- 'description' => '扩容的最大值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '10',
- ],
- 'metricTarget' => [
- 'title' => '指标的追踪值。',
- 'description' => '指标的追踪值。',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'example' => '0.6',
- ],
- 'metricType' => [
- 'title' => '跟踪的指标类型:ProvisionedConcurrencyUtilization:预留模式实例并发度利用率。CPUUtilization:CPU利用率。GPUMemUtilization:GPU利用率。',
- 'description' => '跟踪的指标类型:ProvisionedConcurrencyUtilization:预留模式实例并发度利用率。CPUUtilization:CPU利用率。GPUMemUtilization:GPU利用率。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'CPUUtilization',
- ],
- 'minCapacity' => [
- 'title' => '缩容的最小值。',
- 'description' => '缩容的最小值。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
- 'name' => [
- 'title' => '策略名称。',
- 'description' => '策略名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test_1',
- ],
- 'startTime' => [
- 'title' => '策略开始生效时间。',
- 'description' => '策略开始生效时间(UTC)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-03-10T10:10:10Z',
- ],
- 'timeZone' => [
- 'title' => '时区。时区参数为空时,startTime和endTime的时间需为UTC格式。',
- 'description' => '时区。时区参数为空时,startTime和endTime的时间需为UTC格式。',
- 'type' => 'string',
- 'example' => 'Asia/Shanghai',
+ 'endTime' => ['title' => '策略结束时间。', 'description' => '策略结束时间(UTC)。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2024-03-10T10:10:10Z', 'backendName' => 'endTime'],
+ 'maxCapacity' => ['title' => '扩容的最大值。', 'description' => '扩容的最大值。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10', 'backendName' => 'maxCapacity'],
+ 'metricTarget' => ['title' => '指标的追踪值。', 'description' => '指标的追踪值。', 'visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '0.6', 'backendName' => 'metricTarget'],
+ 'metricType' => ['title' => '跟踪的指标类型:ProvisionedConcurrencyUtilization:预留模式实例并发度利用率。CPUUtilization:CPU利用率。GPUMemUtilization:GPU利用率。', 'description' => '跟踪的指标类型:ProvisionedConcurrencyUtilization:预留模式实例并发度利用率。CPUUtilization:CPU利用率。GPUMemUtilization:GPU利用率。', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'CPUUtilization', 'backendName' => 'metricType'],
+ 'minCapacity' => ['title' => '缩容的最小值。', 'description' => '缩容的最小值。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1', 'backendName' => 'minCapacity'],
+ 'name' => ['title' => '策略名称。', 'description' => '策略名称。', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'test_1', 'backendName' => 'name'],
+ 'startTime' => ['title' => '策略开始生效时间。', 'description' => '策略开始生效时间(UTC)。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2023-03-10T10:10:10Z', 'backendName' => 'startTime'],
+ 'timeZone' => ['title' => '时区。时区参数为空时,startTime和endTime的时间需为UTC格式。', 'description' => '时区。时区参数为空时,startTime和endTime的时间需为UTC格式。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Asia/Shanghai', 'backendName' => 'timeZone'],
+ ],
+ ],
+ 'TimedPoolConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'effectiveStartDate' => ['type' => 'string'],
+ 'effectiveEndDate' => ['type' => 'string'],
+ 'elasticIntervals' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ElasticInterval'],
],
+ 'timeZone' => ['type' => 'string'],
+ ],
+ ],
+ 'TimedResidentResourcePoolApplication' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'timedPoolId' => ['type' => 'string'],
+ 'accountId' => ['type' => 'string'],
+ 'operationType' => ['type' => 'string'],
+ 'status' => ['type' => 'string'],
+ 'content' => ['type' => 'string'],
+ 'createdTime' => ['type' => 'string'],
+ 'lastModifiedTime' => ['type' => 'string'],
],
],
'TimerTriggerConfig' => [
'title' => '定时触发器配置',
'description' => '定时触发器配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'cronExpression' => [
- 'title' => '触发周期表达式。按照时间间隔触发:以每间隔4分钟为例,表达式为 “@every 4m”。按照CRON表达式触发:常见格式类似 “0 0 4 * * *”',
- 'description' => '触发周期表达式。按照时间间隔触发:以每间隔4分钟为例,表达式为 “@every 4m”。按照CRON表达式触发:常见格式类似 “0 0 4 * * *”',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0 0 4 * * *',
- ],
- 'enable' => [
- 'title' => '是否启用触发器',
- 'description' => '是否启用触发器',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'payload' => [
- 'title' => '输入自定义的参数,该触发消息将会作为event中payload的值。',
- 'description' => '输入自定义的参数,该触发消息将会作为event中payload的值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"workflowInstanceId":"39639"}',
+ 'cronExpression' => ['title' => '触发周期表达式。按照时间间隔触发:以每间隔4分钟为例,表达式为 “@every 4m”。按照CRON表达式触发:常见格式类似 “0 0 4 * * *”', 'description' => '触发周期表达式。按照时间间隔触发:以每间隔4分钟为例,表达式为 “@every 4m”。按照CRON表达式触发:常见格式类似 “0 0 4 * * *”', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '0 0 4 * * *', 'backendName' => 'cronExpression'],
+ 'enable' => ['title' => '是否启用触发器', 'description' => '是否启用触发器', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'enable'],
+ 'payload' => ['title' => '输入自定义的参数,该触发消息将会作为event中payload的值。', 'description' => '输入自定义的参数,该触发消息将会作为event中payload的值。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '{"workflowInstanceId":"39639"}', 'backendName' => 'payload'],
+ ],
+ ],
+ 'TLSConfig' => [
+ 'title' => 'TLS配置',
+ 'description' => 'TLS配置。',
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'cipherSuites' => [
+ 'title' => 'TLS加密套件列表。',
+ 'description' => 'TLS加密套件列表。',
+ 'visibility' => 'Public',
+ 'type' => 'array',
+ 'items' => ['description' => 'TLS加密套件。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'TLS_RSA_WITH_RC4_128_SHA', 'extendType' => 'true'],
+ 'required' => true,
+ 'backendName' => 'cipherSuites',
],
+ 'maxVersion' => ['title' => 'TLS最大版本号。枚举值:TLSv1.3, TLSv1.2, TLSv1.1, TLSv1.0', 'description' => 'TLS最大版本号。枚举值:TLSv1.3, TLSv1.2', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'TLSv1.3', 'backendName' => 'maxVersion'],
+ 'minVersion' => ['title' => 'TLS最小版本号。枚举值:TLSv1.3, TLSv1.2, TLSv1.1, TLSv1.0', 'description' => 'TLS最小版本号。枚举值:TLSv1.3, TLSv1.2', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'TLSv1.2', 'backendName' => 'minVersion'],
],
],
'TracingConfig' => [
'title' => '链路追踪配置',
'description' => '链路追踪配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'params' => [
'title' => '链路追踪参数。参数为map[string]string,其中key为"endpoint",value为您的链路追踪内网接入点。 例如 endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces 。',
'description' => '链路追踪参数。参数为map[string]string,其中key为"endpoint",value为您的链路追踪内网接入点。 例如 endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces 。',
+ 'visibility' => 'Public',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => 'http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces',
- ],
- ],
- 'type' => [
- 'title' => '链路追踪协议类型,目前只支持Jaeger。',
- 'description' => '链路追踪协议类型,目前只支持Jaeger。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Jaeger',
+ 'additionalProperties' => ['visibility' => 'Public', 'type' => 'string', 'example' => 'http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces'],
+ 'backendName' => 'params',
],
+ 'type' => ['title' => '链路追踪协议类型,目前只支持Jaeger。', 'description' => '链路追踪协议类型,目前只支持Jaeger。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'Jaeger', 'backendName' => 'type'],
],
],
'Trigger' => [
'title' => '触发器的配置信息',
'description' => '触发器的配置信息。',
- 'type' => 'object',
- 'properties' => [
- 'createdTime' => [
- 'title' => '触发器的创建时间。',
- 'description' => '触发器的创建时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2020-08-20T02:28:21Z',
- ],
- 'description' => [
- 'title' => '触发器的描述。',
- 'description' => '触发器的描述。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_description',
- ],
- 'httpTrigger' => [
- 'title' => 'HTTP 触发器信息。',
- 'description' => 'HTTP 触发器信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/HTTPTrigger',
- ],
- 'invocationRole' => [
- 'title' => '事件源(如OSS)调用函数所需的角色。',
- 'description' => '事件源(如OSS)调用函数所需的角色。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::151641468453****:role/my-role',
- ],
- 'lastModifiedTime' => [
- 'title' => '触发器的上次修改时间。',
- 'description' => '触发器的上次修改时间。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2020-04-23T06:32:43Z',
- ],
- 'qualifier' => [
- 'title' => '函数的版本或别名。',
- 'description' => '函数的版本或别名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
- 'sourceArn' => [
- 'title' => '触发器事件源的Aliyun Resource Name。',
- 'description' => '触发器事件源的Aliyun Resource Name。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:oss:cn-hangzhou:151641468453****:my-bucket',
- ],
- 'status' => [
- 'title' => '触发器的状态。',
- 'description' => '触发器的状态。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OK',
- ],
- 'targetArn' => [
- 'title' => '函数的资源标识。',
- 'description' => '函数的资源标识。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:oss:cn-hangzhou:151641468453****:my-bucket',
- ],
- 'triggerConfig' => [
- 'title' => '触发器配置,针对不同类型的触发器,配置有所不同。',
- 'description' => '触发器配置,针对不同类型的触发器,配置有所不同。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{'."\n"
- .' "events": ['."\n"
- .' "oss:ObjectCreated:*"'."\n"
- .' ],'."\n"
- .' "filter": {'."\n"
- .' "key": {'."\n"
- .' "prefix": "/prefix",'."\n"
- .' "suffix": ".zip"'."\n"
- .' }'."\n"
- .' }'."\n"
- .'}',
- ],
- 'triggerId' => [
- 'title' => '触发器的唯一ID。',
- 'description' => '触发器的唯一ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '546959b5-ce1a-4991-8891-df7a02b25086',
- ],
- 'triggerName' => [
- 'title' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。',
- 'description' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'defaultTrigger',
- ],
- 'triggerType' => [
- 'title' => '触发器的类型。',
- 'description' => '触发器的类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http',
- ],
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'createdTime' => ['title' => '触发器的创建时间。', 'description' => '触发器的创建时间。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2020-08-20T02:28:21Z', 'backendName' => 'createdTime'],
+ 'description' => ['title' => '触发器的描述。', 'description' => '触发器的描述。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'test_description', 'backendName' => 'description'],
+ 'httpTrigger' => ['title' => 'HTTP 触发器信息。', 'description' => 'HTTP 触发器信息。', 'visibility' => 'Public', 'required' => false, 'backendName' => 'httpTrigger', '$ref' => '#/components/schemas/HTTPTrigger'],
+ 'invocationRole' => ['title' => '事件源(如OSS)调用函数所需的角色。', 'description' => '事件源(如OSS)调用函数所需的角色。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::151641468453****:role/my-role', 'backendName' => 'invocationRole'],
+ 'lastModifiedTime' => ['title' => '触发器的上次修改时间。', 'description' => '触发器的上次修改时间。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2020-04-23T06:32:43Z', 'backendName' => 'lastModifiedTime'],
+ 'qualifier' => ['title' => '函数的版本或别名。', 'description' => '函数的版本或别名。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'backendName' => 'qualifier'],
+ 'sourceArn' => ['title' => '触发器事件源的Aliyun Resource Name。', 'description' => '触发器事件源的Aliyun Resource Name。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:oss:cn-hangzhou:151641468453****:my-bucket', 'backendName' => 'sourceArn'],
+ 'status' => ['title' => '触发器的状态。', 'description' => '触发器的状态。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'OK', 'backendName' => 'status'],
+ 'targetArn' => ['title' => '函数的资源标识。', 'description' => '函数的资源标识。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:oss:cn-hangzhou:151641468453****:my-bucket', 'backendName' => 'targetArn'],
+ 'triggerConfig' => ['title' => '触发器配置,针对不同类型的触发器,配置有所不同。', 'description' => '触发器配置,针对不同类型的触发器,配置有所不同。', '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' => '触发器的唯一ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '546959b5-ce1a-4991-8891-df7a02b25086', 'backendName' => 'triggerId'],
+ 'triggerName' => ['title' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。', 'description' => '触发器的名称。要求只能包含字母、数字、下划线(_)和短划线(-)。不能以数字、短划线(-)开头,长度限制为1~128个字符。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'defaultTrigger', 'backendName' => 'triggerName'],
+ 'triggerType' => ['title' => '触发器的类型。', 'description' => '触发器的类型。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'http', 'backendName' => 'triggerType'],
],
],
'UpdateAliasInput' => [
'title' => '更新别名的请求参数',
'description' => '更新别名的请求参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
'additionalVersionWeight' => [
'title' => '灰度版本',
'description' => '灰度版本权重',
+ 'visibility' => 'Public',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.5',
- ],
- ],
- 'description' => [
- 'title' => '别名的描述信息',
- 'description' => '别名的描述信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my alias',
- 'maxLength' => 256,
- ],
- 'versionId' => [
- 'title' => '别名指向的版本',
- 'description' => '别名指向的版本',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- 'maxLength' => 10,
- 'minLength' => 1,
+ 'additionalProperties' => ['visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'example' => '0.5'],
+ 'backendName' => 'additionalVersionWeight',
],
+ 'description' => ['title' => '别名的描述信息', 'description' => '别名的描述信息', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my alias', 'maxLength' => 256, 'backendName' => 'description'],
+ 'versionId' => ['title' => '别名指向的版本', 'description' => '别名指向的版本', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1', 'maxLength' => 10, 'minLength' => 1, 'backendName' => 'versionId'],
],
],
'UpdateCustomDomainInput' => [
@@ -5657,49 +2473,13 @@
'description' => '更新自定义域名的请求信息',
'type' => 'object',
'properties' => [
- 'authConfig' => [
- 'title' => '权限认证配置',
- 'description' => '权限认证配置',
- 'required' => false,
- '$ref' => '#/components/schemas/AuthConfig',
- ],
- 'certConfig' => [
- 'title' => 'HTTPS证书的信息。',
- 'description' => 'HTTPS证书的信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/CertConfig',
- ],
- 'corsConfig' => [
- 'title' => 'CORS 配置',
- 'description' => 'CORS 配置',
- 'required' => false,
- '$ref' => '#/components/schemas/CORSConfig',
- ],
- 'protocol' => [
- 'title' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。',
- 'description' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'HTTP',
- ],
- 'routeConfig' => [
- 'title' => '路由表:自定义域名访问时的PATH到Function的映射。',
- 'description' => '路由表:自定义域名访问时的PATH到Function的映射。',
- 'required' => false,
- '$ref' => '#/components/schemas/RouteConfig',
- ],
- 'tlsConfig' => [
- 'title' => 'TLS配置信息。',
- 'description' => 'TLS配置信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/TLSConfig',
- ],
- 'wafConfig' => [
- 'title' => 'Web应用防火墙配置信息。',
- 'description' => 'Web应用防火墙配置信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/WAFConfig',
- ],
+ 'authConfig' => ['title' => '权限认证配置', 'description' => '权限认证配置', 'required' => false, '$ref' => '#/components/schemas/AuthConfig'],
+ 'certConfig' => ['title' => 'HTTPS证书的信息。', 'description' => 'HTTPS证书的信息。', 'required' => false, '$ref' => '#/components/schemas/CertConfig'],
+ 'corsConfig' => ['title' => 'CORS 配置', 'required' => false, '$ref' => '#/components/schemas/CORSConfig'],
+ 'protocol' => ['title' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。', 'description' => '域名支持的协议类型。HTTP:仅支持HTTP协议。HTTPS:仅支持HTTPS协议。HTTP,HTTPS:支持HTTP及HTTPS协议。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
+ 'routeConfig' => ['title' => '路由表:自定义域名访问时的PATH到Function的映射。', 'description' => '路由表:自定义域名访问时的PATH到Function的映射。', 'required' => false, '$ref' => '#/components/schemas/RouteConfig'],
+ 'tlsConfig' => ['title' => 'TLS配置信息。', 'description' => 'TLS配置信息。', 'required' => false, '$ref' => '#/components/schemas/TLSConfig'],
+ 'wafConfig' => ['title' => 'Web应用防火墙配置信息。', 'description' => 'Web应用防火墙配置信息。', 'required' => false, '$ref' => '#/components/schemas/WAFConfig'],
],
],
'UpdateFunctionInput' => [
@@ -5707,213 +2487,52 @@
'description' => '函数更新请求参数。',
'type' => 'object',
'properties' => [
- 'code' => [
- 'title' => '函数代码ZIP包。code和customContainerConfig二选一。',
- 'description' => '函数代码ZIP包。code和customContainerConfig二选一。',
- 'required' => false,
- '$ref' => '#/components/schemas/InputCodeLocation',
- ],
- 'cpu' => [
- 'title' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。',
- 'description' => '函数的CPU规格,单位为vCPU,取值需要为0.05 vCPU的倍数。',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'example' => '1',
- ],
- 'customContainerConfig' => [
- 'title' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。',
- 'description' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomContainerConfig',
- ],
- 'customDNS' => [
- 'title' => '自定义DNS配置。',
- 'description' => '自定义DNS配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomDNS',
- ],
- 'customRuntimeConfig' => [
- 'title' => '自定义运行时配置。',
- 'description' => '自定义运行时配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomRuntimeConfig',
- ],
- 'description' => [
- 'title' => '函数的描述。',
- 'description' => '函数的描述。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my function',
- 'maxLength' => 256,
- ],
- 'diskSize' => [
- 'title' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。',
- 'description' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- ],
+ 'code' => ['title' => '函数代码ZIP包。code和customContainerConfig二选一。', 'description' => '函数代码ZIP包。code和customContainerConfig二选一。', 'required' => false, '$ref' => '#/components/schemas/InputCodeLocation'],
+ 'cpu' => ['title' => '函数的CPU规格,单位为vCPU,为0.05 vCPU的倍数。', 'description' => '函数的CPU规格,单位为vCPU,取值需要为0.05 vCPU的倍数。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1'],
+ 'customContainerConfig' => ['title' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。', 'description' => '自定义容器运行时的相关配置,成功配置后函数可以使用自定义容器镜像执行函数。code和customContainerConfig二选一。', 'required' => false, '$ref' => '#/components/schemas/CustomContainerConfig'],
+ 'customDNS' => ['title' => '自定义DNS配置。', 'description' => '自定义DNS配置。', 'required' => false, '$ref' => '#/components/schemas/CustomDNS'],
+ 'customRuntimeConfig' => ['title' => '自定义运行时配置。', 'description' => '自定义运行时配置。', 'required' => false, '$ref' => '#/components/schemas/CustomRuntimeConfig'],
+ 'description' => ['title' => '函数的描述。', 'description' => '函数的描述。', 'type' => 'string', 'required' => false, 'example' => 'my function', 'maxLength' => 256],
+ 'diskSize' => ['title' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。', 'description' => '函数的磁盘规格,单位为MB,可选值为512 MB或10240 MB。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
'environmentVariables' => [
'title' => '函数的环境变量,可以在运行环境中访问设置的环境变量。',
'description' => '函数的环境变量,可以在运行环境中访问设置的环境变量。',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => 'value1',
- ],
- ],
- 'gpuConfig' => [
- 'title' => '函数GPU配置。',
- 'description' => '函数GPU配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/GPUConfig',
- ],
- 'handler' => [
- 'title' => '函数执行的入口,具体格式和运行时相关。',
- 'description' => '函数执行的入口,具体格式和运行时相关。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'index.handler',
- 'maxLength' => 128,
- 'minLength' => 1,
- ],
- 'instanceConcurrency' => [
- 'title' => '实例最大并发度。',
- 'description' => '实例最大并发度。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'instanceLifecycleConfig' => [
- 'title' => '实例生命周期回调方法配置。',
- 'description' => '实例生命周期回调方法配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/InstanceLifecycleConfig',
- ],
- 'internetAccess' => [
- 'title' => 'service config',
- 'description' => '是否允许访问公网。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
+ 'additionalProperties' => ['type' => 'string', 'example' => 'value1', 'description' => ''],
],
+ 'gpuConfig' => ['title' => '函数GPU配置。', 'description' => '函数GPU配置。', 'required' => false, '$ref' => '#/components/schemas/GPUConfig'],
+ 'handler' => ['title' => '函数执行的入口,具体格式和运行时相关。', 'description' => '函数执行的入口,具体格式和运行时相关。', 'type' => 'string', 'required' => false, 'example' => 'index.handler', 'maxLength' => 128, 'minLength' => 1],
+ 'instanceConcurrency' => ['title' => '实例最大并发度。', 'description' => '实例最大并发度。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'instanceLifecycleConfig' => ['title' => '实例生命周期回调方法配置。', 'description' => '实例生命周期回调方法配置。', 'required' => false, '$ref' => '#/components/schemas/InstanceLifecycleConfig'],
+ 'internetAccess' => ['title' => 'service config', 'description' => '是否允许访问公网。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'layers' => [
'title' => '层的列表。多个层会按照数组下标从大到小的顺序进行合并,下标小的层的内容会覆盖下标大的层的同名文件。',
'description' => '层的列表。多个层会按照数组下标从大到小的顺序进行合并,下标小的层的内容会覆盖下标大的层的同名文件。',
'type' => 'array',
- 'items' => [
- 'description' => '层ARN。',
- 'type' => 'string',
- 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1',
- ],
- 'required' => false,
- ],
- 'logConfig' => [
- 'title' => '日志配置。函数产生的日志会被写入到配置的日志库中。',
- 'description' => '日志配置。函数产生的日志会被写入到配置的日志库中。',
- 'required' => false,
- '$ref' => '#/components/schemas/LogConfig',
- ],
- 'memorySize' => [
- 'title' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。不同的函数实例类型,内存规格存在差异。',
- 'description' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。不同的函数实例类型,内存规格存在差异。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '512',
- ],
- 'nasConfig' => [
- 'title' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。',
- 'description' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。',
- 'required' => false,
- '$ref' => '#/components/schemas/NASConfig',
- ],
- 'ossMountConfig' => [
- 'title' => 'OSS挂载配置。',
- 'description' => 'OSS挂载配置。',
- 'required' => false,
- '$ref' => '#/components/schemas/OSSMountConfig',
- ],
- 'role' => [
- 'title' => '授予函数计算所需权限的RAM角色,使用场景包含:1. 把函数产生的日志发送到您的日志库中。2. 为函数在执行过程中访问其他云资源生成的临时访问令牌。',
- 'description' => '授予函数计算所需权限的RAM角色,使用场景包含:1. 把函数产生的日志发送到您的日志库中。2. 为函数在执行过程中访问其他云资源生成的临时访问令牌。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::188077086902****:role/fc-test',
- 'maxLength' => 300,
- ],
- 'runtime' => [
- 'title' => '函数的运行时环境。',
- 'description' => '函数的运行时环境。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'nodejs14',
- ],
- 'timeout' => [
- 'title' => '函数运行的超时时间,单位为秒,最小1秒,默认3秒。函数超过这个时间后会被终止执行。',
- 'description' => '函数运行的超时时间,单位为秒,最小1秒,默认3秒。函数超过这个时间后会被终止执行。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '60',
- ],
- 'tracingConfig' => [
- 'title' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。',
- 'description' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。',
- 'required' => false,
- '$ref' => '#/components/schemas/TracingConfig',
- ],
- 'vpcConfig' => [
- 'title' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。',
- 'description' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。',
- 'required' => false,
- '$ref' => '#/components/schemas/VPCConfig',
- ],
- 'disableOndemand' => [
- 'title' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例',
- 'description' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例。',
- 'type' => 'boolean',
- 'deprecated' => true,
- ],
- 'sessionAffinity' => [
- 'title' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。',
- 'description' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。',
- 'type' => 'string',
- 'example' => 'MCP_SSE',
- ],
- 'enableLongLiving' => [
- 'title' => '是否允许 GPU 函数的预留实例常驻,启用该功能时,创建的函数实例不会被注入 STS token。',
- 'description' => '是否允许 GPU 函数的预留实例常驻,启用该功能时,创建的函数实例不会被注入 STS token。',
- 'type' => 'boolean',
- 'deprecated' => true,
- ],
+ 'items' => ['description' => '层ARN。', 'type' => 'string', 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1'],
+ 'required' => false,
+ ],
+ 'logConfig' => ['title' => '日志配置。函数产生的日志会被写入到配置的日志库中。', 'description' => '日志配置。函数产生的日志会被写入到配置的日志库中。', 'required' => false, '$ref' => '#/components/schemas/LogConfig'],
+ 'memorySize' => ['title' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。不同的函数实例类型,内存规格存在差异。', 'description' => '函数的内存规格,单位为MB,内存大小为64 MB的倍数。不同的函数实例类型,内存规格存在差异。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512'],
+ 'nasConfig' => ['title' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。', 'description' => 'NAS配置。配置此参数后,函数可以访问指定的NAS资源。', 'required' => false, '$ref' => '#/components/schemas/NASConfig'],
+ 'ossMountConfig' => ['title' => 'OSS挂载配置。', 'description' => 'OSS挂载配置。', 'required' => false, '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'role' => ['title' => '授予函数计算所需权限的RAM角色,使用场景包含:1. 把函数产生的日志发送到您的日志库中。2. 为函数在执行过程中访问其他云资源生成的临时访问令牌。', 'description' => '授予函数计算所需权限的RAM角色,使用场景包含:1. 把函数产生的日志发送到您的日志库中。2. 为函数在执行过程中访问其他云资源生成的临时访问令牌。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::188077086902****:role/fc-test', 'maxLength' => 300],
+ 'runtime' => ['title' => '函数的运行时环境。', 'description' => '函数的运行时环境。', 'type' => 'string', 'required' => false, 'example' => 'nodejs14'],
+ 'timeout' => ['title' => '函数运行的超时时间,单位为秒,最小1秒,默认3秒。函数超过这个时间后会被终止执行。', 'description' => '函数运行的超时时间,单位为秒,最小1秒,默认3秒。函数超过这个时间后会被终止执行。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
+ 'tracingConfig' => ['title' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。', 'description' => '链路追踪配置。当函数计算与链路追踪集成后,您可以记录请求在函数计算的耗时时间、查看函数的冷启动时间、记录函数内部时间的消耗等。', 'required' => false, '$ref' => '#/components/schemas/TracingConfig'],
+ 'vpcConfig' => ['title' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。', 'description' => 'VPC配置。配置此参数后,函数可以访问指定的VPC资源。', 'required' => false, '$ref' => '#/components/schemas/VPCConfig'],
+ 'disableOndemand' => ['title' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例', 'description' => '是否禁止创建按量实例,功能开启后,不会创建按量实例,只能使用预留实例。', 'type' => 'boolean', 'deprecated' => true],
+ 'sessionAffinity' => ['title' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。', 'description' => '函数计算调用请求的亲和策略,如需实现 MCP SSE协议的请求亲和,可设置为 MCP_SSE。如使用Cookie亲和,可设置为 GENERATED_COOKIE。如使用 Header亲和,可设置为 HEADER_FIELD。如不设置或设置为 NONE,则无亲和效果,按函数计算系统默认调度策略路由请求。', 'type' => 'string', 'example' => 'MCP_SSE'],
+ 'enableLongLiving' => ['title' => '是否允许 GPU 函数的预留实例常驻,启用该功能时,创建的函数实例不会被注入 STS token。', 'description' => '是否允许 GPU 函数的预留实例常驻,启用该功能时,创建的函数实例不会被注入 STS token。', 'type' => 'boolean', 'deprecated' => true],
'instanceIsolationMode' => [
'title' => '实例隔离模式',
'description' => '实例隔离模式',
'type' => 'string',
- 'enum' => [
- 'SHARE',
- 'REQUEST_EXCLUSIVE',
- 'SESSION_EXCLUSIVE',
- ],
- ],
- 'sessionAffinityConfig' => [
- 'title' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。',
- 'description' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。',
- 'type' => 'string',
- 'example' => '{\\"sseEndpointPath\\":\\"/sse\\", \\"sessionConcurrencyPerInstance\\":20}',
- ],
- 'idleTimeout' => [
- 'title' => '实例空闲超时时间',
- 'description' => '实例延迟释放时间',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
+ 'enum' => ['SHARE', 'REQUEST_EXCLUSIVE', 'SESSION_EXCLUSIVE'],
],
+ 'sessionAffinityConfig' => ['title' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。', 'description' => '当设置sessionAffinity亲和类型时,需设置相关的亲和配置。如MCP_SSE亲和需填充 MCPSSESessionAffinityConfig 配置。Cookie亲和需填充CookieSessionAffinityConfig配置,Header Field 亲和需填充HeaderFieldSessionAffinityConfig配置。', 'type' => 'string', 'example' => '{\\"sseEndpointPath\\":\\"/sse\\", \\"sessionConcurrencyPerInstance\\":20}'],
+ 'idleTimeout' => ['title' => '实例空闲超时时间', 'description' => '实例延迟释放时间', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'disableInjectCredentials' => [
'title' => '是否不注入 STS token,取值None/Env/Request/All'."\n"
.'None: 都注入'."\n"
@@ -5928,28 +2547,11 @@
'type' => 'string',
'example' => 'Env',
'default' => 'None',
- 'enum' => [
- 'None',
- 'Env',
- 'Request',
- 'All',
- ],
- ],
- 'polarFsConfig' => [
- 'description' => 'PolarFs配置。配置此参数后,函数可以访问指定的PolarFs资源。',
- '$ref' => '#/components/schemas/PolarFsConfig',
- ],
- ],
- ],
- 'UpdateResidentResourcePoolInput' => [
- 'type' => 'object',
- 'properties' => [
- 'name' => [
- 'type' => 'string',
- ],
- 'useScaling' => [
- 'type' => 'boolean',
+ 'enum' => ['None', 'Env', 'Request', 'All'],
],
+ 'polarFsConfig' => ['description' => 'PolarFs配置。配置此参数后,函数可以访问指定的PolarFs资源。', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => 'JuiceFs 挂载配置', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'microSandboxConfig' => ['$ref' => '#/components/schemas/MicroSandboxConfig'],
],
],
'UpdateSessionInput' => [
@@ -5957,176 +2559,79 @@
'description' => '更新会话的参数',
'type' => 'object',
'properties' => [
- 'sessionTTLInSeconds' => [
- 'title' => 'Session生命周期',
- 'description' => 'Session生命周期',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '21600',
- ],
- 'sessionIdleTimeoutInSeconds' => [
- 'title' => 'Session 闲置过期时间',
- 'description' => 'Session 闲置过期时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1800',
- ],
- 'disableSessionIdReuse' => [
- 'title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
+ 'sessionTTLInSeconds' => ['title' => 'Session生命周期', 'description' => 'Session生命周期', 'type' => 'integer', 'format' => 'int64', 'example' => '21600'],
+ 'sessionIdleTimeoutInSeconds' => ['title' => 'Session 闲置过期时间', 'description' => 'Session 闲置过期时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1800'],
+ 'disableSessionIdReuse' => ['title' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'description' => '默认值 False,表示在 SessionID 会话过期后,可携带相同SessionID继续发起请求,系统将视为新会话绑定新实例。当配置为 True,表示在 SessionID 会话过期后,不可复用 SessionID。', 'type' => 'boolean', 'example' => 'false'],
+ 'nasConfig' => ['title' => '会话 NAS 挂载点配置', '$ref' => '#/components/schemas/NASConfig'],
+ 'ossMountConfig' => ['title' => '会话 OSS 挂载点配置', '$ref' => '#/components/schemas/OSSMountConfig'],
+ 'polarFsConfig' => ['title' => '会话 PolarFs 挂载点配置', '$ref' => '#/components/schemas/PolarFsConfig'],
+ 'juiceFsConfig' => ['title' => 'JuiecFs 挂载配置', '$ref' => '#/components/schemas/JuiceFsConfig'],
+ 'enableAutoPause' => ['type' => 'boolean'],
+ 'enableAutoResume' => ['type' => 'boolean'],
],
],
'UpdateTriggerInput' => [
'title' => '更新触发器的请求参数',
'description' => '更新触发器的请求参数',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'description' => [
- 'title' => '触发器的描述。',
- 'description' => '触发器的描述。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'trigger for test',
- 'maxLength' => 256,
- ],
- 'invocationRole' => [
- 'title' => '事件源(如OSS)调用函数所需的角色。',
- 'description' => '事件源(如OSS)调用函数所需的角色。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::1234567890:role/fc-test',
- 'maxLength' => 300,
- ],
- 'qualifier' => [
- 'title' => '函数的版本或别名。',
- 'description' => '函数的版本或别名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
- 'triggerConfig' => [
- 'title' => '触发器配置,针对不同类型的触发器,配置有所不同。',
- 'description' => '触发器配置,针对不同类型的触发器,配置有所不同。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}}',
- ],
+ 'description' => ['title' => '触发器的描述。', 'description' => '触发器的描述。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'trigger for test', 'maxLength' => 256, 'backendName' => 'description'],
+ 'invocationRole' => ['title' => '事件源(如OSS)调用函数所需的角色。', 'description' => '事件源(如OSS)调用函数所需的角色。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1234567890:role/fc-test', 'maxLength' => 300, 'backendName' => 'invocationRole'],
+ 'qualifier' => ['title' => '函数的版本或别名。', 'description' => '函数的版本或别名。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'LATEST', 'backendName' => 'qualifier'],
+ 'triggerConfig' => ['title' => '触发器配置,针对不同类型的触发器,配置有所不同。', 'description' => '触发器配置,针对不同类型的触发器,配置有所不同。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '{"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}}', 'backendName' => 'triggerConfig'],
+ ],
+ ],
+ 'Version' => [
+ 'title' => '版本信息',
+ 'description' => '版本信息',
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'createdTime' => ['title' => '创建时间', 'description' => '创建时间', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'createdTime'],
+ 'description' => ['title' => '版本描述信息', 'description' => '版本描述信息', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'my version', 'backendName' => 'description'],
+ 'lastModifiedTime' => ['title' => '更新时间', 'description' => '更新时间', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '2006-01-02T15:04:05Z07:00', 'backendName' => 'lastModifiedTime'],
+ 'versionId' => ['title' => '版本ID', 'description' => '版本ID', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1', 'backendName' => 'versionId'],
],
],
'VPCConfig' => [
'title' => 'VPC配置',
'description' => 'VPC配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'securityGroupId' => [
- 'title' => '安全组ID。',
- 'description' => '安全组ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sg-bp18hj1wtxgy3b0***',
- 'maxLength' => 50,
- ],
+ 'securityGroupId' => ['title' => '安全组ID。', 'description' => '安全组ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'sg-bp18hj1wtxgy3b0***', 'maxLength' => 50, 'backendName' => 'securityGroupId'],
'vSwitchIds' => [
'title' => '交换机列表。',
'description' => '交换机列表。',
+ 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '交换机ID。',
- 'type' => 'string',
- 'example' => 'vsw-bp1ozpcrdc6r****',
- ],
+ 'items' => ['description' => '交换机ID。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'vsw-bp1ozpcrdc6r****', 'extendType' => 'true'],
'required' => false,
'maxItems' => 10,
+ 'backendName' => 'vSwitchIds',
],
- 'vpcId' => [
- 'title' => 'VPC网络ID。',
- 'description' => 'VPC网络ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc-***',
- 'maxLength' => 50,
- ],
- 'role' => [
- 'title' => '授予函数计算访问用户VPC所需权限的RAM角色',
- 'description' => '授予函数计算访问用户VPC所需权限的RAM角色',
- 'type' => 'string',
- 'example' => 'acs:ram::188077086902****:role/fc-test',
- ],
- ],
- ],
- 'Version' => [
- 'title' => '版本信息',
- 'description' => '版本信息',
- 'type' => 'object',
- 'properties' => [
- 'createdTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- ],
- 'description' => [
- 'title' => '版本描述信息',
- 'description' => '版本描述信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my version',
- ],
- 'lastModifiedTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2006-01-02T15:04:05Z07:00',
- ],
- 'versionId' => [
- 'title' => '版本ID',
- 'description' => '版本ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'vpcId' => ['title' => 'VPC网络ID。', 'description' => 'VPC网络ID。', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'vpc-***', 'maxLength' => 50, 'backendName' => 'vpcId'],
+ 'role' => ['title' => '授予函数计算访问用户VPC所需权限的RAM角色', 'description' => '授予函数计算访问用户VPC所需权限的RAM角色', 'visibility' => 'Public', 'type' => 'string', 'example' => 'acs:ram::188077086902****:role/fc-test', 'backendName' => 'role'],
],
],
'WAFConfig' => [
'title' => '自定义域名 WAF 开启/关闭 配置',
'description' => '自定义域名WAF配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'enableWAF' => [
- 'title' => '是否开启 WAF 防护',
- 'description' => '是否开启WAF防护',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'enableWAF' => ['title' => '是否开启 WAF 防护', 'description' => '是否开启WAF防护', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'enableWAF'],
],
],
'WildcardRule' => [
'title' => '自定义域名通配符重写规则配置',
'description' => '自定义域名通配符重写规则配置',
+ 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'match' => [
- 'title' => '匹配规则',
- 'description' => '匹配规则',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/api/*',
- 'maxLength' => 256,
- ],
- 'replacement' => [
- 'title' => '替换规则',
- 'description' => '替换规则',
- 'type' => 'string',
- 'required' => true,
- 'example' => '/$1',
- 'maxLength' => 256,
- ],
+ 'match' => ['title' => '匹配规则', 'description' => '匹配规则', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/api/*', 'maxLength' => 256, 'backendName' => 'match'],
+ 'replacement' => ['title' => '替换规则', 'description' => '替换规则', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '/$1', 'maxLength' => 256, 'backendName' => 'replacement'],
],
],
],
@@ -6135,32 +2640,22 @@
'ChangeResourceGroup' => [
'summary' => '更新函数计算资源的资源组。',
'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',
],
@@ -6168,152 +2663,126 @@
[
'name' => 'body',
'in' => 'body',
- 'schema' => [
- 'description' => '更新资源组请求信息',
- 'required' => false,
- '$ref' => '#/components/schemas/ChangeResourceGroupInput',
- ],
+ 'schema' => ['description' => '更新资源组请求信息', 'required' => false, '$ref' => '#/components/schemas/ChangeResourceGroupInput'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '更新资源组响应信息',
- '$ref' => '#/components/schemas/ChangeResourceGroupOutput',
- ],
+ 'schema' => ['description' => '更新资源组响应信息', '$ref' => '#/components/schemas/ChangeResourceGroupOutput'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ResourceId\\": \\"\\",\\n \\"NewResourceGroupId\\": \\"\\",\\n \\"OldResourceGroupId\\": \\"\\"\\n}","type":"json"}]',
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '更新资源组',
'description' => '更新函数计算资源所在的资源组,需要为用户授予资源所在资源组以及目标资源组的 ChangeResourceGroup 权限',
- ],
- 'DescribeRegions' => [
- 'summary' => '查询FC 3.0产品支持的地域信息。',
- 'path' => '/2023-03-30/regions',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
+ '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"}]',
+ ],
+ 'CreateAlias' => [
+ 'summary' => '创建别名。',
+ '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' => '用户指定返回中文、英文等语言的地域列表信息。更多详情,请参见RFC 7231。取值范围:'."\n"
- ."\n"
- .'- zh-CN:简体中文。'."\n"
- ."\n"
- .'- en-US:英文。'."\n"
- ."\n"
- .'- ja:日文'."\n"
- ."\n"
- .'默认值:zh-CN。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh-CN',
- 'default' => 'zh-CN',
- 'enum' => [
- 'zh-CN',
- 'en-US',
- 'ja',
- ],
- ],
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '创建别名的请求参数', 'description' => '创建别名的请求参数', 'required' => true, '$ref' => '#/components/schemas/CreateAliasInput'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'description' => '地域信息。',
- '$ref' => '#/components/schemas/DescribeRegionsOutput',
- ],
+ 'description' => '创建的别名信息',
+ 'schema' => ['title' => '创建的别名信息', 'description' => '创建的别名信息', 'required' => false, '$ref' => '#/components/schemas/Alias'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
+ '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' => '创建别名',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"RegionId\\": \\"\\",\\n \\"LocalName\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '查询FC 3.0产品地域信息',
- '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"
- .'```',
+ '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' => '创建自定义域名。',
'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' => [
@@ -6321,9 +2790,7 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '178552',
- 'abilityTreeNodes' => [
- 'FEATUREfcJ7WA06',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcJ7WA06'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -6332,530 +2799,437 @@
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => '自定义域名信息',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateCustomDomainInput',
- ],
+ 'schema' => ['title' => '自定义域名信息', 'description' => '自定义域名信息', 'required' => true, '$ref' => '#/components/schemas/CreateCustomDomainInput'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '自定义域名信息',
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => '自定义域名信息',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'schema' => ['title' => '自定义域名信息', 'description' => '自定义域名信息', 'required' => false, '$ref' => '#/components/schemas/CustomDomain'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '创建自定义域名',
+ 'summary' => '创建自定义域名。',
'description' => '如果您希望在生产环境中通过固定域名访问函数计算中创建的应用或函数,或者解决访问HTTP触发器时强制下载行为,可以通过为应用或函数绑定自定义域名来实现。',
- ],
- 'DeleteCustomDomain' => [
- 'summary' => '删除自定义域名。',
- 'path' => '/2023-03-30/custom-domains/{domainName}',
- 'methods' => [
- 'delete',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCustomDomain'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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.2\\"\\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"}]',
+ ],
+ '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' => '域名',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'foo.bar.com',
- ],
+ 'schema' => ['title' => '函数配置信息', 'description' => '函数配置信息', 'required' => true, '$ref' => '#/components/schemas/CreateFunctionInput'],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'schema' => ['title' => '函数配置信息', 'description' => '函数配置信息', 'required' => false, '$ref' => '#/components/schemas/Function'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除自定义域名',
- ],
- 'GetCustomDomain' => [
- 'summary' => '获取自定义域名配置。',
- 'path' => '/2023-03-30/custom-domains/{domainName}',
- 'methods' => [
- 'get',
+ 'title' => '创建函数',
+ 'summary' => '调用CreateFunction接口创建函数。',
+ 'description' => '通过OSS代码包创建函数时,如果提示报错unable to access object xxx in bucket xxx,需要为当前用户授予OSS Bucket的访问权限,例如系统权限策略AliyunOSSReadOnlyAccess或自定义更小粒度的授权oss:GetObject,策略内容详情请参见[授予RAM用户读取某个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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'CreateLayerVersion' => [
+ 'summary' => '发布层版本。',
+ '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' => '域名',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'foo.bar.com',
- ],
+ 'schema' => ['title' => '层名称', 'description' => '层名称', 'type' => 'string', 'required' => true, 'example' => 'my-layer'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '层配置信息', 'description' => '层配置信息', 'required' => true, '$ref' => '#/components/schemas/CreateLayerVersionInput'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '自定义域名信息',
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => '自定义域名信息',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'description' => '层配置信息',
+ 'schema' => ['title' => '层配置信息', 'description' => '层配置信息', 'required' => false, '$ref' => '#/components/schemas/Layer'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '获取自定义域名',
- ],
- 'ListCustomDomains' => [
- 'summary' => '获取自定义域名信息列表。',
- 'path' => '/2023-03-30/custom-domains',
- 'methods' => [
- 'get',
+ 'title' => '创建层版本',
+ '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' => '全部资源', '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' => '创建一个显式会话资源。系统自动生成唯一 SessionID,预分配函数实例并绑定会话,支持指定 TTL 和 IdleTimeout。适用于 HEADER_FIELD 或 GENERATED_COOKIE 亲和类型,实现会话预热与配置初始化,调用后即可在 InvokeFunction 请求携带,用于路由请求。',
+ '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' => '域名前缀',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'foo',
- ],
- 'examples' => [],
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['title' => '创建Session的函数名称', 'description' => '创建Session的函数名称', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
],
[
- 'name' => 'nextToken',
+ 'name' => 'qualifier',
'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '用于指定函数所属的版本或别名', 'description' => '用于指定Sesion所属的版本或别名', 'type' => 'string', 'required' => false, 'example' => 'aliasName1'],
],
[
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的自定义域名数量',
- 'description' => '返回的自定义域名数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- 'examples' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => ['title' => '创建会话配置', 'description' => '创建会话配置', 'required' => false, '$ref' => '#/components/schemas/CreateSessionInput'],
],
],
'responses' => [
200 => [
- 'description' => '自定义域名列表',
- 'schema' => [
- 'title' => '自定义域名列表',
- 'description' => '自定义域名列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListCustomDomainOutput',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '会话资源信息', 'description' => '会话资源信息', '$ref' => '#/components/schemas/Session'],
],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '创建会话资源',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
- ],
- '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' => '列出自定义域名',
+ '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\\": true\\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\\": true,\\n \\"enableAutoResume\\": true\\n}","type":"json"}]',
],
- 'UpdateCustomDomain' => [
- 'summary' => '更新自定义域名。',
- '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' => '域名',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'foo.bar.com',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => '自定义域名信息',
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateCustomDomainInput',
- ],
+ 'schema' => ['title' => '触发器配置', 'description' => '触发器配置', 'required' => true, '$ref' => '#/components/schemas/CreateTriggerInput'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '自定义域名信息',
- 'schema' => [
- 'title' => '自定义域名信息',
- 'description' => '自定义域名信息',
- 'required' => false,
- '$ref' => '#/components/schemas/CustomDomain',
- ],
+ 'schema' => ['title' => '触发器配置', 'description' => '触发器配置', 'required' => false, '$ref' => '#/components/schemas/Trigger'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '更新自定义域名',
- ],
- 'DeleteFunctionVersion' => [
- 'summary' => '删除函数版本。',
- 'path' => '/2023-03-30/functions/{functionName}/versions/{versionId}',
- 'methods' => [
- 'delete',
+ 'title' => '创建触发器',
+ 'summary' => '创建触发器。',
+ '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' => '全部资源', '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' => '创建VPC连接。',
+ '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' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'versionId',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数版本',
- 'description' => '函数版本',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['title' => 'VPC绑定配置', 'description' => 'VPC绑定配置', 'required' => true, '$ref' => '#/components/schemas/CreateVpcBindingInput'],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除函数版本',
- ],
- 'GetFunctionCode' => [
- 'summary' => '获取函数代码包的详情。',
- 'path' => '/2023-03-30/functions/{functionName}/code',
- 'methods' => [
- 'get',
+ 'title' => '创建VPC绑定',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteAlias' => [
+ 'summary' => '删除别名。',
+ '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',
],
@@ -6864,89 +3238,74 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => 'Function name',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'name' => 'aliasName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数别名名称', 'description' => '函数别名名称', 'type' => 'string', 'required' => true, 'example' => 'my-alias'],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数代码信息',
- 'schema' => [
- 'title' => '函数代码信息',
- 'description' => '函数代码信息',
- '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' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '获取函数代码',
- ],
- 'ListFunctionVersions' => [
- 'summary' => '查询指定函数的版本列表。',
- 'path' => '/2023-03-30/functions/{functionName}/versions',
- 'methods' => [
- 'get',
+ 'title' => '删除别名',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteAsyncInvokeConfig' => [
+ 'summary' => '删除异步调用配置。',
+ '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',
],
@@ -6955,119 +3314,73 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'direction',
+ 'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '版本排序方式',
- 'description' => '版本排序方式。BACKWARD或者FORWARD。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'BACKWARD',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的版本数量',
- 'description' => '返回的版本数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数版本列表',
- 'schema' => [
- 'title' => '函数版本列表',
- 'description' => '函数版本列表',
- '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' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '列出函数版本',
- ],
- 'PublishFunctionVersion' => [
- 'summary' => '发布函数版本。',
- 'path' => '/2023-03-30/functions/{functionName}/versions',
- 'methods' => [
- 'post',
+ 'title' => '删除异步配置',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteConcurrencyConfig' => [
+ 'summary' => '删除并发度配置。',
+ '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',
],
@@ -7076,165 +3389,134 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数版本信息',
- 'description' => '函数版本信息',
- 'required' => true,
- '$ref' => '#/components/schemas/PublishVersionInput',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数版本信息',
- 'schema' => [
- 'title' => '函数版本信息',
- 'description' => '函数版本信息',
- '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' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '发布函数版本',
- ],
- 'CreateFunction' => [
- 'summary' => '调用CreateFunction接口创建函数。',
- 'path' => '/2023-03-30/functions',
- 'methods' => [
- 'post',
+ 'title' => '删除并发度配置',
+ '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' => '全部资源', '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' => '函数配置信息',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateFunctionInput',
- ],
+ 'schema' => ['title' => '域名', 'description' => '域名', 'type' => 'string', 'required' => true, 'example' => 'foo.bar.com'],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数配置信息',
- 'schema' => [
- 'title' => '函数配置信息',
- 'description' => '函数配置信息',
- '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' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '创建函数',
- 'description' => '通过OSS代码包创建函数时,如果提示报错unable to access object xxx in bucket xxx,需要为当前用户授予OSS Bucket的访问权限,例如系统权限策略AliyunOSSReadOnlyAccess或自定义更小粒度的授权oss:GetObject,策略内容详情请参见[授予RAM用户读取某个Bucket下所有资源的权限](~~199058~~)。',
+ 'title' => '删除自定义域名',
+ 'summary' => '删除自定义域名。',
+ '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' => '删除函数。',
'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' => [
@@ -7242,9 +3524,7 @@
'riskType' => 'high',
'chargeType' => 'free',
'abilityTreeCode' => '178556',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -7253,13 +3533,7 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
],
@@ -7271,57 +3545,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'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
'title' => '删除函数',
- ],
- 'GetFunction' => [
- 'summary' => '获取函数信息。',
- '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteFunctionVersion' => [
+ 'summary' => '删除函数版本。',
+ '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',
],
@@ -7330,291 +3603,284 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'name' => 'versionId',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数版本', 'description' => '函数版本', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数信息',
- 'schema' => [
- 'title' => '函数信息',
- 'description' => '函数信息',
- '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' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '获取函数',
- ],
- 'ListFunctions' => [
- 'summary' => '获取函数列表。',
- 'path' => '/2023-03-30/functions',
- 'methods' => [
- 'get',
+ 'title' => '删除函数版本',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteLayerVersion' => [
+ 'summary' => '删除层版本。',
+ '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' => '函数名称前缀。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'name' => 'layerName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '层名称', 'description' => '层名称', 'type' => 'string', 'required' => true, 'example' => 'my-layer'],
'examples' => [],
],
[
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'name' => 'version',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '层版本', 'description' => '层版本', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'examples' => [],
],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回函数的数量',
- 'description' => '返回函数的数量,最小值为1,最大值为100。',
- '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' => '函数所属的版本。'."\n"
- .'- v3:只列出FC3.0的函数。'."\n"
- .'- v2:只列出FC2.0的函数。'."\n"
- ."\n"
- .'默认不填,即列出FC3.0和FC2.0的函数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v3',
- 'enum' => [
- 'v3',
- 'v2',
- ],
- ],
- ],
- [
- 'name' => 'tags',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '需要过滤的函数标签',
- 'description' => '需要过滤的函数标签。',
- 'type' => 'array',
- 'items' => [
- 'description' => '函数绑定的标签信息。',
- 'required' => false,
- '$ref' => '#/components/schemas/Tag',
- ],
- 'required' => false,
- ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
+ 'examples' => [],
],
- [
- 'name' => 'runtime',
- 'in' => 'query',
- 'schema' => [
- 'title' => '需要过滤的函数运行时',
- 'description' => '需要过滤的函数运行时。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'python3.10',
- ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => '删除层版本',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteLayerVersion'],
],
+ ],
+ 'ramActions' => [
[
- 'name' => 'gpuType',
- 'in' => 'query',
- 'schema' => [
- 'title' => '需要过滤的函数GPU卡型',
- 'description' => '需要过滤的函数GPU卡型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'fc.gpu.tesla.1',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '需要过滤的函数描述。',
- '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' => '函数名称。',
- 'description' => '函数名称。',
- 'type' => 'string',
- 'required' => false,
- ],
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
+ 'examples' => [],
],
[
- 'name' => 'resourceGroupId',
+ 'name' => 'qualifier',
'in' => 'query',
- 'schema' => [
- 'title' => '资源组 ID',
- 'description' => '资源组 ID',
- 'type' => 'string',
- 'required' => false,
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数别名', 'description' => '函数别名', 'type' => 'string', 'required' => false, 'example' => 'prod'],
+ 'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '函数列表',
- 'schema' => [
- 'title' => '函数列表',
- 'description' => '函数列表',
- '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' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '列出函数',
- 'description' => '执行ListFunctions仅返回函数属性的一部分字段,如果需要获取某个函数的更多属性的字段,包括state、stateReasonCode、stateReason、lastUpdateStatus、lastUpdateStatusReasonCode和lastUpdateStatusReason,请使用[GetFunction](~~2618610~~)。',
- ],
- 'InvokeFunction' => [
- 'summary' => '调用执行函数。',
- 'path' => '/2023-03-30/functions/{functionName}/invocations',
- 'methods' => [
- 'post',
+ 'title' => '删除预留配置',
+ 'summary' => '删除预留配置。',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'tags' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteScalingConfig' => [
+ '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'],
],
- 'produces' => [
- 'application/octet-stream',
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['description' => '函数名称', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['description' => '函数别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
+ ],
],
- 'operationType' => 'readAndWrite',
+ 'responses' => [
+ 204 => [],
+ 400 => [],
+ 500 => [],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除函数弹性配置',
+ 'summary' => '删除函数弹性配置',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteSession' => [
+ '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',
],
@@ -7622,149 +3888,125 @@
[
'name' => 'functionName',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'sessionId',
+ 'in' => 'path',
+ 'schema' => ['title' => '会话ID值', 'description' => '需要删除的会话Id值', 'type' => 'string', 'required' => false, 'example' => 'test-session-id-1'],
],
[
'name' => 'qualifier',
'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '函数别名或版本信息', 'description' => '需要删除的SessionId关联的函数别名或版本信息', 'type' => 'string', 'required' => false, 'example' => 'aliasName1'],
],
+ ],
+ 'responses' => [
+ 204 => [],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除会话资源',
+ 'summary' => '删除指定会话,禁止新请求路由,会话元数据从数据库清除,客户携带相同 SessionID 的后续请求视为新会话。实现资源释放与会话清理。在会话隔离场景下,系统将中止运行的请求,释放会话绑定的实例。非会话隔离场景下,正在运行中的请求将继续运行,优雅终止。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteTrigger' => [
+ 'summary' => '删除指定的触发器。',
+ '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' => '函数调用类型。Sync或者Async。',
- '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' => '函数调用返回日志类型。None或者Tail。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Tail',
- ],
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数调用参数',
- 'description' => '函数调用参数',
- 'type' => 'string',
- 'format' => 'binary',
- 'required' => false,
- 'example' => 'event',
- ],
+ 'name' => 'triggerName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '触发器名称', 'description' => '触发器名称', 'type' => 'string', 'required' => true, 'example' => 'my-trigger'],
'examples' => [],
],
- [
- 'name' => 'x-fc-async-task-id',
- 'in' => 'header',
- 'schema' => [
- 'description' => '异步任务 ID。您需要事先开启异步任务。'."\n"
- ."\n"
- .'> 建议您在使用 SDK 调用时设置与业务相关的 ID,方便对相关执行进行后续操作。例如,一个视频处理函数可以使用视频文件名作为调用 ID,通过该 ID 可以查看视频是否处理完成或终止视频的处理。该 ID 的命名规则只能以英文大小写字母或下划线(_)开头,由英文大小写字母、数字(0-9)、下划线(_)及短划线(-)组成,不超过 128 个字符。如果您未设置异步调用的 ID,系统则会自动生成一个 ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-id',
- ],
- ],
],
'responses' => [
- 200 => [
- 'description' => '函数调用响应',
- 'schema' => [
- 'title' => '函数调用响应',
- 'description' => '函数调用响应',
- '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' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"\\"response\\"","type":"json"}]',
- 'title' => '调用函数',
- ],
- 'UpdateFunction' => [
- 'summary' => '更新函数信息。',
- 'path' => '/2023-03-30/functions/{functionName}',
- 'methods' => [
- 'put',
+ 'title' => '删除触发器',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DeleteVpcBinding' => [
+ 'summary' => '删除指定VPC防火墙策略组的访问控制策略。',
+ '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',
],
@@ -7773,166 +4015,159 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
+ 'name' => 'vpcId',
+ 'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数信息',
- 'description' => '函数信息',
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateFunctionInput',
- ],
+ 'schema' => ['title' => 'VPC实例ID', 'description' => 'VPC实例ID', 'type' => 'string', 'required' => true, 'example' => 'vpc-bp106zxlfj1fqc9'],
'examples' => [],
],
],
'responses' => [
- 200 => [
- 'description' => '更新后的函数信息',
- 'schema' => [
- 'title' => '更新后的函数信息',
- 'description' => '更新后的函数信息',
- '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' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '更新函数',
- ],
- 'EnableFunctionInvocation' => [
- 'summary' => '允许函数被调用,并恢复预留实例的创建。该 OpenAPI 处于内测阶段。',
- 'path' => '/2023-03-30/functions/{functionName}/invoke/enable',
- 'methods' => [
- 'post',
+ 'title' => '删除VPC绑定',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'DescribeRegions' => [
+ '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' => '允许调用的函数名称',
+ 'title' => '根据汉语、英语等语言筛选返回结果。更多详情,请参见RFC 7231。取值范围:'."\n"
+ ."\n"
+ .'zh-CN:中文。'."\n"
+ .'en-US:英文。'."\n"
+ .'ja:日语'."\n"
+ .'默认值:zh-CN。',
+ 'description' => '用户指定返回中文、英文等语言的地域列表信息。更多详情,请参见RFC 7231。取值范围:'."\n"
+ ."\n"
+ .'- zh-CN:简体中文。'."\n"
+ ."\n"
+ .'- en-US:英文。'."\n"
+ ."\n"
+ .'- ja:日文'."\n"
+ ."\n"
+ .'默认值:zh-CN。',
'type' => 'string',
'required' => false,
- 'example' => 'helloworld',
+ 'example' => 'zh-CN',
+ 'default' => 'zh-CN',
+ 'enum' => ['zh-CN', 'en-US', 'ja'],
],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'success' => [
- 'title' => '是否成功允许调用',
- 'description' => '是否成功允许调用',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- ],
- ],
+ 'schema' => ['description' => '地域信息。', '$ref' => '#/components/schemas/DescribeRegionsOutput'],
],
],
'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',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '查询FC 3.0产品地域信息',
+ 'summary' => '查询FC 3.0产品支持的地域信息。',
+ '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' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"success\\": true\\n}","type":"json"}]',
- 'title' => '允许函数调用',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"RegionId\\": \\"cn-qingdao\\",\\n \\"LocalName\\": \\"华北1(青岛)\\\\n\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DisableFunctionInvocation' => [
'summary' => '禁止函数被调用,可选终止所有正在处理的请求。函数被禁止调用后,将无法创建新实例,同时预留实例会被销毁。该 OpenAPI 处于内测阶段。',
'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' => [
[
@@ -7943,20 +4178,8 @@
'description' => '禁止调用的请求参数',
'type' => 'object',
'properties' => [
- 'reason' => [
- 'title' => '禁止函数调用的原因',
- 'description' => '禁止函数调用的原因',
- 'type' => 'string',
- 'required' => false,
- 'example' => '业务下线',
- ],
- 'abortOngoingRequest' => [
- 'title' => '是否立即终止正在处理的所有请求',
- 'description' => '是否立即终止正在处理的所有请求',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'reason' => ['title' => '禁止函数调用的原因', 'description' => '禁止函数调用的原因', 'type' => 'string', 'required' => false, 'example' => 'Service decommission'],
+ 'abortOngoingRequest' => ['title' => '是否立即终止正在处理的所有请求', 'description' => '是否立即终止正在处理的所有请求', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
@@ -7964,13 +4187,7 @@
[
'name' => 'functionName',
'in' => 'path',
- 'schema' => [
- 'title' => '禁止调用的函数名称',
- 'description' => '禁止调用的函数名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'helloworld',
- ],
+ 'schema' => ['title' => '禁止调用的函数名称', 'description' => '禁止调用的函数名称', 'type' => 'string', 'required' => false, 'example' => 'helloworld'],
],
],
'responses' => [
@@ -7980,141 +4197,117 @@
'description' => '禁止调用的响应格式',
'type' => 'object',
'properties' => [
- 'success' => [
- 'title' => '是否成功禁止调用',
- 'description' => '是否成功禁止调用',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'success' => ['title' => '是否成功禁止调用', 'description' => '是否成功禁止调用', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"success\\": true\\n}","type":"json"}]',
'title' => '禁止函数调用',
'description' => '请谨慎对生产环境的函数调用该接口,避免由于函数被禁止调用导致业务受损。',
- ],
- 'DeleteAlias' => [
- 'summary' => '删除别名。',
- 'path' => '/2023-03-30/functions/{functionName}/aliases/{aliasName}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ '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' => [],
+ ],
+ 'EnableFunctionInvocation' => [
+ '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' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'aliasName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数别名名称',
- 'description' => '函数别名名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-alias',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '允许调用的函数名称', 'description' => '允许调用的函数名称', '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',
+ 'type' => 'object',
+ 'properties' => [
+ 'success' => ['title' => '是否成功允许调用', 'description' => '是否成功允许调用', 'type' => 'boolean', 'example' => 'true'],
+ ],
],
- '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'],
+ 'title' => '允许函数调用',
+ 'summary' => '允许函数被调用,并恢复预留实例的创建。该 OpenAPI 处于内测阶段。',
+ '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' => '删除别名',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"success\\": true\\n}","type":"json"}]',
],
'GetAlias' => [
'summary' => '获取别名信息。',
'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',
],
@@ -8123,49 +4316,27 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
'name' => 'aliasName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数别名名称',
- 'description' => '函数别名名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-alias',
- ],
+ 'schema' => ['title' => '函数别名名称', 'description' => '函数别名名称', 'type' => 'string', 'required' => true, 'example' => 'my-alias'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '函数别名信息',
- 'schema' => [
- 'title' => '函数别名信息',
- 'description' => '函数别名信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Alias',
- ],
+ 'schema' => ['title' => '函数别名信息', 'description' => '函数别名信息', 'required' => false, '$ref' => '#/components/schemas/Alias'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
@@ -8173,39 +4344,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' => '获取别名',
- ],
- 'ListAliases' => [
- 'summary' => '查询别名列表信息。',
- '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' => '全部资源', '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' => '获取指定函数的异步调用配置。',
+ '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',
],
@@ -8214,76 +4392,27 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'prefix',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '别名名称前缀',
- 'description' => '别名名称前缀',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-alias',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'limit',
+ 'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的别名数量',
- 'description' => '返回的别名数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数别名信息',
- 'schema' => [
- 'title' => '函数别名信息',
- 'description' => '函数别名信息',
- 'required' => false,
- '$ref' => '#/components/schemas/ListAliasesOutput',
- ],
+ 'description' => '函数异步调用配置信息',
+ 'schema' => ['title' => '函数异步调用配置信息', 'description' => '函数异步调用配置信息', 'required' => false, '$ref' => '#/components/schemas/AsyncConfig'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
@@ -8291,39 +4420,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' => '列出别名',
- ],
- 'UpdateAlias' => [
- 'summary' => '更新别名。',
- 'path' => '/2023-03-30/functions/{functionName}/aliases/{aliasName}',
- 'methods' => [
- 'put',
+ 'title' => '获取异步配置',
+ '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' => '全部资源', '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' => '获取指定异步任务详情。',
+ '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',
],
@@ -8332,104 +4468,78 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称。', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
],
[
- 'name' => 'aliasName',
+ 'name' => 'taskId',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数别名名称',
- 'description' => '函数别名名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-alias',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '异步任务 id', 'description' => '异步任务ID。', 'type' => 'string', 'required' => true, 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '待更新的别名信息',
- 'description' => '待更新的别名信息',
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateAliasInput',
- ],
- 'examples' => [],
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名。', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
],
],
'responses' => [
200 => [
- 'description' => '更新后的别名信息',
- 'schema' => [
- 'title' => '更新后的别名信息',
- 'description' => '更新后的别名信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Alias',
- ],
+ 'description' => '异步任务信息',
+ 'schema' => ['title' => '异步任务信息', 'description' => '异步任务信息。该参数下的 returnPayload 字段当前处于内测阶段,如您需要使用,请[联系我们](~~2513733~~)为您开通。', 'required' => false, '$ref' => '#/components/schemas/AsyncTask'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '更新别名',
- ],
- 'CreateAlias' => [
- 'summary' => '创建别名。',
- 'path' => '/2023-03-30/functions/{functionName}/aliases',
- 'methods' => [
- 'post',
+ 'title' => '获取异步任务',
+ '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' => '全部资源', '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',
],
@@ -8438,91 +4548,143 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '函数并发度配置', 'description' => '函数并发度配置', 'required' => false, '$ref' => '#/components/schemas/ConcurrencyConfig'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
+ 'examples' => [],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => '获取并发度配置',
+ 'summary' => '获取并发度配置。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetConcurrencyConfig'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '创建别名的请求参数',
- 'description' => '创建别名的请求参数',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateAliasInput',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/demo\\",\\n \\"reservedConcurrency\\": 10\\n}","type":"json"}]',
+ ],
+ 'GetCustomDomain' => [
+ 'summary' => '获取自定义域名配置。',
+ 'path' => '/2023-03-30/custom-domains/{domainName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178522',
+ 'abilityTreeNodes' => ['FEATUREfcJ7WA06'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'domainName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '域名', 'description' => '域名', 'type' => 'string', 'required' => true, 'example' => 'foo.bar.com'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '创建的别名信息',
- 'schema' => [
- 'title' => '创建的别名信息',
- 'description' => '创建的别名信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Alias',
- ],
+ 'description' => '自定义域名信息',
+ 'schema' => ['title' => '自定义域名信息', 'description' => '自定义域名信息', 'required' => false, '$ref' => '#/components/schemas/CustomDomain'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '创建别名',
- ],
- 'CreateTrigger' => [
- 'summary' => '创建触发器。',
- 'path' => '/2023-03-30/functions/{functionName}/triggers',
- 'methods' => [
- 'post',
+ 'title' => '获取自定义域名',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCustomDomain'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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.2\\"\\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"}]',
+ ],
+ 'GetFunction' => [
+ 'summary' => '获取函数信息。',
+ 'path' => '/2023-03-30/functions/{functionName}',
+ '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' => '178530',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -8531,134 +4693,104 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器配置',
- 'description' => '触发器配置',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateTriggerInput',
- ],
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '触发器配置',
- 'schema' => [
- 'title' => '触发器配置',
- 'description' => '触发器配置',
- 'required' => false,
- '$ref' => '#/components/schemas/Trigger',
- ],
+ 'description' => '函数信息',
+ 'schema' => ['title' => '函数信息', 'description' => '函数信息', 'required' => false, '$ref' => '#/components/schemas/Function'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '创建触发器',
- ],
- 'DeleteTrigger' => [
- 'summary' => '删除指定的触发器。',
- 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
- 'methods' => [
- 'delete',
+ 'title' => '获取函数',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'GetFunctionCode' => [
+ 'summary' => '获取函数代码包的详情。',
+ 'path' => '/2023-03-30/functions/{functionName}/code',
+ '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' => '178540',
- 'abilityTreeNodes' => [
- 'FEATUREfc0CDUNQ',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '179099',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => 'Function name', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'triggerName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器名称',
- 'description' => '触发器名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-trigger',
- ],
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'description' => '函数代码信息',
+ 'schema' => ['title' => '函数代码信息', 'description' => '函数代码信息', 'required' => false, '$ref' => '#/components/schemas/OutputFuncCode'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
@@ -8666,254 +4798,330 @@
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除触发器',
- ],
- 'GetTrigger' => [
- 'summary' => '获取指定的触发器详情。',
- 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
- 'methods' => [
- 'get',
+ 'title' => '获取函数代码',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"checksum\\": \\"1234567890\\",\\n \\"url\\": \\"http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f\\"\\n}","type":"json"}]',
+ ],
+ 'GetLayerVersion' => [
+ 'summary' => '获取层的版本信息。',
+ 'path' => '/2023-03-30/layers/{layerName}/versions/{version}',
+ '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',
- ],
+ 'abilityTreeCode' => '178542',
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
+ 'name' => 'layerName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '层名称', 'description' => '层名称', 'type' => 'string', 'required' => true, 'example' => 'my-layer'],
'examples' => [],
],
[
- 'name' => 'triggerName',
+ 'name' => 'version',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器名称',
- 'description' => '触发器名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-trigger',
- ],
+ 'schema' => ['title' => '层版本', 'description' => '层版本', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '触发器配置',
- 'schema' => [
- 'title' => '触发器配置',
- 'description' => '触发器配置',
- 'required' => false,
- '$ref' => '#/components/schemas/Trigger',
- ],
+ 'description' => '层配置信息',
+ 'schema' => ['title' => '层配置信息', 'description' => '层配置信息', 'required' => false, '$ref' => '#/components/schemas/Layer'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '获取触发器',
- ],
- 'ListTriggers' => [
- 'summary' => '查询指定函数的触发器列表。',
- 'path' => '/2023-03-30/functions/{functionName}/triggers',
- 'methods' => [
- 'get',
+ 'title' => '获取层版本',
+ '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' => '全部资源', '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',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '178550',
- 'abilityTreeNodes' => [
- 'FEATUREfc0CDUNQ',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '178551',
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
+ 'name' => 'arn',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '层资源标识', 'description' => '层资源标识', 'type' => 'string', 'required' => true, 'example' => 'acs:fc:cn-shanghai:1234:layers/my-layer/versions/1'],
'examples' => [],
],
- [
- 'name' => 'prefix',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '触发器名称前缀',
- 'description' => '触发器名称前缀',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-trigger',
- ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '层版本信息', 'description' => '层版本信息', 'required' => false, '$ref' => '#/components/schemas/Layer'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => '通过ARN获取层版本',
+ 'summary' => '通过ARN获取层的版本信息。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLayerVersionByArn'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetLayerVersionByArn',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '获取预留配置。',
+ 'path' => '/2023-03-30/functions/{functionName}/provision-config',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178537',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'limit',
+ 'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的触发器数量',
- 'description' => '返回的触发器数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['title' => '函数别名', 'description' => '函数别名', 'type' => 'string', 'required' => false, 'example' => 'prod'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '触发器列表',
- 'schema' => [
- 'title' => '触发器列表',
- 'description' => '触发器列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListTriggersOutput',
- ],
+ 'description' => '预留配置信息',
+ 'schema' => ['title' => '预留配置信息', 'description' => '预留配置信息', 'required' => false, '$ref' => '#/components/schemas/ProvisionConfig'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ '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' => '列出触发器',
- ],
- 'UpdateTrigger' => [
- 'summary' => '更新触发器信息。',
- 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
- 'methods' => [
- 'put',
+ 'title' => '获取预留配置',
+ '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' => '全部资源', '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' => '获取函数弹性配置。',
+ 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU', 'FEATUREfcEHTP7G'],
],
- 'produces' => [
- 'application/json',
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['description' => '函数名称', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['description' => '函数别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
+ ],
],
- 'operationType' => 'readAndWrite',
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '弹性配置信息', '$ref' => '#/components/schemas/ScalingConfigStatus'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取函数弹性配置',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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"}]',
+ ],
+ 'GetSession' => [
+ 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '178536',
- 'abilityTreeNodes' => [
- 'FEATUREfc0CDUNQ',
- ],
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -8921,104 +5129,144 @@
[
'name' => 'functionName',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
+ 'schema' => ['title' => '函数名称', 'description' => '会话所属函数名称', 'type' => 'string', 'required' => false, 'example' => 'myFunction'],
+ ],
+ [
+ 'name' => 'sessionId',
+ 'in' => 'path',
+ 'schema' => ['title' => '会话ID值', 'description' => '查询的会话ID值', 'type' => 'string', 'required' => false, 'example' => 'test-sessionid-index1'],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['title' => '函数别名或版本信息', 'description' => '查询的会话ID关联的函数别名或版本信息', 'type' => 'string', 'required' => false, 'example' => 'aliasName1'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['title' => '函数会话信息', 'description' => '函数会话信息', '$ref' => '#/components/schemas/Session'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取会话配置信息',
+ 'summary' => '获取指定会话的详细信息,包括 SessionID、关联函数、亲和类型、生命周期配置、状态及实例信息。用于查询单个会话当前元数据,支持按 functionName 和 qualifier 精确定位,便于外部系统监控与调试,仅支持查询 Active 状态的会话。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'examples' => [],
],
+ ],
+ '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\\": true\\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\\": true\\n}","type":"json"}]',
+ ],
+ 'GetTrigger' => [
+ 'summary' => '获取指定的触发器详情。',
+ 'path' => '/2023-03-30/functions/{functionName}/triggers/{triggerName}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
[
- 'name' => 'triggerName',
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '178539',
+ 'abilityTreeNodes' => ['FEATUREfc0CDUNQ'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器名称',
- 'description' => '触发器名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-trigger',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
+ 'name' => 'triggerName',
+ 'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '触发器配置',
- 'description' => '触发器配置',
- 'required' => true,
- '$ref' => '#/components/schemas/UpdateTriggerInput',
- ],
+ 'schema' => ['title' => '触发器名称', 'description' => '触发器名称', 'type' => 'string', 'required' => true, 'example' => 'my-trigger'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '更新后的触发器配置',
- 'schema' => [
- 'title' => '更新后的触发器配置',
- 'description' => '更新后的触发器配置',
- 'required' => false,
- '$ref' => '#/components/schemas/Trigger',
- ],
+ 'description' => '触发器配置',
+ 'schema' => ['title' => '触发器配置', 'description' => '触发器配置', 'required' => false, '$ref' => '#/components/schemas/Trigger'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '更新触发器',
- ],
- 'DeleteAsyncInvokeConfig' => [
- 'summary' => '删除异步调用配置。',
- 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
- 'methods' => [
- 'delete',
+ 'title' => '获取触发器',
+ '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' => '全部资源', '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',
- ],
+ 'consumes' => ['application/octet-stream'],
+ 'produces' => ['application/octet-stream'],
'operationType' => 'readAndWrite',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '178515',
- 'abilityTreeNodes' => [
- 'FEATUREfcBKET2W',
- ],
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '178547',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -9027,82 +5275,102 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'x-fc-invocation-type',
+ 'in' => 'header',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数调用类型', 'description' => '函数调用类型。Sync或者Async。', 'type' => 'string', 'required' => false, 'example' => 'Sync'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'x-fc-log-type',
+ 'in' => 'header',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数调用返回日志类型', 'description' => '函数调用返回日志类型。None或者Tail。', 'type' => 'string', 'required' => false, 'example' => 'Tail'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数调用参数', 'description' => '函数调用参数', 'type' => 'string', 'format' => 'binary', 'required' => false, 'example' => 'event'],
'examples' => [],
],
+ [
+ 'name' => 'x-fc-async-task-id',
+ 'in' => 'header',
+ 'schema' => ['description' => '异步任务 ID。您需要事先开启异步任务。'."\n"
+ ."\n"
+ .'> 建议您在使用 SDK 调用时设置与业务相关的 ID,方便对相关执行进行后续操作。例如,一个视频处理函数可以使用视频文件名作为调用 ID,通过该 ID 可以查看视频是否处理完成或终止视频的处理。该 ID 的命名规则只能以英文大小写字母或下划线(_)开头,由英文大小写字母、数字(0-9)、下划线(_)及短划线(-)组成,不超过 128 个字符。如果您未设置异步调用的 ID,系统则会自动生成一个 ID。', 'type' => 'string', 'required' => false, 'example' => 'test-id'],
+ ],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'schema' => ['title' => '函数调用响应', 'description' => '函数调用响应', 'type' => 'string', 'format' => 'binary', 'required' => false, 'example' => 'response'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除异步配置',
- ],
- 'GetAsyncInvokeConfig' => [
- 'summary' => '获取指定函数的异步调用配置。',
- 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => '调用函数',
+ 'summary' => '调用执行函数。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:InvokeFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"\\"response\\"","type":"json"}]',
+ ],
+ 'ListAliases' => [
+ 'summary' => '查询别名列表信息。',
+ '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' => 'get',
- 'abilityTreeCode' => '178554',
- 'abilityTreeNodes' => [
- 'FEATUREfcBKET2W',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '178545',
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -9111,49 +5379,41 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'qualifier',
+ 'name' => 'prefix',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'schema' => ['title' => '别名名称前缀', 'description' => '别名名称前缀', 'type' => 'string', 'required' => false, 'example' => 'my-alias'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回的别名数量', 'description' => '返回的别名数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数异步调用配置信息',
- 'schema' => [
- 'title' => '函数异步调用配置信息',
- 'description' => '函数异步调用配置信息',
- 'required' => false,
- '$ref' => '#/components/schemas/AsyncConfig',
- ],
+ 'description' => '函数别名信息',
+ 'schema' => ['title' => '函数别名信息', 'description' => '函数别名信息', 'required' => false, '$ref' => '#/components/schemas/ListAliasesOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
@@ -9161,38 +5421,46 @@
'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' => '获取异步配置',
+ 'title' => '列出别名',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAliases'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListAliases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '查询指定函数的所有异步配置信息。',
'path' => '/2023-03-30/async-invoke-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' => 'readAndWrite',
'systemTags' => [
'operationType' => 'list',
'abilityTreeCode' => '178549',
- 'abilityTreeNodes' => [
- 'FEATUREfcM7AF1D',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcM7AF1D'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -9201,63 +5469,34 @@
'name' => 'functionName',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数名称,若不指定则列出所有函数的异步调用配置',
- 'description' => '函数名称,若不指定则列出所有函数的异步调用配置',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称,若不指定则列出所有函数的异步调用配置', 'description' => '函数名称,若不指定则列出所有函数的异步调用配置', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
'examples' => [],
],
[
'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
'examples' => [],
],
[
'name' => 'limit',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的数量限制',
- 'description' => '返回的数量限制',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['title' => '返回的数量限制', 'description' => '返回的数量限制', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '函数异步调用配置列表',
- 'schema' => [
- 'title' => '函数异步调用配置列表',
- 'description' => '函数异步调用配置列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListAsyncInvokeConfigOutput',
- ],
+ 'schema' => ['title' => '函数异步调用配置列表', 'description' => '函数异步调用配置列表', 'required' => false, '$ref' => '#/components/schemas/ListAsyncInvokeConfigOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
@@ -9265,192 +5504,234 @@
'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' => '列出函数异步配置',
- ],
- 'PutAsyncInvokeConfig' => [
- 'summary' => '创建或更新函数的异步调用配置。',
- 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
- 'methods' => [
- 'put',
+ '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' => '全部资源', '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',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '178523',
- 'abilityTreeNodes' => [
- 'FEATUREfcBKET2W',
- ],
+ 'abilityTreeCode' => '213993',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
+ 'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数异步调用配置',
- 'description' => '函数异步调用配置',
- 'required' => true,
- '$ref' => '#/components/schemas/PutAsyncInvokeConfigInput',
- ],
- 'examples' => [],
- ],
- [
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称。', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'prefix',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '异步任务id前缀', 'description' => '异步任务ID前缀,指定后会返回符合前缀的异步任务列表。', 'type' => 'string', 'required' => false, 'example' => 'job-'],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页标记,用来返回更多结果。第一次查询不需要提供这个参数,后续查询的 Token 从返回结果中获取。', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回异步任务的数量', 'description' => '返回异步任务的数量。默认返回 20 个,取值范围[1,100]。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
[
'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名。', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
+ ],
+ [
+ 'name' => 'status',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '异步任务执行状态。Enqueued 表示请求已经成功入队;Running 表示正在执行中;Succeeded 表示执行成功;Failed 表示执行失败;Stopped 表示停止执行;Expired 表示请求已过期', 'description' => '异步任务执行状态。'."\n"
+ .'- Enqueued:异步消息已入队,等待处理。'."\n"
+ ."\n"
+ .'- Dequeued:异步消息已出队,等待触发。'."\n"
+ ."\n"
+ .'- Running:调用执行中。'."\n"
+ ."\n"
+ .'- Succeeded:调用执行成功。'."\n"
+ ."\n"
+ .'- Failed:调用执行失败。'."\n"
+ ."\n"
+ .'- Stopped:调用执行终止。'."\n"
+ ."\n"
+ .'- Stopping:执行停止中。'."\n"
+ ."\n"
+ .'- Expired:您为任务配置了最长排队等待的期限。该任务因为超期被丢弃(任务未被执行)。'."\n"
+ ."\n"
+ .'- Invalid:您的执行因函数被删除等原因处于无效状态(任务未被执行)。'."\n"
+ ."\n"
+ .'- Retrying:异步调用因执行错误重试中。', 'type' => 'string', 'required' => false, 'example' => 'Running'],
+ ],
+ [
+ 'name' => 'startedTimeBegin',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '异步任务启动时间段的开始时间', 'description' => '异步任务启动时间段的开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1640966400000'],
+ ],
+ [
+ 'name' => 'startedTimeEnd',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '异步任务启动时间段的结束时间', 'description' => '异步任务启动时间段的结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1640966400000'],
+ ],
+ [
+ 'name' => 'sortOrderByTime',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回异步任务列表的排序方式。asc 表示生序;desc 表示降序', 'description' => '返回异步任务列表的排序方式。'."\n"
+ ."\n"
+ .'- asc 表示升序'."\n"
+ ."\n"
+ .'- desc 表示降序', 'type' => 'string', 'required' => false, 'example' => 'asc'],
+ ],
+ [
+ 'name' => 'includePayload',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '是否返回异步任务的入参', 'description' => '是否返回异步任务的入参。'."\n"
+ ."\n"
+ .'- true:当该参数设置为true时,异步任务的列表将返回`invocationPayload`字段。'."\n"
+ ."\n"
+ .'- false:当该参数设置为false时,则不返回`invocationPayload`字段。'."\n"
+ ."\n"
+ .'> `invocationPayload`字段表示异步任务函数运行时的输入参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
- 'description' => '函数异步调用配置信息',
- 'schema' => [
- 'title' => '函数异步调用配置信息',
- 'description' => '函数异步调用配置信息',
- 'required' => false,
- '$ref' => '#/components/schemas/AsyncConfig',
- ],
+ 'schema' => ['title' => '异步任务列表', 'description' => '返回数据结构体', 'required' => false, '$ref' => '#/components/schemas/ListAsyncTaskOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ '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' => '设置函数异步配置',
- ],
- 'DeleteProvisionConfig' => [
- 'summary' => '删除预留配置。',
- 'path' => '/2023-03-30/functions/{functionName}/provision-config',
- 'methods' => [
- 'delete',
+ 'title' => '获取异步任务列表',
+ 'summary' => '获取异步任务详情列表。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAsyncTasks'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListAsyncTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => [
+ 'path' => '/2023-03-30/concurrency-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' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178524',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '178516',
+ 'abilityTreeNodes' => ['FEATUREfcM7AF1D'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数名称,若不指定则列出所有函数的并发度配置', 'description' => '函数名称,若不指定则列出所有函数的并发度配置', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'qualifier',
+ 'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数别名',
- 'description' => '函数别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'prod',
- ],
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回的数量限制', 'description' => '返回的数量限制', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'schema' => ['title' => '函数并发度配置列表', 'description' => '函数并发度配置列表', 'required' => false, '$ref' => '#/components/schemas/ListConcurrencyConfigsOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
@@ -9458,1306 +5739,1496 @@
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除预留配置',
- ],
- 'GetProvisionConfig' => [
- 'summary' => '获取预留配置。',
- 'path' => '/2023-03-30/functions/{functionName}/provision-config',
- 'methods' => [
- 'get',
+ 'title' => '列出函数并发度配置',
+ 'summary' => '查询并发度配置列表。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListConcurrencyConfigs'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListConcurrencyConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '178537',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- ],
+ 'abilityTreeCode' => '178557',
+ 'abilityTreeNodes' => ['FEATUREfcJ7WA06'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'name' => 'prefix',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '域名前缀', 'description' => '域名前缀', 'type' => 'string', 'required' => false, 'example' => 'foo'],
'examples' => [],
],
[
- 'name' => 'qualifier',
+ 'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数别名',
- 'description' => '函数别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'prod',
- ],
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回的自定义域名数量', 'description' => '返回的自定义域名数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '预留配置信息',
- 'schema' => [
- 'title' => '预留配置信息',
- 'description' => '预留配置信息',
- 'required' => false,
- '$ref' => '#/components/schemas/ProvisionConfig',
- ],
+ 'schema' => ['title' => '自定义域名列表', 'description' => '自定义域名列表', 'required' => false, '$ref' => '#/components/schemas/ListCustomDomainOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '获取预留配置',
- ],
- 'ListProvisionConfigs' => [
- 'summary' => '查询预留配置列表。',
- 'path' => '/2023-03-30/provision-configs',
- 'methods' => [
- 'get',
+ 'title' => '列出自定义域名',
+ 'summary' => '获取自定义域名信息列表。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListCustomDomains'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListCustomDomains',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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.2\\"\\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"}]',
+ ],
+ 'ListFunctionVersions' => [
+ 'summary' => '查询指定函数的版本列表。',
+ 'path' => '/2023-03-30/functions/{functionName}/versions',
+ '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' => '178543',
+ 'abilityTreeNodes' => ['FEATUREfcDTB0I5'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数名称,若不指定则列出所有函数的预留配置',
- 'description' => '函数名称,若不指定则列出所有函数的预留配置',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
'examples' => [],
],
[
- 'name' => 'nextToken',
+ 'name' => 'direction',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'schema' => ['title' => '版本排序方式', 'description' => '版本排序方式。BACKWARD或者FORWARD。', 'type' => 'string', 'required' => false, 'example' => 'BACKWARD'],
'examples' => [],
],
[
'name' => 'limit',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的预留配置数量',
- 'description' => '返回的预留配置数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['title' => '返回的版本数量', 'description' => '返回的版本数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '预留配置列表',
- 'schema' => [
- 'title' => '预留配置列表',
- 'description' => '预留配置列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListProvisionConfigsOutput',
- ],
+ 'description' => '函数版本列表',
+ 'schema' => ['title' => '函数版本列表', 'description' => '函数版本列表', 'required' => false, '$ref' => '#/components/schemas/ListVersionsOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ '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' => '列出函数预留配置',
- ],
- 'PutProvisionConfig' => [
- 'summary' => '创建预留配置。',
- 'path' => '/2023-03-30/functions/{functionName}/provision-config',
- 'methods' => [
- 'put',
+ 'title' => '列出函数版本',
+ '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' => '全部资源', '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' => '获取函数列表。',
+ 'path' => '/2023-03-30/functions',
+ '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',
+ 'operationType' => 'list',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '178546',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- ],
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178520',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'name' => 'prefix',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数名称前缀', 'description' => '函数名称前缀。', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'qualifier',
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记。', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
'in' => 'query',
'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回函数的数量', 'description' => '返回函数的数量,最小值为1,最大值为100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'fcVersion',
+ 'in' => 'query',
'schema' => [
- 'title' => '函数别名',
- 'description' => '函数别名',
+ 'title' => '函数所属的版本。枚举值:v3,v2。v3: 只列出FC3.0的函数;v2:只列出FC2.0的函数;默认不填:列出FC3.0和FC2.0的函数',
+ 'description' => '函数所属的版本。'."\n"
+ .'- v3:只列出FC3.0的函数。'."\n"
+ .'- v2:只列出FC2.0的函数。'."\n"
+ ."\n"
+ .'默认不填,即列出FC3.0和FC2.0的函数。',
'type' => 'string',
'required' => false,
- 'example' => 'prod',
+ 'example' => 'v3',
+ 'enum' => ['v3', 'v2'],
],
- 'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
+ 'name' => 'tags',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'title' => '预留配置信息',
- 'description' => '预留配置信息',
- 'required' => true,
- '$ref' => '#/components/schemas/PutProvisionConfigInput',
+ 'title' => '需要过滤的函数标签',
+ 'description' => '需要过滤的函数标签。',
+ 'type' => 'array',
+ 'items' => ['description' => '函数绑定的标签信息。', 'required' => false, '$ref' => '#/components/schemas/Tag'],
+ 'required' => false,
],
- 'examples' => [],
+ ],
+ [
+ 'name' => 'runtime',
+ 'in' => 'query',
+ 'schema' => ['title' => '需要过滤的函数运行时', 'description' => '需要过滤的函数运行时。', 'type' => 'string', 'required' => false, 'example' => 'python3.10'],
+ ],
+ [
+ 'name' => 'gpuType',
+ 'in' => 'query',
+ 'schema' => ['title' => '需要过滤的函数GPU卡型', 'description' => '需要过滤的函数GPU卡型。', 'type' => 'string', 'required' => false, 'example' => 'fc.gpu.tesla.1'],
+ ],
+ [
+ 'name' => 'description',
+ 'in' => 'query',
+ 'schema' => ['title' => '需要过滤的函数描述', 'description' => '需要过滤的函数描述。', 'type' => 'string', 'required' => false, 'example' => 'test_description'],
+ ],
+ [
+ 'name' => 'functionName',
+ 'in' => 'query',
+ 'schema' => ['title' => '函数名称。', 'description' => '函数名称。', 'type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'resourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源组 ID', 'description' => '资源组 ID', 'type' => 'string', 'required' => false],
],
],
'responses' => [
200 => [
- 'description' => '预留配置信息',
- 'schema' => [
- 'title' => '预留配置信息',
- 'description' => '预留配置信息',
- 'required' => false,
- '$ref' => '#/components/schemas/ProvisionConfig',
- ],
+ 'description' => '函数列表',
+ 'schema' => ['title' => '函数列表', 'description' => '函数列表', 'required' => false, '$ref' => '#/components/schemas/ListFunctionsOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '设置函数预留实例',
- ],
- 'DeleteConcurrencyConfig' => [
- 'summary' => '删除并发度配置。',
- 'path' => '/2023-03-30/functions/{functionName}/concurrency',
- 'methods' => [
- 'delete',
+ 'title' => '列出函数',
+ 'description' => '执行ListFunctions仅返回函数属性的一部分字段,如果需要获取某个函数的更多属性的字段,包括state、stateReasonCode、stateReason、lastUpdateStatus、lastUpdateStatusReasonCode和lastUpdateStatusReason,请使用[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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ListInstances' => [
+ 'summary' => '查询函数实例列表。',
+ 'path' => '/2023-03-30/functions/{functionName}/instances',
+ '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',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178512',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'withAllActive',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '是否列出所有活跃实例', 'description' => '是否列出所有实例。true或者false。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'instanceStatus',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
+ 'description' => '实例状态列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例状态。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enum' => ['Running', 'Terminating', 'Destroyed'],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'startTimeMs',
+ 'in' => 'query',
+ 'schema' => ['description' => '起始时间(毫秒级时间戳)。', 'type' => 'integer', 'format' => 'int64', 'required' => false],
+ ],
+ [
+ 'name' => 'endTimeMs',
+ 'in' => 'query',
+ 'schema' => ['description' => '结束时间(毫秒级时间戳)。', 'type' => 'integer', 'format' => 'int64', 'required' => false],
+ ],
+ [
+ 'name' => 'startKey',
+ 'in' => 'query',
+ 'schema' => ['description' => '起始标记。', 'type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'schema' => ['description' => '返回的最大实例数量。', 'type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'instanceIds',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '实例 ID 列表。',
+ 'type' => 'array',
+ 'items' => ['description' => '实例 ID。', 'type' => 'string', 'required' => false],
+ 'required' => false,
],
- 'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'description' => '函数实例列表',
+ 'schema' => ['title' => '函数实例列表', 'description' => '函数实例列表', 'required' => false, '$ref' => '#/components/schemas/ListInstancesOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除并发度配置',
- ],
- 'GetConcurrencyConfig' => [
- 'summary' => '获取并发度配置。',
- 'path' => '/2023-03-30/functions/{functionName}/concurrency',
- 'methods' => [
- 'get',
+ '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' => '列出函数实例',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListInstances'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListInstances',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ListLayerVersions' => [
+ 'summary' => '获取层的版本列表。',
+ 'path' => '/2023-03-30/layers/{layerName}/versions',
+ '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' => '178519',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '178553',
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
+ 'name' => 'layerName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '层名称', 'description' => '层名称', 'type' => 'string', 'required' => true, 'example' => 'my-layer'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'startVersion',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '起始版本', 'description' => '起始版本', 'type' => 'string', 'required' => false, 'example' => '1'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回的版本数量', 'description' => '返回的版本数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数并发度配置',
- 'schema' => [
- 'title' => '函数并发度配置',
- 'description' => '函数并发度配置',
- 'required' => false,
- '$ref' => '#/components/schemas/ConcurrencyConfig',
- ],
+ 'description' => '层版本列表',
+ 'schema' => ['title' => '层版本列表', 'description' => '层版本列表', 'required' => false, '$ref' => '#/components/schemas/ListLayerVersionOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '获取并发度配置',
- ],
- 'ListConcurrencyConfigs' => [
- 'summary' => '查询并发度配置列表。',
- 'path' => '/2023-03-30/concurrency-configs',
- 'methods' => [
- 'get',
+ 'title' => '列出层版本',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListLayerVersions'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListLayerVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '获取层列表。',
+ 'path' => '/2023-03-30/layers',
+ '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',
- ],
+ 'abilityTreeCode' => '178528',
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
+ 'name' => 'prefix',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数名称,若不指定则列出所有函数的并发度配置',
- 'description' => '函数名称,若不指定则列出所有函数的并发度配置',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '层名称前缀', 'description' => '层名称前缀', 'type' => 'string', 'required' => false, 'example' => 'my-layer'],
'examples' => [],
],
[
'name' => 'nextToken',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
'examples' => [],
],
[
'name' => 'limit',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的数量限制',
- 'description' => '返回的数量限制',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['title' => '返回的层数量', 'description' => '返回的层数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'public',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '是否公开层', 'description' => '是否公开层。true或者false。', 'type' => 'string', 'required' => false, 'example' => 'true'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'official',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '是否官方层', 'description' => '是否官方层。true或者false。', 'type' => 'string', 'required' => false, 'example' => 'true'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数并发度配置列表',
- 'schema' => [
- 'title' => '函数并发度配置列表',
- 'description' => '函数并发度配置列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListConcurrencyConfigsOutput',
- ],
+ 'description' => '层列表',
+ 'schema' => ['title' => '层列表', 'description' => '层列表', 'required' => false, '$ref' => '#/components/schemas/ListLayersOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'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' => '列出函数并发度配置',
- ],
- 'PutConcurrencyConfig' => [
- 'summary' => '设置函数并发度。',
- 'path' => '/2023-03-30/functions/{functionName}/concurrency',
- 'methods' => [
- 'put',
+ 'title' => '列出层',
+ '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' => '全部资源', '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' => '查询预留配置列表。',
+ 'path' => '/2023-03-30/provision-configs',
+ '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' => '178548',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数名称,若不指定则列出所有函数的预留配置', 'description' => '函数名称,若不指定则列出所有函数的预留配置', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数并发度配置信息',
- 'description' => '函数并发度配置信息',
- 'required' => true,
- '$ref' => '#/components/schemas/PutConcurrencyInput',
- ],
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回的预留配置数量', 'description' => '返回的预留配置数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '函数并发度配置信息',
- 'schema' => [
- 'title' => '函数并发度配置信息',
- 'description' => '函数并发度配置信息',
- 'required' => false,
- '$ref' => '#/components/schemas/ConcurrencyConfig',
- ],
+ 'description' => '预留配置列表',
+ 'schema' => ['title' => '预留配置列表', 'description' => '预留配置列表', 'required' => false, '$ref' => '#/components/schemas/ListProvisionConfigsOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '设置函数并发度',
- ],
- 'CreateLayerVersion' => [
- 'summary' => '发布层版本。',
- 'path' => '/2023-03-30/layers/{layerName}/versions',
- 'methods' => [
- 'post',
+ 'title' => '列出函数预留配置',
+ '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' => '全部资源', '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' => '列出函数弹性配置。',
+ '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' => '函数名称', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'schema' => ['description' => '返回的弹性配置数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
+ ],
],
- 'operationType' => 'readAndWrite',
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '弹性配置列表', '$ref' => '#/components/schemas/ListScalingConfigsOutput'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '列出函数弹性配置',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListScalingConfigs',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '列举指定函数下Active/Expired 状态的会话列表,支持按 qualifier、状态、会话ID过滤,分页查询。返回会话基础属性,用于批量查看会话分布与状态,助力运维监控和外部系统集成,提升会话可见性与管理能力。',
+ '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' => 'create',
- 'abilityTreeCode' => '178533',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'layerName',
+ 'name' => 'functionName',
'in' => 'path',
+ 'schema' => ['title' => '函数名', 'description' => '函数名', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['title' => '函数别名或版本信息', 'description' => '函数别名或版本信息', 'type' => 'string', 'required' => false, 'example' => 'aliasName1'],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'schema' => ['title' => '返回的会话数量', 'description' => '返回的会话数量,如不填写默认返回 20条。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10'],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ ],
+ [
+ 'name' => 'sessionStatus',
+ 'in' => 'query',
+ 'schema' => ['title' => '过滤表达式,格式:field:value[,field:value...],当前仅支持 sessionStatus'."\0".'信息,如sessionStatus'."\0".':Normal。', 'description' => '需要过滤的会话状态,默认返回所有Active/Expired状态的会话信息,也可指定 Active 仅获取活跃的会话信息,或指定Expired仅获取过期的会话信息。', 'type' => 'string', 'required' => false, 'example' => 'Active'],
+ ],
+ [
+ 'name' => 'sessionId',
+ 'in' => 'query',
+ 'schema' => ['title' => '过滤的SessionId 值,如指定,可返回关联的 Active/Expired 会话信息', 'description' => '过滤的SessionId值,如指定,可返回此会话关联的所有 Active/Expired 状态信息。', 'type' => 'string', 'required' => false, 'example' => 'test-session-id-1'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '返回的会话信息列表', '$ref' => '#/components/schemas/ListSessionsOutput'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '查询会话信息列表',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListSessions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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\\": 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\\": true\\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\\": true,\\n \\"enableAutoResume\\": true\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListTagResources' => [
+ 'summary' => '列出所有被打标签的资源。',
+ 'path' => '/2023-03-30/tags-v2',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ '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' => ['title' => '资源数量类型, ALIYUN::FC::FUNCTION 表示函数计算3.0版本中的函数', 'description' => '资源类型。', 'type' => 'string', 'required' => true, 'example' => 'ALIYUN::FC::FUNCTION'],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'style' => 'json',
'schema' => [
- 'title' => '层名称',
- 'description' => '层名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
+ 'title' => '资源标识列表',
+ 'description' => '资源ID列表。',
+ 'type' => 'array',
+ 'items' => ['description' => '资源ID。', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func'],
+ 'required' => false,
],
- 'examples' => [],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'style' => 'json',
'schema' => [
- 'title' => '层配置信息',
- 'description' => '层配置信息',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateLayerVersionInput',
+ 'title' => '标签列表',
+ 'description' => '标签列表。'."\n"
+ ."\n"
+ .'一次最多支持查询20个标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => '标签键。'."\n"
+ ."\n"
+ .'最多支持64个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => 'k1'],
+ 'Value' => ['description' => '标签值。'."\n"
+ ."\n"
+ .'标签值最多支持128个字符,可以为空字符串。', 'type' => 'string', 'required' => false, 'example' => 'v1'],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
],
- 'examples' => [],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '下一个查询开始Token', 'description' => '下一个查询开始Token。', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ ],
+ [
+ 'name' => 'Limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回的资源数量', 'description' => '返回的资源数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
- 'description' => '层配置信息',
- 'schema' => [
- 'title' => '层配置信息',
- 'description' => '层配置信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Layer',
- ],
+ 'description' => '资源列表',
+ 'schema' => ['title' => '资源列表', 'description' => '资源列表', 'required' => false, '$ref' => '#/components/schemas/ListTagResourcesOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '创建层版本',
- ],
- 'DeleteLayerVersion' => [
- 'summary' => '删除层版本。',
- 'path' => '/2023-03-30/layers/{layerName}/versions/{version}',
- 'methods' => [
- 'delete',
+ 'title' => '查询资源标签关系',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => [
[
'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',
+ 'abilityTreeCode' => '178550',
+ 'abilityTreeNodes' => ['FEATUREfc0CDUNQ'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'layerName',
+ 'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层名称',
- 'description' => '层名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'version',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层版本',
- 'description' => '层版本',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
+ 'name' => 'prefix',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '触发器名称前缀', 'description' => '触发器名称前缀', 'type' => 'string', 'required' => false, 'example' => 'my-trigger'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '分页起始标记', 'description' => '分页起始标记', 'type' => 'string', 'required' => false, 'example' => 'MTIzNCNhYmM='],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'limit',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '返回的触发器数量', 'description' => '返回的触发器数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'schema' => ['title' => '触发器列表', 'description' => '触发器列表', 'required' => false, '$ref' => '#/components/schemas/ListTriggersOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除层版本',
- ],
- 'GetLayerVersion' => [
- 'summary' => '获取层的版本信息。',
- 'path' => '/2023-03-30/layers/{layerName}/versions/{version}',
- 'methods' => [
- 'get',
+ 'title' => '列出触发器',
+ 'summary' => '查询指定函数的触发器列表。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTriggers'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListTriggers',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => [
+ 'path' => '/2023-03-30/functions/{functionName}/vpc-bindings',
+ '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' => '178542',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '191968',
+ 'abilityTreeNodes' => ['FEATUREfcL3E8J5'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'layerName',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层名称',
- 'description' => '层名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'version',
+ 'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层版本',
- 'description' => '层版本',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '层配置信息',
- 'schema' => [
- 'title' => '层配置信息',
- 'description' => '层配置信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Layer',
- ],
+ 'schema' => ['title' => 'VPC绑定配置列表', 'description' => 'VPC绑定配置列表', 'required' => false, '$ref' => '#/components/schemas/ListVpcBindingsOutput'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => [
- 'summary' => '通过ARN获取层的版本信息。',
- 'path' => '/2023-03-30/layerarn/{arn}',
- 'methods' => [
- 'get',
+ 'title' => '列出VPC绑定配置',
+ 'summary' => '查询已创建的VPC连接。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListVpcBindings'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListVpcBindings',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'tags' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"vpcIds\\": [\\n \\"vpc-8vb8x8dggvr0axxxxxxxx\\"\\n ]\\n}","type":"json"}]',
+ ],
+ 'PauseSession' => [
+ 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}/pause',
+ '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',
],
- 'produces' => [
- 'application/json',
+ 'parameters' => [
+ [
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'schema' => ['description' => 'Session 的函数名称', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'sessionId',
+ 'in' => 'path',
+ 'schema' => ['description' => '需要保存的会话 ID 值', 'type' => 'string', 'required' => false, 'example' => 'test-session-id-1'],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['description' => '需要保存的会话 ID 关联的函数别名或版本信息', 'type' => 'string', 'required' => false, 'example' => 'aliasName1'],
+ ],
],
- 'operationType' => 'read',
+ 'responses' => [
+ 200 => [
+ 'schema' => ['description' => '会话配置信息', '$ref' => '#/components/schemas/Session'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '暂停会话',
+ 'summary' => '暂停/保存会话',
+ 'description' => '暂停一个 Active 状态的会话,将其关联的执行环境状态持久化后释放计算资源。调用后,会话状态变为 Paused,此时该会话不再接受函数调用请求。该操作会保留会话的配置(如 SessionTTL)和 SessionID,可用于长时间任务的中断或开发环境的快照保存,实现成本优化与状态管理。适用于配置了 HEADER_FIELD 或 GENERATED_COOKIE 亲和类型以及会话隔离的自定义镜像函数。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PauseSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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\\": true\\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\\": true,\\n \\"enableAutoResume\\": true\\n}","type":"json"}]',
+ ],
+ 'PublishFunctionVersion' => [
+ 'path' => '/2023-03-30/functions/{functionName}/versions',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'tags' => [],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '178551',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '178541',
+ 'abilityTreeNodes' => ['FEATUREfcDTB0I5'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'arn',
+ 'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层资源标识',
- 'description' => '层资源标识',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'acs:fc:cn-shanghai:1234:layers/my-layer/versions/1',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
+ 'examples' => [],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数版本信息', 'description' => '函数版本信息', 'required' => true, '$ref' => '#/components/schemas/PublishVersionInput'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '层版本信息',
- 'schema' => [
- 'title' => '层版本信息',
- 'description' => '层版本信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Layer',
- ],
+ 'schema' => ['title' => '函数版本信息', 'description' => '函数版本信息', 'required' => false, '$ref' => '#/components/schemas/Version'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '通过ARN获取层版本',
- ],
- 'ListLayerVersions' => [
- 'summary' => '获取层的版本列表。',
- 'path' => '/2023-03-30/layers/{layerName}/versions',
- 'methods' => [
- 'get',
+ 'title' => '发布函数版本',
+ 'summary' => '发布函数版本。',
+ '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' => '全部资源', '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' => '创建或更新函数的异步调用配置。',
+ 'path' => '/2023-03-30/functions/{functionName}/async-invoke-config',
+ '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',
- 'abilityTreeCode' => '178553',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
- 'autoTest' => true,
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178523',
+ 'abilityTreeNodes' => ['FEATUREfcBKET2W'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'layerName',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层名称',
- 'description' => '层名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
- ],
+ 'schema' => ['title' => '函数异步调用配置', 'description' => '函数异步调用配置', 'required' => true, '$ref' => '#/components/schemas/PutAsyncInvokeConfigInput'],
'examples' => [],
],
[
- 'name' => 'startVersion',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '起始版本',
- 'description' => '起始版本',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'limit',
+ 'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的版本数量',
- 'description' => '返回的版本数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '层版本列表',
- 'schema' => [
- 'title' => '层版本列表',
- 'description' => '层版本列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListLayerVersionOutput',
- ],
+ 'description' => '函数异步调用配置信息',
+ 'schema' => ['title' => '函数异步调用配置信息', 'description' => '函数异步调用配置信息', 'required' => false, '$ref' => '#/components/schemas/AsyncConfig'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '列出层版本',
- ],
- 'ListLayers' => [
- 'summary' => '获取层列表。',
- 'path' => '/2023-03-30/layers',
- 'methods' => [
- 'get',
+ 'title' => '设置函数异步配置',
+ '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' => '全部资源', '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' => '设置函数并发度。',
+ 'path' => '/2023-03-30/functions/{functionName}/concurrency',
+ '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',
- 'abilityTreeCode' => '178528',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '178511',
+ 'abilityTreeNodes' => ['FEATUREfcM7AF1D'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'prefix',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '层名称前缀',
- 'description' => '层名称前缀',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-layer',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的层数量',
- 'description' => '返回的层数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- 'examples' => [],
- ],
- [
- 'name' => 'public',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否公开层',
- 'description' => '是否公开层。true或者false。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'name' => 'functionName',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
- 'name' => 'official',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否官方层',
- 'description' => '是否官方层。true或者false。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数并发度配置信息', 'description' => '函数并发度配置信息', 'required' => true, '$ref' => '#/components/schemas/PutConcurrencyInput'],
'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '层列表',
- 'schema' => [
- 'title' => '层列表',
- 'description' => '层列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListLayersOutput',
- ],
+ 'description' => '函数并发度配置信息',
+ 'schema' => ['title' => '函数并发度配置信息', 'description' => '函数并发度配置信息', 'required' => false, '$ref' => '#/components/schemas/ConcurrencyConfig'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '列出层',
+ 'title' => '设置函数并发度',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutConcurrencyConfig'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionArn\\": \\"acs:fc:cn-shanghai:123:functions/demo\\",\\n \\"reservedConcurrency\\": 10\\n}","type":"json"}]',
],
'PutLayerACL' => [
'summary' => '修改层的权限。',
'path' => '/2023-03-30/layers/{layerName}/acl',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'abilityTreeCode' => '178544',
- 'abilityTreeNodes' => [
- 'FEATUREfcN46UH2',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcN46UH2'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -10766,27 +7237,14 @@
'name' => 'layerName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '层名称',
- 'description' => '层名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-layer',
- ],
+ 'schema' => ['title' => '层名称', 'description' => '层名称', 'type' => 'string', 'required' => true, 'example' => 'my-layer'],
'examples' => [],
],
[
'name' => 'public',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否公开层',
- 'description' => '是否公开层。true或者false。',
- 'type' => 'string',
- 'deprecated' => true,
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['title' => '是否公开层', 'description' => '是否公开层。true或者false。', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'true'],
'examples' => [],
],
[
@@ -10810,413 +7268,296 @@
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
'title' => '设置层访问权限',
- ],
- 'ListInstances' => [
- 'summary' => '查询函数实例列表。',
- 'path' => '/2023-03-30/functions/{functionName}/instances',
- 'methods' => [
- 'get',
+ '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' => '全部资源', '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' => 'list',
+ 'operationType' => 'create',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178512',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '178546',
+ 'abilityTreeNodes' => ['FEATUREfcHRC0TU'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
'examples' => [],
],
[
'name' => 'qualifier',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'schema' => ['title' => '函数别名', 'description' => '函数别名', 'type' => 'string', 'required' => false, 'example' => 'prod'],
'examples' => [],
],
[
- 'name' => 'withAllActive',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否列出所有活跃实例',
- 'description' => '是否列出所有实例。true或者false。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '预留配置信息', 'description' => '预留配置信息', 'required' => true, '$ref' => '#/components/schemas/PutProvisionConfigInput'],
'examples' => [],
],
- [
- 'name' => 'instanceStatus',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Running',
- 'Terminating',
- 'Destroyed',
- ],
- ],
- 'required' => false,
- ],
- ],
- [
- 'name' => 'startTimeMs',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'endTimeMs',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'startKey',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'instanceIds',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'required' => false,
- ],
- ],
],
'responses' => [
200 => [
- 'description' => '函数实例列表',
- 'schema' => [
- 'title' => '函数实例列表',
- 'description' => '函数实例列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListInstancesOutput',
- ],
+ 'schema' => ['title' => '预留配置信息', 'description' => '预留配置信息', 'required' => false, '$ref' => '#/components/schemas/ProvisionConfig'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '列出函数实例',
- ],
- 'ListVpcBindings' => [
- 'summary' => '查询已创建的VPC连接。',
- 'path' => '/2023-03-30/functions/{functionName}/vpc-bindings',
- 'methods' => [
- 'get',
+ 'title' => '设置函数预留实例',
+ 'summary' => '创建预留配置。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutProvisionConfig'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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"}]',
+ ],
+ 'PutScalingConfig' => [
+ 'summary' => '设置函数弹性配置。',
+ 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '191968',
- 'abilityTreeNodes' => [
- 'FEATUREfcL3E8J5',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['description' => '函数名称', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['description' => '函数别名', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => ['description' => '函数弹性配置', 'required' => false, '$ref' => '#/components/schemas/PutScalingConfigInput'],
],
],
'responses' => [
200 => [
- 'description' => 'VPC绑定配置列表',
- 'schema' => [
- 'title' => 'VPC绑定配置列表',
- 'description' => 'VPC绑定配置列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListVpcBindingsOutput',
- ],
- 'examples' => [],
+ 'schema' => ['description' => '函数弹性配置信息', '$ref' => '#/components/schemas/ScalingConfigStatus'],
],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
+ 400 => [],
+ 500 => [],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '设置函数弹性配置',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PutScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'examples' => [],
],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"vpcIds\\": [\\n \\"vpc-8vb8x8dggvr0axxxxxxxx\\"\\n ]\\n}","type":"json"}]',
- 'title' => '列出VPC绑定配置',
+ '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"}]',
],
- 'CreateVpcBinding' => [
- 'summary' => '创建VPC连接。',
- 'path' => '/2023-03-30/functions/{functionName}/vpc-bindings',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'tags' => [],
+ 'ResumeSession' => [
+ 'summary' => '恢复会话',
+ 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}/resume',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '191967',
- 'abilityTreeNodes' => [
- 'FEATUREfcL3E8J5',
- ],
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
'autoTest' => true,
- 'tenantRelevance' => 'tenant',
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['description' => 'Session 的函数名称', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => 'VPC绑定配置',
- 'description' => 'VPC绑定配置',
- 'required' => true,
- '$ref' => '#/components/schemas/CreateVpcBindingInput',
- ],
- 'examples' => [],
+ 'name' => 'sessionId',
+ 'in' => 'path',
+ 'schema' => ['description' => '需要恢复的会话 ID 值', 'type' => 'string', 'required' => false, 'example' => 'test-sessionid-1'],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'schema' => ['description' => '需要恢复的 SessionID 关联的函数别名或版本信息', 'type' => 'string', 'required' => false, 'example' => 'aliasName1'],
+ ],
+ [
+ 'name' => 'fileSystemOnly',
+ 'in' => 'query',
+ 'schema' => ['type' => 'boolean'],
],
],
'responses' => [
200 => [
- 'description' => 'OK',
- 'examples' => [],
- ],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
- 'examples' => [],
+ 'schema' => ['description' => '会话配置信息', '$ref' => '#/components/schemas/Session'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '恢复会话',
+ 'description' => '恢复一个 Paused 状态的会话。系统会根据之前持久化的状态,在一个新的执行环境中快速恢复会话,使其恢复到暂停前的状态。恢复成功后,会话状态重新变为 Active,可继续接受函数调用请求并路由至该恢复后的实例。适用于配置了 HEADER_FIELD 或 GENERATED_COOKIE 亲和类型以及会话隔离的自定义镜像函数。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:ResumeSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '创建VPC绑定',
+ '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\\": true\\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\\": true\\n}","type":"json"}]',
],
- 'DeleteVpcBinding' => [
- 'summary' => '删除指定VPC防火墙策略组的访问控制策略。',
- 'path' => '/2023-03-30/functions/{functionName}/vpc-bindings/{vpcId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'StopAsyncTask' => [
+ 'path' => '/2023-03-30/functions/{functionName}/async-tasks/{taskId}/stop',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [],
- 'operationType' => 'write',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '191969',
- 'abilityTreeNodes' => [
- 'FEATUREfcL3E8J5',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '213994',
+ 'abilityTreeNodes' => ['FEATUREfcYBHLF0'],
'autoTest' => true,
- 'tenantRelevance' => 'tenant',
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称。', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
],
[
- 'name' => 'vpcId',
+ 'name' => 'taskId',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => 'VPC实例ID',
- 'description' => 'VPC实例ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'vpc-bp106zxlfj1fqc9',
- ],
- 'examples' => [],
+ 'schema' => ['title' => '异步任务 id', 'description' => '异步任务ID。', 'type' => 'string', 'required' => true, 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****'],
+ ],
+ [
+ 'name' => 'qualifier',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => ['title' => '函数版本或别名', 'description' => '函数版本或别名。', 'type' => 'string', 'required' => false, 'example' => 'LATEST'],
],
],
'responses' => [
@@ -11227,54 +7568,54 @@
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
+ 'title' => '停止异步任务',
+ 'summary' => '停止异步任务。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopAsyncTask'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:StopAsyncTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除VPC绑定',
],
'TagResources' => [
- 'summary' => '给指定资源打标签。',
'path' => '/2023-03-30/tags-v2',
- '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' => 'readAndWrite',
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '205648',
- 'abilityTreeNodes' => [
- 'FEATUREfcWG6KAJ',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcWG6KAJ'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -11283,230 +7624,67 @@
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '资源标签配置',
- 'description' => '资源标签配置',
- 'required' => true,
- '$ref' => '#/components/schemas/TagResourcesInput',
- ],
+ 'schema' => ['title' => '资源标签配置', 'description' => '资源标签配置', 'required' => true, '$ref' => '#/components/schemas/TagResourcesInput'],
],
],
'responses' => [
200 => [
- 'description' => 'OK',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
'title' => '设置资源标签',
- ],
- 'ListTagResources' => [
- 'summary' => '列出所有被打标签的资源。',
- 'path' => '/2023-03-30/tags-v2',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'tags' => [],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '205647',
- 'abilityTreeNodes' => [
- 'FEATUREfcWG6KAJ',
+ 'summary' => '给指定资源打标签。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
- [
- 'name' => 'ResourceType',
- 'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '资源数量类型, ALIYUN::FC::FUNCTION 表示函数计算3.0版本中的函数',
- 'description' => '资源类型。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ALIYUN::FC::FUNCTION',
- ],
- ],
- [
- 'name' => 'ResourceId',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'style' => 'json',
- 'schema' => [
- 'title' => '资源标识列表',
- 'description' => '资源ID列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:1234/functions/my-func',
- ],
- 'required' => false,
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'Tag',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'style' => 'json',
- 'schema' => [
- 'title' => '标签列表',
- 'description' => '标签列表。'."\n"
- ."\n"
- .'一次最多支持查询20个标签。',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签信息。',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => '标签键。'."\n"
- ."\n"
- .'最多支持64个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'k1',
- ],
- 'Value' => [
- 'description' => '标签值。'."\n"
- ."\n"
- .'标签值最多支持128个字符,可以为空字符串。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v1',
- ],
- ],
- 'required' => false,
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
- 'required' => false,
- ],
- ],
- [
- 'name' => 'NextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '下一个查询开始Token',
- 'description' => '下一个查询开始Token。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- ],
- [
- 'name' => 'Limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回的资源数量',
- 'description' => '返回的资源数量。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
],
],
],
- 'responses' => [
- 200 => [
- 'description' => '资源列表',
- 'schema' => [
- 'title' => '资源列表',
- 'description' => '资源列表',
- 'required' => false,
- '$ref' => '#/components/schemas/ListTagResourcesOutput',
- ],
- 'examples' => [],
- ],
- 500 => [
- 'description' => '错误信息',
- 'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
- 'examples' => [],
- ],
- ],
- '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' => '查询资源标签关系',
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'UntagResources' => [
'summary' => '删除资源的标签。',
'path' => '/2023-03-30/tags-v2',
- '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' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'abilityTreeCode' => '206475',
- 'abilityTreeNodes' => [
- 'FEATUREfcWG6KAJ',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcWG6KAJ'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -11515,13 +7693,7 @@
'name' => 'ResourceType',
'in' => 'query',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'function',
- ],
+ 'schema' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => true, 'example' => 'function'],
],
[
'name' => 'ResourceId',
@@ -11532,14 +7704,9 @@
'title' => '资源标识列表',
'description' => '资源标识列表',
'type' => 'array',
- 'items' => [
- 'description' => '资源ID。'."\n"
- ."\n"
- .'函数的ARN信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1',
- ],
+ 'items' => ['description' => '资源ID。'."\n"
+ ."\n"
+ .'函数的ARN信息。', 'type' => 'string', 'required' => false, 'example' => 'acs:fc:cn-shanghai:xxx:functions/f1'],
'required' => true,
],
],
@@ -11552,12 +7719,7 @@
'title' => '标签名称列表',
'description' => '要移除的标签。最多指定50个。',
'type' => 'array',
- 'items' => [
- 'description' => '标签键。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'k1',
- ],
+ 'items' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'k1'],
'required' => false,
],
],
@@ -11565,71 +7727,66 @@
'name' => 'All',
'in' => 'query',
'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否删除所有标签',
- 'description' => '是否删除所有标签',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['title' => '是否删除所有标签', 'description' => '是否删除所有标签', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
- 'description' => 'OK',
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
'title' => '删除资源标签',
- ],
- 'GetAsyncTask' => [
- 'summary' => '获取指定异步任务详情。',
- 'path' => '/2023-03-30/functions/{functionName}/async-tasks/{taskId}',
- 'methods' => [
- 'get',
+ '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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
+ ],
+ 'UpdateAlias' => [
+ 'summary' => '更新别名。',
+ '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' => 'get',
- 'abilityTreeCode' => '213992',
- 'abilityTreeNodes' => [
- 'FEATUREfcBKET2W',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '184941',
+ 'abilityTreeNodes' => ['FEATUREfcI9H8B8'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -11638,413 +7795,239 @@
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
+ 'examples' => [],
],
[
- 'name' => 'taskId',
+ 'name' => 'aliasName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '异步任务 id',
- 'description' => '异步任务ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****',
- ],
+ 'schema' => ['title' => '函数别名名称', 'description' => '函数别名名称', 'type' => 'string', 'required' => true, 'example' => 'my-alias'],
+ 'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '待更新的别名信息', 'description' => '待更新的别名信息', 'required' => true, '$ref' => '#/components/schemas/UpdateAliasInput'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '异步任务信息',
- 'schema' => [
- 'title' => '异步任务信息',
- 'description' => '异步任务信息。该参数下的 returnPayload 字段当前处于内测阶段,如您需要使用,请[联系我们](~~2513733~~)为您开通。',
- 'required' => false,
- '$ref' => '#/components/schemas/AsyncTask',
- ],
+ 'description' => '更新后的别名信息',
+ 'schema' => ['title' => '更新后的别名信息', 'description' => '更新后的别名信息', 'required' => false, '$ref' => '#/components/schemas/Alias'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'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' => '获取异步任务',
- ],
- 'ListAsyncTasks' => [
- 'summary' => '获取异步任务详情列表。',
- 'path' => '/2023-03-30/functions/{functionName}/async-tasks',
- 'methods' => [
- 'get',
+ 'title' => '更新别名',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAlias'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => 'list',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '213993',
- 'abilityTreeNodes' => [
- 'FEATUREfcVF016G',
- ],
+ 'abilityTreeCode' => '178510',
+ 'abilityTreeNodes' => ['FEATUREfcJ7WA06'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'functionName',
+ 'name' => 'domainName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
- ],
- [
- 'name' => 'prefix',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '异步任务id前缀',
- 'description' => '异步任务ID前缀,指定后会返回符合前缀的异步任务列表。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'job-',
- ],
- ],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页标记,用来返回更多结果。第一次查询不需要提供这个参数,后续查询的 Token 从返回结果中获取。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
- ],
- ],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回异步任务的数量',
- 'description' => '返回异步任务的数量。默认返回 20 个,取值范围[1,100]。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- ],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
- ],
- [
- 'name' => 'status',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '异步任务执行状态。Enqueued 表示请求已经成功入队;Running 表示正在执行中;Succeeded 表示执行成功;Failed 表示执行失败;Stopped 表示停止执行;Expired 表示请求已过期',
- 'description' => '异步任务执行状态。'."\n"
- .'- Enqueued:异步消息已入队,等待处理。'."\n"
- ."\n"
- .'- Dequeued:异步消息已出队,等待触发。'."\n"
- ."\n"
- .'- Running:调用执行中。'."\n"
- ."\n"
- .'- Succeeded:调用执行成功。'."\n"
- ."\n"
- .'- Failed:调用执行失败。'."\n"
- ."\n"
- .'- Stopped:调用执行终止。'."\n"
- ."\n"
- .'- Stopping:执行停止中。'."\n"
- ."\n"
- .'- Expired:您为任务配置了最长排队等待的期限。该任务因为超期被丢弃(任务未被执行)。'."\n"
- ."\n"
- .'- Invalid:您的执行因函数被删除等原因处于无效状态(任务未被执行)。'."\n"
- ."\n"
- .'- Retrying:异步调用因执行错误重试中。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Running',
- ],
- ],
- [
- 'name' => 'startedTimeBegin',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '异步任务启动时间段的开始时间',
- 'description' => '异步任务启动时间段的开始时间。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1640966400000',
- ],
- ],
- [
- 'name' => 'startedTimeEnd',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '异步任务启动时间段的结束时间',
- 'description' => '异步任务启动时间段的结束时间。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1640966400000',
- ],
- ],
- [
- 'name' => 'sortOrderByTime',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '返回异步任务列表的排序方式。asc 表示生序;desc 表示降序',
- 'description' => '返回异步任务列表的排序方式。'."\n"
- ."\n"
- .'- asc 表示升序'."\n"
- ."\n"
- .'- desc 表示降序',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'asc',
- ],
+ 'schema' => ['title' => '域名', 'description' => '域名', 'type' => 'string', 'required' => true, 'example' => 'foo.bar.com'],
+ 'examples' => [],
],
[
- 'name' => 'includePayload',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '是否返回异步任务的入参',
- 'description' => '是否返回异步任务的入参。'."\n"
- ."\n"
- .'- true:当该参数设置为true时,异步任务的列表将返回`invocationPayload`字段。'."\n"
- ."\n"
- .'- false:当该参数设置为false时,则不返回`invocationPayload`字段。'."\n"
- ."\n"
- .'> `invocationPayload`字段表示异步任务函数运行时的输入参数。',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '自定义域名信息', 'description' => '自定义域名信息', 'required' => true, '$ref' => '#/components/schemas/UpdateCustomDomainInput'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'description' => '异步任务列表',
- 'schema' => [
- 'title' => '异步任务列表',
- 'description' => '返回数据结构体',
- 'required' => false,
- '$ref' => '#/components/schemas/ListAsyncTaskOutput',
- ],
+ 'schema' => ['title' => '自定义域名信息', 'description' => '自定义域名信息', 'required' => false, '$ref' => '#/components/schemas/CustomDomain'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'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' => '获取异步任务列表',
- ],
- 'StopAsyncTask' => [
- 'summary' => '停止异步任务。',
- 'path' => '/2023-03-30/functions/{functionName}/async-tasks/{taskId}/stop',
- 'methods' => [
- 'put',
+ 'title' => '更新自定义域名',
+ 'summary' => '更新自定义域名。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateCustomDomain'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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.2\\"\\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\\": true\\n}","type":"json"}]',
+ ],
+ 'UpdateFunction' => [
+ 'path' => '/2023-03-30/functions/{functionName}',
+ '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',
- ],
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178513',
+ 'abilityTreeNodes' => ['FEATUREfcVF016G'],
'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'functionName',
'in' => 'path',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
+ 'examples' => [],
],
[
- 'name' => 'taskId',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
'allowEmptyValue' => false,
- 'schema' => [
- 'title' => '异步任务 id',
- 'description' => '异步任务ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****',
- ],
- ],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'title' => '函数版本或别名',
- 'description' => '函数版本或别名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
- ],
+ 'schema' => ['title' => '函数信息', 'description' => '函数信息', 'required' => true, '$ref' => '#/components/schemas/UpdateFunctionInput'],
+ 'examples' => [],
],
],
'responses' => [
- 204 => [
- 'description' => 'No Content',
+ 200 => [
+ 'schema' => ['title' => '更新后的函数信息', 'description' => '更新后的函数信息', 'required' => false, '$ref' => '#/components/schemas/Function'],
'examples' => [],
],
500 => [
'description' => '错误信息',
'headers' => [],
- 'schema' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'required' => false,
- '$ref' => '#/components/schemas/Error',
- ],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
'examples' => [],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '停止异步任务',
- ],
- 'CreateSession' => [
- 'summary' => '创建一个显式会话资源。系统自动生成唯一 SessionID,预分配函数实例并绑定会话,支持指定 TTL 和 IdleTimeout。适用于 HEADER_FIELD 或 GENERATED_COOKIE 亲和类型,实现会话预热与配置初始化,调用后即可在 InvokeFunction 请求携带,用于路由请求。',
- 'path' => '/2023-03-30/functions/{functionName}/sessions',
- 'methods' => [
- 'post',
+ 'title' => '更新函数',
+ 'summary' => '更新函数信息。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFunction'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'UpdateSession' => [
+ 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
+ 'methods' => ['put'],
+ 'schemes' => ['https'],
'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',
- ],
+ 'abilityTreeNodes' => ['FEATUREfcYLZHVD'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -12052,80 +8035,70 @@
[
'name' => 'functionName',
'in' => 'path',
- 'schema' => [
- 'title' => '创建Session的函数名称',
- 'description' => '创建Session的函数名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
- ],
+ 'schema' => ['title' => 'Session所属的函数名称', 'description' => 'Session所属的函数名称', 'type' => 'string', 'required' => false, 'example' => 'my-func'],
+ ],
+ [
+ 'name' => 'sessionId',
+ 'in' => 'path',
+ 'schema' => ['title' => '更新的SessionId ,会话标识符', 'description' => '待更新的会话ID值', 'type' => 'string', 'required' => false, 'example' => 'test-sessionid-1'],
],
[
'name' => 'qualifier',
'in' => 'query',
- 'schema' => [
- 'title' => '用于指定函数所属的版本或别名',
- 'description' => '用于指定Sesion所属的版本或别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
- ],
+ 'schema' => ['title' => '函数别名或版本信息', 'description' => '待更新的SessionID关联的函数别名或版本信息', 'type' => 'string', 'required' => false, 'example' => 'aliasName1'],
],
[
'name' => 'body',
'in' => 'body',
- 'schema' => [
- 'title' => '创建会话配置',
- 'description' => '创建会话配置',
- 'required' => false,
- '$ref' => '#/components/schemas/CreateSessionInput',
- ],
+ 'schema' => ['title' => '会话更新配置', 'description' => '会话更新配置', 'required' => false, '$ref' => '#/components/schemas/UpdateSessionInput'],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => '会话资源信息',
- 'description' => '会话资源信息',
- '$ref' => '#/components/schemas/Session',
- ],
+ 'schema' => ['title' => '函数会话资源信息', 'description' => '更新后的函数会话资源信息', '$ref' => '#/components/schemas/Session'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '更新会话配置',
+ 'summary' => '更新Active状态下的会话配置,如 SessionTTLInSeconds 和 SessionIdleTimeoutInSeconds 等生命周期配置。更新后生效,LastModifiedTime 自动刷新。可用于延长或缩短会话有效期,实现动态管理,不改变会话绑定的执行环境。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '创建会话资源',
+ '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\\": true\\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\\": true,\\n \\"enableAutoResume\\": true\\n}","type":"json"}]',
],
- 'GetSession' => [
- 'summary' => '获取指定会话的详细信息,包括 SessionID、关联函数、亲和类型、生命周期配置、状态及实例信息。用于查询单个会话当前元数据,支持按 functionName 和 qualifier 精确定位,便于外部系统监控与调试,仅支持查询 Active 状态的会话。',
- 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'UpdateTrigger' => [
+ 'summary' => '更新触发器信息。',
+ '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' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcYLZHVD',
- ],
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '178536',
+ 'abilityTreeNodes' => ['FEATUREfc0CDUNQ'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
@@ -12133,704 +8106,1088 @@
[
'name' => 'functionName',
'in' => 'path',
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '会话所属函数名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'myFunction',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '函数名称', 'description' => '函数名称', 'type' => 'string', 'required' => true, 'example' => 'my-func'],
+ 'examples' => [],
],
[
- 'name' => 'sessionId',
+ 'name' => 'triggerName',
'in' => 'path',
- 'schema' => [
- 'title' => '会话ID值',
- 'description' => '查询的会话ID值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-sessionid-index1',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '触发器名称', 'description' => '触发器名称', 'type' => 'string', 'required' => true, 'example' => 'my-trigger'],
+ 'examples' => [],
],
[
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'title' => '函数别名或版本信息',
- 'description' => '查询的会话ID关联的函数别名或版本信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
- ],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'allowEmptyValue' => false,
+ 'schema' => ['title' => '触发器配置', 'description' => '触发器配置', 'required' => true, '$ref' => '#/components/schemas/UpdateTriggerInput'],
+ 'examples' => [],
],
],
'responses' => [
200 => [
- 'schema' => [
- 'title' => '函数会话信息',
- 'description' => '函数会话信息',
- '$ref' => '#/components/schemas/Session',
- ],
+ 'description' => '更新后的触发器配置',
+ 'schema' => ['title' => '更新后的触发器配置', 'description' => '更新后的触发器配置', 'required' => false, '$ref' => '#/components/schemas/Trigger'],
+ 'examples' => [],
+ ],
+ 500 => [
+ 'description' => '错误信息',
+ 'headers' => [],
+ 'schema' => ['title' => '错误信息', 'description' => '错误信息', 'required' => false, '$ref' => '#/components/schemas/Error'],
+ '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' => '获取会话配置信息',
- ],
- 'UpdateSession' => [
- 'summary' => '更新Active状态下的会话配置,如 SessionTTLInSeconds 和 SessionIdleTimeoutInSeconds 等生命周期配置。更新后生效,LastModifiedTime 自动刷新。可用于延长或缩短会话有效期,实现动态管理,不改变会话绑定的执行环境。',
- 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
- 'methods' => [
- 'put',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
],
- 'schemes' => [
- 'https',
+ 'title' => '更新触发器',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTrigger'],
+ ],
],
- 'security' => [
+ 'ramActions' => [
[
- 'AK' => [],
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
+ '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' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.ap-northeast-1.aliyuncs.com', 'endpoint' => 'fcv3.ap-northeast-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-northeast-2', 'regionName' => '韩国(首尔)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.ap-northeast-2.aliyuncs.com', 'endpoint' => 'fcv3.ap-northeast-2.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.ap-southeast-1.aliyuncs.com', 'endpoint' => 'fcv3.ap-southeast-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-2', 'regionName' => '澳大利亚(悉尼)已关停', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.ap-southeast-2.aliyuncs.com', 'endpoint' => 'fcv3.ap-southeast-2.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.ap-southeast-3.aliyuncs.com', 'endpoint' => 'fcv3.ap-southeast-3.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.ap-southeast-5.aliyuncs.com ', 'endpoint' => 'fcv3.ap-southeast-5.aliyuncs.com ', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-7', 'regionName' => '泰国(曼谷)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.ap-southeast-7.aliyuncs.com', 'endpoint' => 'fcv3.ap-southeast-7.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-beijing.aliyuncs.com', 'endpoint' => 'fcv3.cn-beijing.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-chengdu.aliyuncs.com', 'endpoint' => 'fcv3.cn-chengdu.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-hangzhou.aliyuncs.com', 'endpoint' => 'fcv3.cn-hangzhou.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-hongkong.aliyuncs.com', 'endpoint' => 'fcv3.cn-hongkong.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-huhehaote.aliyuncs.com', 'endpoint' => 'fcv3.cn-huhehaote.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-qingdao.aliyuncs.com', 'endpoint' => 'fcv3.cn-qingdao.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-shanghai.aliyuncs.com', 'endpoint' => 'fcv3.cn-shanghai.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-shenzhen.aliyuncs.com', 'endpoint' => 'fcv3.cn-shenzhen.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'fcv3.cn-wulanchabu.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'fcv3.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'fcv3.cn-zhangjiakou.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'fcv3.us-west-1.aliyuncs.com', 'endpoint' => 'fcv3.us-west-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'fcv3.us-east-1.aliyuncs.com', 'endpoint' => 'fcv3.us-east-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'fcv3.eu-west-1.aliyuncs.com', 'endpoint' => 'fcv3.eu-west-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'fcv3.eu-central-1.aliyuncs.com', 'endpoint' => 'fcv3.eu-central-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'me-central-1', 'regionName' => '沙特(利雅得)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'me-central-1.fc.aliyuncs.com', 'endpoint' => 'me-central-1.fc.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-south-1', 'regionName' => '印度(孟买)已关停', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'fcv3.ap-south-1.aliyuncs.com', 'endpoint' => 'fcv3.ap-south-1.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'cn-shanghai-finance-1.fc.aliyuncs.com', 'endpoint' => 'cn-shanghai-finance-1.fc.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-heyuan-acdr-1', 'regionName' => '河源专属云汽车合规', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'cn-heyuan-acdr-1.fc.aliyuncs.com', 'endpoint' => 'cn-heyuan-acdr-1.fc.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', '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' => '自定义运行时或镜像函数启动失败'],
+ ['code' => 'CAFileNotFound', 'message' => 'The function cannot be started. %s.', 'http_code' => 412, 'description' => '自定义运行时函数启动文件缺失'],
+ ['code' => 'FunctionNotFound', 'message' => 'function \'%s\' does not exist.', 'http_code' => 404, 'description' => '函数未找到'],
+ ['code' => 'InstanceMetricsRequired', 'message' => 'Target tracking policy required instance metrics enabled.', 'http_code' => 400, 'description' => '配置预留的指标追踪伸缩策略时,必须开启实例指标采集功能。'],
+ ],
+ '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' => '函数计算',
+ 'ramCodes' => ['fc'],
+ 'ramLevel' => '资源级',
+ 'ramConditions' => [
+ [
+ 'name' => 'fc:EnableServiceSLSLogging',
+ 'schema' => [
+ 'type' => 'String',
+ 'description' => '是否打开函数SLS日志功能。如果没有指定该配置,条件值将为未定义值。',
+ 'enums' => ['true', 'false', 'unknown'],
+ ],
+ ],
+ [
+ 'name' => 'fc:EnableServiceInternetAccess',
+ 'schema' => [
+ 'type' => 'String',
+ 'description' => '是否打开函数访问公网功能。如果没有指定该配置,条件值将为未定义值。',
+ 'enums' => ['true', 'false', 'unknown'],
+ ],
+ ],
+ [
+ 'name' => 'fc:EnableCustomDomainHTTP',
+ 'schema' => [
+ 'type' => 'String',
+ 'description' => '是否打开HTTP协议访问自定义域名。如果没有指定该配置,条件值将为未定义值。',
+ 'enums' => ['true', 'false', 'unknown'],
+ ],
+ ],
+ [
+ 'name' => 'fc:EnableHTTPTriggerAnonymous',
+ 'schema' => [
+ 'type' => 'String',
+ 'description' => '是否打开HTTPTrigger匿名访问。如果没有指定该配置,条件值将为未定义值。',
+ 'enums' => ['true', 'false', 'unknown'],
+ ],
],
- 'operationType' => 'readAndWrite',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcYLZHVD',
+ ],
+ 'ramActions' => [
+ [
+ 'apiName' => 'GetTrigger',
+ 'description' => '获取触发器',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'title' => 'Session所属的函数名称',
- 'description' => 'Session所属的函数名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'GetProvisionConfig',
+ 'description' => '获取预留配置',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'sessionId',
- 'in' => 'path',
- 'schema' => [
- 'title' => '更新的SessionId ,会话标识符',
- 'description' => '待更新的会话ID值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-sessionid-1',
+ ],
+ [
+ 'apiName' => 'PublishFunctionVersion',
+ 'description' => '发布函数版本',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PublishFunctionVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'title' => '函数别名或版本信息',
- 'description' => '待更新的SessionID关联的函数别名或版本信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
+ ],
+ [
+ 'apiName' => 'GetAlias',
+ 'description' => '获取别名',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'schema' => [
- 'title' => '会话更新配置',
- 'description' => '会话更新配置',
- 'required' => false,
- '$ref' => '#/components/schemas/UpdateSessionInput',
+ ],
+ [
+ 'apiName' => 'DeleteScalingConfig',
+ 'description' => '删除函数弹性配置',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => '函数会话资源信息',
- 'description' => '更新后的函数会话资源信息',
- '$ref' => '#/components/schemas/Session',
+ [
+ 'apiName' => 'PutProvisionConfig',
+ 'description' => '设置函数预留实例',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'UpdateFunction',
+ 'description' => '更新函数',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '更新会话配置',
- ],
- 'ListSessions' => [
- 'summary' => '列举指定函数下Active/Expired 状态的会话列表,支持按 qualifier、状态、会话ID过滤,分页查询。返回会话基础属性,用于批量查看会话分布与状态,助力运维监控和外部系统集成,提升会话可见性与管理能力。',
- 'path' => '/2023-03-30/functions/{functionName}/sessions',
- 'methods' => [
- 'get',
+ [
+ 'apiName' => 'DeleteFunctionVersion',
+ 'description' => '删除函数版本',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteFunctionVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'DeleteAsyncInvokeConfig',
+ 'description' => '删除异步配置',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteFunctionAsyncInvokeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'GetFunction',
+ 'description' => '获取函数',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'consumes' => [
- 'application/json',
+ [
+ 'apiName' => 'UpdateSession',
+ 'description' => '更新会话配置',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ [
+ 'apiName' => 'PutConcurrencyConfig',
+ 'description' => '设置函数并发度',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcYLZHVD',
+ [
+ 'apiName' => 'GetLayerVersionByArn',
+ 'description' => '通过ARN获取层版本',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetLayerVersionByArn',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'title' => '函数名',
- 'description' => '函数名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'InvokeFunction',
+ 'description' => '调用函数',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:InvokeFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'title' => '函数别名或版本信息',
- 'description' => '函数别名或版本信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
+ ],
+ [
+ 'apiName' => 'CreateTrigger',
+ 'description' => '创建触发器',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'schema' => [
- 'title' => '返回的会话数量',
- 'description' => '返回的会话数量,如不填写默认返回 20条。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'maximum' => '100',
- 'minimum' => '1',
- 'example' => '10',
+ ],
+ [
+ 'apiName' => 'UpdateAlias',
+ 'description' => '更新别名',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'schema' => [
- 'title' => '分页起始标记',
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
+ ],
+ [
+ 'apiName' => 'PutAsyncInvokeConfig',
+ 'description' => '设置函数异步配置',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:PutFunctionAsyncInvokeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'sessionStatus',
- 'in' => 'query',
- 'schema' => [
- 'title' => '过滤表达式,格式:field:value[,field:value...],当前仅支持 sessionStatus'."\0".'信息,如sessionStatus'."\0".':Normal。',
- 'description' => '需要过滤的会话状态,默认返回所有Active/Expired状态的会话信息,也可指定 Active 仅获取活跃的会话信息,或指定Expired仅获取过期的会话信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Active',
+ ],
+ [
+ 'apiName' => 'ListLayerVersions',
+ 'description' => '列出层版本',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListLayerVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'sessionId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '过滤的SessionId 值,如指定,可返回关联的 Active/Expired 会话信息',
- 'description' => '过滤的SessionId值,如指定,可返回此会话关联的所有 Active/Expired 状态信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-session-id-1',
+ ],
+ [
+ 'apiName' => 'GetFunctionCode',
+ 'description' => '获取函数代码',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetFunctionCode',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => '返回的会话信息列表',
- '$ref' => '#/components/schemas/ListSessionsOutput',
+ [
+ 'apiName' => 'ChangeResourceGroup',
+ 'description' => '更新资源组',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:ChangeResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'Function', 'arn' => 'acs:fc:{#regionId}:{#accountId}:functions/{#FunctionName}'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'PutLayerACL',
+ 'description' => '设置层访问权限',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PutLayerACL',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '查询会话信息列表',
- ],
- 'DeleteSession' => [
- 'summary' => '删除指定会话,禁止新请求路由,会话元数据从数据库清除,客户携带相同 SessionID 的后续请求视为新会话。实现资源释放与会话清理。在会话隔离场景下,系统将中止运行的请求,释放会话绑定的实例。非会话隔离场景下,正在运行中的请求将继续运行,优雅终止。',
- 'path' => '/2023-03-30/functions/{functionName}/sessions/{sessionId}',
- 'methods' => [
- 'delete',
+ [
+ 'apiName' => 'GetConcurrencyConfig',
+ 'description' => '获取并发度配置',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'CreateAlias',
+ 'description' => '创建别名',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'CreateSession',
+ 'description' => '创建会话资源',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'consumes' => [
- 'application/json',
+ [
+ 'apiName' => 'ListAsyncInvokeConfigs',
+ 'description' => '列出函数异步配置',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListFunctionAsyncInvokeConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ [
+ 'apiName' => 'DeleteSession',
+ 'description' => '删除会话资源',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'DeleteCustomDomain',
+ 'description' => '删除自定义域名',
'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcYLZHVD',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'CustomDomain', 'arn' => 'acs:fc:{#regionId}:{#accountId}:custom-domains/{#domainName}'],
+ ],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'title' => '函数名称',
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'DeleteVpcBinding',
+ 'description' => '删除VPC绑定',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteVpcBinding',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'sessionId',
- 'in' => 'path',
- 'schema' => [
- 'title' => '会话ID值',
- 'description' => '需要删除的会话Id值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-session-id-1',
+ ],
+ [
+ 'apiName' => 'GetScalingConfig',
+ 'description' => '获取函数弹性配置',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'title' => '函数别名或版本信息',
- 'description' => '需要删除的SessionId关联的函数别名或版本信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'aliasName1',
+ ],
+ [
+ 'apiName' => 'ListSessions',
+ 'description' => '查询会话信息列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListSessions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 204 => [],
+ [
+ 'apiName' => 'CreateLayerVersion',
+ 'description' => '创建层版本',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'DeleteLayerVersion',
+ 'description' => '删除层版本',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除会话资源',
- ],
- 'PutScalingConfig' => [
- 'summary' => '设置函数弹性配置',
- 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
- 'methods' => [
- 'put',
+ [
+ 'apiName' => 'ListFunctions',
+ 'description' => '列出函数',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListFunctions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'ListConcurrencyConfigs',
+ 'description' => '列出函数并发度配置',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListConcurrencyConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'UntagResources',
+ 'description' => '删除资源标签',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:UntagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'DisableFunctionInvocation',
+ 'description' => '禁止函数调用',
'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcI9H8B8',
+ 'ramAction' => [
+ 'action' => 'fc:DisableFunctionInvocation',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => 'Function', 'arn' => 'acs:fc:{#regionId}:{#accountId}:functions/{#FunctionName}'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'TagResources',
+ 'description' => '设置资源标签',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'description' => '函数别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
+ ],
+ [
+ 'apiName' => 'DeleteFunction',
+ 'description' => '删除函数',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '函数弹性配置',
- 'required' => false,
- '$ref' => '#/components/schemas/PutScalingConfigInput',
+ ],
+ [
+ 'apiName' => 'ListTriggers',
+ 'description' => '列出触发器',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListTriggers',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => '函数弹性配置信息',
- '$ref' => '#/components/schemas/ScalingConfigStatus',
+ [
+ 'apiName' => 'CreateFunction',
+ 'description' => '创建函数',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateFunction',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- 400 => [],
- 500 => [],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'ListVpcBindings',
+ 'description' => '列出VPC绑定配置',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListVpcBindings',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '设置函数弹性配置',
- ],
- 'DeleteScalingConfig' => [
- 'summary' => '删除函数弹性配置',
- 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
- 'methods' => [
- 'delete',
+ [
+ 'apiName' => 'ListScalingConfigs',
+ 'description' => '列出函数弹性配置',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListScalingConfigs',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'UpdateTrigger',
+ 'description' => '更新触发器',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'StopAsyncTask',
+ 'description' => '停止异步任务',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:StopAsyncTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'DeleteProvisionConfig',
+ 'description' => '删除预留配置',
'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcI9H8B8',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteProvisionConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'UpdateCustomDomain',
+ 'description' => '更新自定义域名',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:UpdateCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'description' => '函数别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
+ ],
+ [
+ 'apiName' => 'ListAsyncTasks',
+ 'description' => '获取异步任务列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListAsyncTasks',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 204 => [],
- 400 => [],
- 500 => [],
- ],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'ListAliases',
+ 'description' => '列出别名',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListAliases',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
- 'title' => '删除函数弹性配置',
- ],
- 'GetScalingConfig' => [
- 'summary' => '获取函数弹性配置',
- 'path' => '/2023-03-30/functions/{functionName}/scaling-config',
- 'methods' => [
- 'get',
+ [
+ 'apiName' => 'GetAsyncInvokeConfig',
+ 'description' => '获取异步配置',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetFunctionAsyncInvokeConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'ListFunctionVersions',
+ 'description' => '列出函数版本',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListFunctionVersions',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'DeleteTrigger',
+ 'description' => '删除触发器',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteTrigger',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'GetCustomDomain',
+ 'description' => '获取自定义域名',
'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREfcHRC0TU',
- 'FEATUREfcEHTP7G',
+ 'ramAction' => [
+ 'action' => 'fc:GetCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'path',
- 'schema' => [
- 'description' => '函数名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'my-func',
+ [
+ 'apiName' => 'CreateCustomDomain',
+ 'description' => '创建自定义域名',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateCustomDomain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'qualifier',
- 'in' => 'query',
- 'schema' => [
- 'description' => '函数别名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LATEST',
+ ],
+ [
+ 'apiName' => 'PauseSession',
+ 'description' => '暂停会话',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PauseSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => '弹性配置信息',
- '$ref' => '#/components/schemas/ScalingConfigStatus',
+ [
+ 'apiName' => 'ListCustomDomains',
+ 'description' => '列出自定义域名',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListCustomDomains',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'ResumeSession',
+ 'description' => '恢复会话',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:ResumeSession',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '获取函数弹性配置',
- ],
- 'ListScalingConfigs' => [
- 'summary' => '列出函数弹性配置',
- 'path' => '/2023-03-30/scaling-configs',
- 'methods' => [
- 'get',
+ [
+ 'apiName' => 'GetAsyncTask',
+ 'description' => '获取异步任务',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetAsyncTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'DeleteConcurrencyConfig',
+ 'description' => '删除并发度配置',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteConcurrencyConfig',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'DeleteAlias',
+ 'description' => '删除别名',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'fc:DeleteAlias',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ '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' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'functionName',
- 'in' => 'query',
- 'schema' => [
- 'description' => '函数名称',
- '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' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'nextToken',
- 'in' => 'query',
- 'schema' => [
- 'description' => '分页起始标记',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MTIzNCNhYmM=',
+ ],
+ [
+ 'apiName' => 'GetLayerVersion',
+ 'description' => '获取层版本',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'fc:GetLayerVersion',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'limit',
- 'in' => 'query',
- 'schema' => [
- 'description' => '返回的弹性配置数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '20',
+ ],
+ [
+ 'apiName' => 'CreateVpcBinding',
+ 'description' => '创建VPC绑定',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'fc:CreateVpcBinding',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => '弹性配置列表',
- '$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' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PutScalingConfig',
+ 'description' => '设置函数弹性配置',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'fc:PutScalingConfig',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListInstances',
+ 'description' => '列出函数实例',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListInstances',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListProvisionConfigs',
+ 'description' => '列出函数预留配置',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'fc:ListProvisionConfigs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'FCV3', 'resourceType' => '全部资源', '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' => '列出函数弹性配置',
- ],
- ],
- '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}'],
],
],
];