'1.0', 'info' => [ 'style' => 'FC', 'product' => 'FC-Open', 'version' => '2021-04-06', ], 'directories' => [ [ 'id' => 163711, 'title' => 'ReservedCapacities', 'type' => 'directory', 'children' => [ 'ListReservedCapacities', ], ], [ 'id' => 163713, 'title' => 'GetAccountSettings', 'type' => 'directory', 'children' => [ 'DescribeRegions', 'GetAccountSettings', ], ], [ 'id' => 163715, 'title' => 'Service', 'type' => 'directory', 'children' => [ 'CreateService', 'DeleteService', 'UpdateService', 'ListServices', 'GetService', ], ], [ 'id' => 163721, 'title' => 'ServiceVersion', 'type' => 'directory', 'children' => [ 'DeleteServiceVersion', 'PublishServiceVersion', 'ListServiceVersions', ], ], [ 'id' => 163725, 'title' => 'Trigger', 'type' => 'directory', 'children' => [ 'CreateTrigger', 'DeleteTrigger', 'UpdateTrigger', 'GetTrigger', 'ListTriggers', ], ], [ 'id' => 163731, 'title' => 'CustomDomain', 'type' => 'directory', 'children' => [ 'CreateCustomDomain', 'DeleteCustomDomain', 'UpdateCustomDomain', 'GetCustomDomain', 'ListCustomDomains', ], ], [ 'id' => 163737, 'title' => 'Alias', 'type' => 'directory', 'children' => [ 'CreateAlias', 'DeleteAlias', 'UpdateAlias', 'GetAlias', 'ListAliases', ], ], [ 'id' => 163743, 'title' => 'Function', 'type' => 'directory', 'children' => [ 'CreateFunction', 'DeleteFunction', 'UpdateFunction', 'GetFunction', 'GetFunctionCode', 'ListFunctions', 'InvokeFunction', ], ], [ 'id' => 163751, 'title' => 'FunctionAsyncInvokeConfig', 'type' => 'directory', 'children' => [ 'PutFunctionAsyncInvokeConfig', 'DeleteFunctionAsyncInvokeConfig', 'GetFunctionAsyncInvokeConfig', 'ListFunctionAsyncInvokeConfigs', ], ], [ 'id' => 163756, 'title' => 'FunctionOnDemandConfig', 'type' => 'directory', 'children' => [ 'DeleteFunctionOnDemandConfig', 'GetFunctionOnDemandConfig', 'ListOnDemandConfigs', 'PutFunctionOnDemandConfig', ], ], [ 'id' => 163761, 'title' => 'ProvisionConfig', 'type' => 'directory', 'children' => [ 'GetProvisionConfig', 'ListProvisionConfigs', 'PutProvisionConfig', ], ], [ 'id' => 163765, 'title' => 'StatefulAsyncInvocation', 'type' => 'directory', 'children' => [ 'StopStatefulAsyncInvocation', 'ListStatefulAsyncInvocationFunctions', 'GetStatefulAsyncInvocation', 'ListStatefulAsyncInvocations', ], ], [ 'id' => 163769, 'title' => 'Layer', 'type' => 'directory', 'children' => [ 'CreateLayerVersion', 'DeleteLayerVersion', 'ListLayers', 'ListLayerVersions', 'GetLayerVersion', 'PutLayerACL', ], ], [ 'id' => 163775, 'title' => 'EventSources', 'type' => 'directory', 'children' => [ 'ListEventSources', 'DeregisterEventSource', 'RegisterEventSource', ], ], [ 'id' => 163779, 'title' => 'VpcBinding', 'type' => 'directory', 'children' => [ 'CreateVpcBinding', 'DeleteVpcBinding', 'ListVpcBindings', ], ], [ 'id' => 163783, 'title' => 'Tag', 'type' => 'directory', 'children' => [ 'GetResourceTags', 'ListTaggedResources', 'TagResource', 'UntagResource', ], ], [ 'id' => 169531, 'title' => 'Instances', 'type' => 'directory', 'children' => [ 'ListInstances', ], ], ], 'components' => [ 'schemas' => [ 'AccelerationInfo' => [ 'title' => 'A short description of struct', 'description' => 'The acceleration information about the custom container.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'status' => [ 'title' => '', 'description' => 'The status of the acceleration for function invocations. Valid values:'."\n" ."\n" .'* **Preparing**: The acceleration is being prepared. When the acceleration is being prepared, an original image is used to invoke functions without acceleration.'."\n" .'* **Ready**: The acceleration is complete. Function invocations are accelerated.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Preparing', 'backendName' => 'status', ], ], ], 'AsyncConfigMeta' => [ 'title' => '', 'description' => 'The metadata of the service and function to which the asynchronous task belongs.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'serviceName' => [ 'title' => '', 'description' => 'The name of the service to which the asynchronous task belongs.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'serviceName', 'backendName' => 'serviceName', ], 'functionName' => [ 'title' => '', 'description' => 'The name of the function to which the asynchronous task belongs.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'functionName', 'backendName' => 'functionName', ], 'qualifier' => [ 'title' => '', 'description' => 'The version or alias of the service to which the asynchronous task belongs.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'LATEST', 'backendName' => 'qualifier', ], ], ], 'AvailableAZ' => [ 'title' => 'A short description of struct', 'description' => 'The zones.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'availableAZs' => [ 'title' => 'az', 'description' => 'The zone.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '[\'cn-chengdu-a\', \'cn-chengdu-b\']', 'backendName' => 'availableAZs', ], ], ], 'BatchWindow' => [ 'title' => 'A short description of struct', 'description' => 'The batch window configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'CountBasedWindow' => [ 'title' => 'CountBasedWindow', 'description' => 'The maximum number of events that are allowed in the batch window. When this threshold is reached, data in the window is pushed downstream. If multiple batch windows exist, data is pushed if triggering conditions are met in one of the windows.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'backendName' => 'CountBasedWindow', ], 'TimeBasedWindow' => [ 'title' => 'TimeBasedWindow', 'description' => 'The maximum period of time during which events are allowed in the batch window. Unit: seconds. When this threshold is reached, data in the window is pushed downstream. If multiple batch windows exist, data is pushed if triggering conditions are met in one of the windows.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'backendName' => 'TimeBasedWindow', ], ], ], 'CDNEventsTriggerConfig' => [ 'title' => 'A short description of struct', 'description' => 'The configurations of the Alibaba Cloud CDN (CDN) event trigger.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'eventName' => [ 'title' => 'eventName', 'description' => 'The trigger event type. For more information about how to select a trigger event type, see the description about CDN triggers.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'CdnDomainStarted', 'backendName' => 'eventName', ], 'eventVersion' => [ 'title' => 'eventVersion', 'description' => 'The version of the trigger event. Only event version 1.0.0 is supported.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '1.0.1', 'backendName' => 'eventVersion', ], 'notes' => [ 'title' => 'notes', 'description' => 'The description of the trigger.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Cache event trigger'."\n", 'backendName' => 'notes', ], 'filter' => [ 'title' => 'filter', 'description' => 'The description of the event filtering rule.'."\n", 'visibility' => 'public', 'type' => 'object', 'additionalProperties' => [ 'description' => 'The collection of event filtering rules.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The key string for event filter.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '“filter-key”', 'extendType' => 'true', ], 'enumValueTitles' => [], 'itemName' => 'elem', ], 'backendName' => 'filter', ], ], ], 'CertConfig' => [ 'description' => 'HTTPS certificate configurations.', 'properties' => [ 'certName' => [ 'backendName' => 'certName', 'description' => 'The name of the certificate. The name can be customized. ', 'example' => 'my-cert', 'title' => 'The name of the certificate.', 'type' => 'string', 'visibility' => 'public', ], 'certificate' => [ 'backendName' => 'certificate', 'description' => 'The certificate. To configure a certificate chain, specify multiple certificates in sequence. '."\n" ."\n", 'example' => '-----BEGIN CERTIFICATE----- xxxxx -----END CERTIFICATE-----', 'title' => 'The certificate. To configure a certificate chain, specify multiple certificates in sequence.', 'type' => 'string', 'visibility' => 'public', ], 'privateKey' => [ 'backendName' => 'privateKey', 'description' => 'The private key. ', 'example' => '-----BEGIN RSA PRIVATE KEY----- xxxxx -----END RSA PRIVATE KEY-----', 'title' => 'The private key.', 'type' => 'string', 'visibility' => 'public', ], ], 'title' => 'HTTPS certificate configurations.', 'type' => 'object', 'visibility' => 'public', ], 'Code' => [ 'title' => 'A short description of struct', 'description' => 'The function code.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'ossBucketName' => [ 'title' => '', 'description' => 'The name of the Object Storage Service (OSS) bucket that stores the ZIP package of the function code.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'demo-bucket', 'backendName' => 'ossBucketName', ], 'ossObjectName' => [ 'title' => '', 'description' => 'The name of the OSS object (ZIP package) that contains the function code.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'demo-key', 'backendName' => 'ossObjectName', ], 'zipFile' => [ 'title' => '', 'description' => 'The ZIP package of the function code that is encoded in Base64 format.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'cHJpbnQoImhlbGxvIHdvcmxkIikK', 'backendName' => 'zipFile', ], ], ], 'CustomContainerConfig' => [ 'title' => '', 'description' => 'The function configurations for a custom container.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'args' => [ 'title' => '', 'description' => 'The startup argument of the container.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '["-arg1", "value1"]', 'backendName' => 'args', ], 'command' => [ 'title' => '', 'description' => 'The startup command of the container.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '["/code/myserver"]', 'backendName' => 'command', ], 'image' => [ 'title' => '', 'description' => 'The endpoint of the container image.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1', 'backendName' => 'image', ], 'accelerationType' => [ 'title' => '', 'description' => 'Specifies whether to enable image acceleration. Valid values:'."\n" ."\n" .'* **Default**: enables image acceleration.'."\n" .'* **None**: disables image acceleration.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Default', 'backendName' => 'accelerationType', ], 'instanceID' => [ 'title' => '', 'description' => 'The ID of the image repository for the Container Registry Enterprise Edition. You must specify this parameter if you use an image of Container Registry Enterprise Edition.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'cri-xxxxxxxxxx', 'backendName' => 'instanceID', ], 'webServerMode' => [ 'title' => '', 'description' => 'Specifies whether to enable the web server mode. Valid values:'."\n" ."\n" .'* true (default): enables web server mode. In this case, web servers must be implemented in container images to listen for and process requests.'."\n" .'* false: disables web server mode. In this case, the container exits the process after running and the exit code must be 0.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'webServerMode', 'default' => 'true', ], ], ], 'CustomContainerConfigInfo' => [ 'title' => 'A short description of struct', 'description' => 'The function configurations for a custom container.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'args' => [ 'title' => '', 'description' => 'The startup argument of the container.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '["-arg1", "value1"]', 'backendName' => 'args', ], 'command' => [ 'title' => '', 'description' => 'The startup command of the container.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '["/code/myserver"]', 'backendName' => 'command', ], 'image' => [ 'title' => '', 'description' => 'The endpoint of the container image.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1', 'backendName' => 'image', ], 'accelerationType' => [ 'title' => '', 'description' => 'Specifies whether to enable image acceleration. Valid values:'."\n" ."\n" .'* Default: enables image acceleration.'."\n" .'* None: disables image acceleration.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Default', 'backendName' => 'accelerationType', ], 'accelerationInfo' => [ 'description' => 'The information about the acceleration of the custom container.'."\n", 'visibility' => 'public', 'backendName' => 'accelerationInfo', '$ref' => '#/components/schemas/AccelerationInfo', ], 'instanceID' => [ 'title' => '', 'description' => 'The ID of the image repository for the Container Registry Enterprise Edition. You must specify this parameter if you use an image of Container Registry Enterprise Edition.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'cri-xxxxxxxxxx', 'backendName' => 'instanceID', ], 'webServerMode' => [ 'title' => '', 'description' => 'Specifies whether to enable web server mode.'."\n" ."\n" .'* true (default): enables web server mode. In this case, web servers must be implemented in container images to listen for and process requests.'."\n" .'* false: disables web server mode. In this case, the container exits the process after running and the exit code must be 0.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'webServerMode', 'default' => 'true', ], ], ], 'CustomDNS' => [ 'title' => 'A short description of struct', 'description' => 'The custom Domain Name System (DNS) configurations of the function.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'nameServers' => [ 'title' => '', 'description' => 'The IP addresses of DNS servers.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The IP address of the DNS server.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '8.8.x.x', 'extendType' => 'true', ], 'backendName' => 'nameServers', ], 'searches' => [ 'title' => '', 'description' => 'The search domains of the DNS server.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The search domain of the DNS server.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'ns1.svc.cluster-domain.example', 'extendType' => 'true', ], 'backendName' => 'searches', ], 'dnsOptions' => [ 'title' => '', 'description' => 'The configuration items in the resolv.conf file. Each item is a key-value pair in the key:value format, in which the key is required.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The configuration item in the resolv.conf file.'."\n", 'visibility' => 'public', 'extendType' => 'true', '$ref' => '#/components/schemas/DNSOption', ], 'backendName' => 'dnsOptions', ], ], ], 'CustomHealthCheckConfig' => [ 'title' => '', 'description' => 'The custom health check configurations of custom runtimes and Custom Container runtimes.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'httpGetUrl' => [ 'title' => '', 'description' => 'The custom health check URL of the container. The URL length cannot exceed 2,048 characters.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => '/ready', 'backendName' => 'httpGetUrl', ], 'initialDelaySeconds' => [ 'title' => '', 'description' => 'The duration after the container is started before health checks are initiated. Valid values: 0 to 120. Unit: seconds. Default value: 0.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'initialDelaySeconds', ], 'periodSeconds' => [ 'title' => '', 'description' => 'The interval between two consecutive health checks. Valid values: 1 to 120. Unit: seconds. Default value: 3.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'periodSeconds', ], 'timeoutSeconds' => [ 'title' => '', 'description' => 'The timeout period of a health check. Valid values: 1 to 3. Unit: seconds. Default value: 1.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'backendName' => 'timeoutSeconds', ], 'failureThreshold' => [ 'title' => '', 'description' => 'The threshold for health check failures. When this value is reached, the system considers the check failed. Valid values: 1 to 120. Unit: seconds. Default value: 3.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'failureThreshold', ], 'successThreshold' => [ 'title' => '', 'description' => 'The threshold for health check successes. When this value is reached, the system considers the check succeeded. Valid values: 1 to 120. Unit: seconds. Default value: 1.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'backendName' => 'successThreshold', ], ], ], 'CustomRuntimeConfig' => [ 'title' => '', 'description' => 'The configurations of the function that runs in the custom runtime.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'command' => [ 'title' => '', 'description' => 'The custom commands that are used to start containers in the custom runtime. If multiple commands are specified, the commands are concatenated in order.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The command that is used to start the container.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/code/myBootstrap', 'extendType' => 'true', ], 'backendName' => 'command', ], 'args' => [ 'title' => '', 'description' => 'The arguments that are used to start containers in the custom runtime. Pass the arguments in order.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The startup argument of the container.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'args1', 'extendType' => 'true', ], 'backendName' => 'args', ], ], ], 'DeadLetterQueue' => [ 'title' => 'A short description of struct', 'description' => 'The identifier of the dead-letter queue. The following Alibaba Cloud services can be used as dead-letter queues:'."\n" ."\n" .'* Simple Message Queue (formerly MNS)'."\n" .'* ApsaraMQ for RocketMQ'."\n" .'* ApsaraMQ for Kafka'."\n" .'* EventBridge'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'Arn' => [ 'title' => 'Arn', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the dead-letter queue.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'acs:mq:cn-shanghai:14319991365*****:/instances/MQ_INST_14319991365*****_BYWs****/topic/testTopic', 'backendName' => 'Arn', ], ], ], 'DeliveryOption' => [ 'title' => 'A short description of struct', 'description' => 'The event pushing configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'mode' => [ 'title' => 'mode', 'description' => '> This parameter is deprecated.'."\n" ."\n" .'The underlying application mode when message data is pushed to Function Compute:'."\n" ."\n" .'* event-streaming: the event streaming mode. In this mode, events are pushed in arrays. One or more message events are pushed to functions in batches based on push configurations. This mode is suitable for processing end-to-end streaming data.'."\n" .'* event-driven: the event mode. Individual messages are passed as the event parameter to the function. The event follows the CloudEvents standard. Take note that batch configurations are not supported in this mode.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'event-streaming', 'backendName' => 'mode', 'enum' => [ 'event-driven', 'event-streaming', ], ], 'eventSchema' => [ 'title' => 'eventSchema', 'description' => 'Specifies the format of each data element in event.'."\n" ."\n" .'* CloudEvents: a set of specifications that describes event data in a common format, including event descriptions and event payload data. CloudEvents is designed to simplify event declaration and transmission between different services and platforms.'."\n" .'* RawData: delivers only the event payload data and does not include other metadata information in the CloudEvents format.'."\n", 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'RawData' => 'RawData', 'CloudEvents' => 'CloudEvents', ], 'example' => 'RawData', 'backendName' => 'eventSchema', ], 'concurrency' => [ 'title' => 'concurrency', 'description' => '> This parameter takes effect only when ApsaraMQ for Kafka is used as the event source.'."\n" ."\n" .'The maximum concurrency for the upstream event source to deliver events to Function Compute.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'backendName' => 'concurrency', ], ], ], 'Destination' => [ 'title' => 'A short description of struct', 'description' => 'The destination structure for the asynchronous invocation.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'destination' => [ 'title' => 'destination', 'description' => 'The descriptor for the destination resources of the asynchronous invocation.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'acs:fc:cn-shanghai:xxx:services/s1/functions/f1', 'backendName' => 'destination', ], ], ], 'DestinationConfig' => [ 'title' => '', 'description' => 'The destination configurations for an asynchronous invocation.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'onSuccess' => [ 'description' => 'The destination struct of a successful callback.'."\n", 'visibility' => 'public', 'example' => '{ "destination":"acs:fc:cn-shanghai:xxx:services/s1/functions/f1" }', 'backendName' => 'onSuccess', '$ref' => '#/components/schemas/Destination', ], 'onFailure' => [ 'description' => 'The destination struct of a failed callback.'."\n", 'visibility' => 'public', 'example' => '{ "destination":"acs:fc:cn-shanghai:xxx:services/s1/functions/f1" }', 'backendName' => 'onFailure', '$ref' => '#/components/schemas/Destination', ], ], ], 'DNSOption' => [ 'title' => 'A short description of struct', 'description' => 'The DNS resolver configurations that are in the key-value format.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'name' => [ 'title' => '', 'description' => 'The parameter.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'ndots', 'backendName' => 'name', ], 'value' => [ 'title' => '', 'description' => 'The value.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '2', 'backendName' => 'value', ], ], 'example' => 't', ], 'Error' => [ 'title' => '', 'description' => 'The error information.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'errorCode' => [ 'title' => '', 'description' => 'The error code.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'FUNCTION_NOT_FOUND', 'backendName' => 'errorCode', ], 'errorMessage' => [ 'title' => '', 'description' => 'The error message.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'function not found', 'backendName' => 'errorMessage', ], ], ], 'EventBridgeTriggerConfig' => [ 'title' => 'A short description of struct', 'description' => 'The EventBridge trigger configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'triggerEnable' => [ 'title' => 'triggerEnable', 'description' => 'The trigger switch. This switch is equivalent to the [Disable](~~163710~~) switch for the event rule on the EventBridge side. Valid values:'."\n" ."\n" .'* true: enables the trigger.'."\n" .'* false: disables the trigger.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'triggerEnable', ], 'asyncInvocationType' => [ 'title' => 'asyncInvocationType', 'description' => 'Specifies whether to invoke the function in asynchronous mode. Valid values:'."\n" ."\n" .'* true: invokes the function in asynchronous mode.'."\n" .'* false: invokes the function in synchronous mode.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'asyncInvocationType', ], 'eventRuleFilterPattern' => [ 'title' => 'eventRuleFilterPattern', 'description' => 'The event pattern. The pattern is in JSON format. For more information, see [EventBridge event patterns](~~181432~~).'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => '\'{"source":["acs.oss"],"type":["oss:BucketCreated:PutBucket"]}\'', 'backendName' => 'eventRuleFilterPattern', ], 'eventSourceConfig' => [ 'description' => 'The event source configurations.'."\n", 'visibility' => 'public', 'required' => true, 'backendName' => 'eventSourceConfig', '$ref' => '#/components/schemas/EventSourceConfig', ], 'eventSinkConfig' => [ 'description' => 'The event destination configurations.'."\n", 'visibility' => 'public', 'backendName' => 'eventSinkConfig', '$ref' => '#/components/schemas/EventSinkConfig', ], 'runOptions' => [ 'description' => 'The runtime configurations.'."\n", 'visibility' => 'public', 'backendName' => 'runOptions', '$ref' => '#/components/schemas/RunOptions', ], ], ], 'EventSinkConfig' => [ 'title' => 'A short description of struct', 'description' => 'The event destination configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'deliveryOption' => [ 'title' => 'deliveryOption', 'description' => 'The event push configurations.'."\n", 'visibility' => 'public', 'backendName' => 'deliveryOption', '$ref' => '#/components/schemas/DeliveryOption', ], ], ], 'EventSourceConfig' => [ 'title' => 'A short description of struct', 'description' => 'The event source configurations of the EventBridge trigger.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'eventSourceType' => [ 'title' => 'eventSourceType', 'description' => 'The type of the event source. The following types of trigger sources are supported:'."\n" ."\n" .'* Default: Alibaba Cloud service event sources in EventBridge'."\n" .'* MNS: Message Service (MNS)'."\n" .'* RocketMQ: ApsaraMQ for RocketMQ'."\n" .'* RabbitMQ: ApsaraMQ for RabbitMQ'."\n" .'* Kafka: ApsaraMQ for Kafka'."\n" .'* MQTT: ApsaraMQ for MQTT'."\n" .'* DTS: Data Transmission Service (DTS)'."\n" ."\n" .'> This field cannot be updated. This field is ignored if it is passed during an update.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'enumValueTitles' => [ 'RabbitMQ' => 'RabbitMQ', 'MQTT' => 'MQTT', 'DTS' => 'DTS', 'MNS' => 'MNS', 'Kafka' => 'Kafka', 'Default' => 'Default', 'RocketMQ' => 'RocketMQ', ], 'example' => 'Default', 'backendName' => 'eventSourceType', ], 'eventSourceParameters' => [ 'description' => 'The event source parameters. Custom event sources include MNS, ApsaraMQ for RocketMQ, ApsaraMQ for RabbitMQ, ApsaraMQ for Kafka, ApsaraMQ for MQTT, and DTS.'."\n", 'visibility' => 'public', 'backendName' => 'eventSourceParameters', '$ref' => '#/components/schemas/EventSourceParameters', ], ], ], 'EventSourceParameters' => [ 'title' => 'A short description of struct', 'description' => 'The custom event source parameters for the EventBridge trigger.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'sourceMNSParameters' => [ 'description' => 'The custom parameter configurations when the event source is Simple Message Queue (formerly MNS). For more information, see [SourceMNSParameters](~~343386~~).'."\n", 'visibility' => 'public', 'backendName' => 'sourceMNSParameters', '$ref' => '#/components/schemas/SourceMNSParameters', ], 'sourceRocketMQParameters' => [ 'description' => 'The custom parameter configurations when the event source is ApsaraMQ for RocketMQ. For more information, see [SourceRocketMQParameters](~~343386~~).'."\n", 'visibility' => 'public', 'backendName' => 'sourceRocketMQParameters', '$ref' => '#/components/schemas/SourceRocketMQParameters', ], 'sourceRabbitMQParameters' => [ 'description' => 'The custom parameter configurations when the event source is ApsaraMQ for RabbitMQ.'."\n", 'visibility' => 'public', 'backendName' => 'sourceRabbitMQParameters', '$ref' => '#/components/schemas/SourceRabbitMQParameters', ], 'sourceKafkaParameters' => [ 'description' => 'The custom parameter configurations when the event source is ApsaraMQ for Kafka.'."\n", 'visibility' => 'public', 'backendName' => 'sourceKafkaParameters', '$ref' => '#/components/schemas/SourceKafkaParameters', ], 'sourceDTSParameters' => [ 'description' => 'The custom parameter configurations when the event source is Data Transmission Service (DTS).'."\n", 'visibility' => 'public', 'backendName' => 'sourceDTSParameters', '$ref' => '#/components/schemas/SourceDTSParameters', ], 'sourceMQTTParameters' => [ 'description' => 'The custom parameter configurations when the event source is ApsaraMQ for MQTT.'."\n", 'visibility' => 'public', 'backendName' => 'sourceMQTTParameters', '$ref' => '#/components/schemas/SourceMQTTParameters', ], ], ], 'HTTPTriggerConfig' => [ 'title' => '', 'description' => 'The HTTP trigger configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'authType' => [ 'title' => '', 'description' => 'The authentication type. The default value is function, which specifies that authentication is required.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'anonymous, function', 'backendName' => 'authType', 'default' => 'function', 'enum' => [ 'anonymous', 'function', ], ], 'methods' => [ 'title' => '', 'description' => 'The request methods. You can specify multiple methods at the same time.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The request method.'."\n" ."\n" .'Valid values:'."\n" ."\n" .'* HEAD'."\n" .'* DELETE'."\n" .'* POST'."\n" .'* GET'."\n" .'* OPTIONS'."\n" .'* PUT'."\n" .'* PATCH'."\n", 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'HEAD' => 'HEAD', 'DELETE' => 'DELETE', 'POST' => 'POST', 'GET' => 'GET', 'OPTIONS' => 'OPTIONS', 'PUT' => 'PUT', 'PATCH' => 'PATCH', ], 'example' => 'GET, POST', 'extendType' => 'true', 'default' => 'GET', 'enum' => [ 'HEAD', 'GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', ], ], 'backendName' => 'methods', 'itemName' => 'method', ], 'disableURLInternet' => [ 'title' => '', 'description' => 'Specifies whether to disable access to the default Internet domain. If you set this parameter to true, a 403 error is returned if you access the default public URL provided by the function. A value of false does not affect the running of the function.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'enumValueTitles' => [ 'true' => 'true', 'false' => 'false', ], 'backendName' => 'disableURLInternet', 'default' => 'false', ], 'authConfig' => [ 'title' => '', 'description' => 'The authentication configuration.'."\n", 'visibility' => 'public', 'type' => 'string', 'backendName' => 'authConfig', ], ], ], 'InstanceLifecycleConfig' => [ 'title' => 'A short description of struct', 'description' => 'The instance lifecycle configurations of the function.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'preFreeze' => [ 'description' => 'The configuration of the PreFreeze function.'."\n", 'visibility' => 'public', 'backendName' => 'preFreeze', '$ref' => '#/components/schemas/LifecycleHook', ], 'preStop' => [ 'description' => 'The configuration of the PreStop function.'."\n", 'visibility' => 'public', 'backendName' => 'preStop', '$ref' => '#/components/schemas/LifecycleHook', ], ], ], 'JaegerConfig' => [ 'title' => 'A short description of struct', 'description' => 'The configurations of Managed Service for OpenTelemetry.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'endpoint' => [ 'title' => 'endpoint', 'description' => 'The endpoint of Managed Service for OpenTelemetry.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'http://tracing-analysis-dc-hz-internal.aliyuncs.com/adapt_******_******/api/traces', 'backendName' => 'endpoint', ], ], ], 'JobConfig' => [ 'title' => 'A short description of struct', 'description' => 'The job configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'maxRetryTime' => [ 'title' => 'maxRetryTime', 'description' => 'The maximum number of retries. Valid values: 0 to 100. This parameter specifies the maximum number of retries allowed when Simple Log Service triggers a function based on the trigger interval if an error occurs, such as insufficient permissions, network failures, and function execution exceptions. If the trigger fails after the maximum number of retries is reached, Simple Log Service triggers the function again when the next trigger interval arrives.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'backendName' => 'maxRetryTime', ], 'triggerInterval' => [ 'title' => 'triggerInterval', 'description' => 'The time interval at which Simple Log Service triggers function execution. For example, you can retrieve data from the Logstore within the last 120 seconds to Function Compute every 120 seconds to perform custom computing.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '60', 'backendName' => 'triggerInterval', ], ], ], 'JobLogConfig' => [ 'title' => 'A short description of struct', 'description' => 'The log configurations of the trigger.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'project' => [ 'title' => 'project', 'description' => 'The project name. Exceptions that occur during function triggering and execution statistics are recorded in a Logstore of this project.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'my-sls-project-name'."\n", 'backendName' => 'project', ], 'logstore' => [ 'title' => 'logstore', 'description' => 'The Logstore name. Exceptions and function execution statistics during function triggering are recorded in this Logstore.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'my-sls-logstore-name', 'backendName' => 'logstore', ], ], ], 'Layer' => [ 'title' => '', 'description' => 'The layer configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'layerName' => [ 'title' => '', 'description' => 'The layer name.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'MyLayer', 'backendName' => 'layerName', ], 'version' => [ 'title' => '', 'description' => 'The layer version.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'version', ], 'description' => [ 'title' => '', 'description' => 'The description of the layer version.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'the first layer', 'backendName' => 'description', ], 'code' => [ 'title' => '', 'description' => 'The information about the layer code package.'."\n", 'visibility' => 'public', 'backendName' => 'code', '$ref' => '#/components/schemas/LayerCode', ], 'codeSize' => [ 'title' => '', 'description' => 'The size of the layer code package. Unit: Byte.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '421', 'backendName' => 'codeSize', ], 'codeChecksum' => [ 'title' => '', 'description' => 'The crc64 verification code of the layer code package, which is calculated according to the **ECMA-182 standard**.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '2825179536350****', 'backendName' => 'codeChecksum', ], 'createTime' => [ 'title' => '', 'description' => 'The time when the layer version was created.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '2022-01-01T11:08:00Z', 'backendName' => 'createTime', ], 'acl' => [ 'title' => '', 'description' => 'The permissions of the layer. A value of 0 indicates private and a value of 1 indicates public. By default, public layers are public. Custom layers can be set to private or public.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'backendName' => 'acl', ], 'arn' => [ 'title' => 'arn', 'description' => 'The ARN of the layer resource. This field is about to be discarded.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'xxxxxxxx#Layer-name#1', 'backendName' => 'arn', ], 'arnV2' => [ 'title' => 'arnV2', 'description' => 'The name of the layer resource. The name follows the following format: `acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}`.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1', 'backendName' => 'arnV2', ], 'license' => [ 'title' => '', 'description' => 'The license agreement.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'MIT', 'backendName' => 'license', ], 'compatibleRuntime' => [ 'title' => 'compatibleRuntime', 'description' => 'The runtime environments that are supported by the layer.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The runtime. Valid values: **nodejs16**, **nodejs14**, **nodejs12**, **nodejs10**, **nodejs8**, **nodejs6**, **python3.9**, **python3**, **python2.7**, **java11**, **java8**, **php7.2**, **go1**, **dotnetcore3.1**, **dotnetcore2.1**, and **custom**.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'python3', 'extendType' => 'true', ], 'backendName' => 'compatibleRuntime', ], ], ], 'LayerCode' => [ 'title' => '', 'description' => 'The layer code.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'repositoryType' => [ 'title' => '', 'description' => 'The type of the layer code.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'OSS', 'backendName' => 'repositoryType', ], 'location' => [ 'title' => '', 'description' => 'The address of the layer code.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'https://xyz.oss-cnxxx.aliyuncs.com/xxx/xxx/xxx', 'backendName' => 'location', ], ], ], 'LifecycleHook' => [ 'title' => 'A short description of struct', 'description' => 'The lifecycle hook configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'handler' => [ 'title' => 'handler name', 'description' => 'The handler of the function. For more information, see [Function handler](~~157704~~).'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'index.preStop', 'backendName' => 'handler', ], 'timeout' => [ 'title' => 'timeout in second', 'description' => 'The timeout period for function execution. Unit: seconds.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'backendName' => 'timeout', ], ], ], 'LogConfig' => [ 'title' => '', 'description' => 'The log configurations of the function.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'logstore' => [ 'title' => '', 'description' => 'The Logstore name.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'test-prj', 'backendName' => 'logstore', ], 'project' => [ 'title' => '', 'description' => 'The project name.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'test-logstore', 'backendName' => 'project', ], 'enableRequestMetrics' => [ 'title' => '', 'description' => 'Specifies whether to enable request-level metrics. If you enable this feature, you can view the amount of time and memory consumed for a specific invocation of each function in the service. Valid values:'."\n" ."\n" .'* **false**: disables request-level metrics.'."\n" .'* **true** (default): enables request-level metrics.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'enableRequestMetrics', ], 'enableInstanceMetrics' => [ 'title' => '', 'description' => 'Specifies whether to enable instance-level metrics. If you enable this feature, you can view instance-level core metrics, such as CPU utilization, memory usage, instance network conditions, and requests within an instance. Valid values:'."\n" ."\n" .'* **false** (default): disables instance-level metrics.'."\n" .'* **true**: enables instance-level metrics.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'enableInstanceMetrics', ], 'logBeginRule' => [ 'title' => '', 'description' => 'The log segmentation rule. Logs are segmented based on rules. Log segments are written to Simple Log Service.'."\n" ."\n" .'* **None** (default): disables log segmentation.'."\n" .'* **DefaultRegex**: sets the log segmentation rule to the default regex rule. If you set this parameter to DefaultRegex, logs are segmented based on date-containing lines. For example, if a line is 2021-10-10 in a log, the log is segmented based on the line, and the line is used as the first line of a continuous segment of log data until another date-containing line is detected. The segment is written to Simple Log Service as a whole.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'DefaultRegex', 'backendName' => 'logBeginRule', ], ], ], 'LogTriggerConfig' => [ 'title' => 'A short description of struct', 'description' => 'The configurations of the Simple Log Service trigger.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'sourceConfig' => [ 'description' => 'The trigger source configuration.'."\n", 'visibility' => 'public', 'backendName' => 'sourceConfig', '$ref' => '#/components/schemas/SourceConfig', ], 'jobConfig' => [ 'description' => 'The interval at which the trigger reads logs, and the retry configuration upon errors.'."\n", 'visibility' => 'public', 'backendName' => 'jobConfig', '$ref' => '#/components/schemas/JobConfig', ], 'functionParameter' => [ 'title' => 'functionParameter', 'description' => 'The invocation parameter.'."\n", 'visibility' => 'public', 'type' => 'object', 'additionalProperties' => [ 'description' => 'The content of the invocation configuration. Simple Log Service passes the configurations into the function as part of the event. The configuration content must be a JSON string.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '"serverless"', ], 'backendName' => 'functionParameter', ], 'logConfig' => [ 'description' => 'The log configurations of the trigger.'."\n", 'visibility' => 'public', 'example' => '{\'project\': \'my-sls-project\', \'logstore\': \'my-sls-logstore\'}', 'backendName' => 'logConfig', '$ref' => '#/components/schemas/JobLogConfig', ], 'enable' => [ 'title' => 'enable', 'description' => 'Specifies whether to enable the trigger.'."\n" ."\n" .'* **true**: enables the trigger.'."\n" .'* **false**: does not enable the trigger. In this case, the log configurations do not take effect.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'enable', ], ], ], 'MnsTopicTriggerConfig' => [ 'title' => 'A short description of struct', 'description' => 'The configurations of the Message Service (MNS) topic trigger.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'filterTag' => [ 'title' => 'filterTag', 'description' => 'The filtering tag. Function execution is triggered only when a message that contains the specified filter tag is received.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '“serverless”', 'backendName' => 'filterTag', ], 'notifyContentFormat' => [ 'title' => 'notifyContentFormat', 'description' => 'The content format of the trigger event. The following two content formats are supported:'."\n" ."\n" .'* **JSON**'."\n" .'* **STREAM**'."\n", 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'STREAM' => 'STREAM', 'JSON' => 'JSON', ], 'example' => 'JSON', 'backendName' => 'notifyContentFormat', ], 'notifyStrategy' => [ 'title' => 'notifyStrategy', 'description' => 'The retry policy. The following two retry policies are supported:'."\n" ."\n" .'* **BACKOFF_RETRY**: a backoff retry. It retries three times. The interval between consecutive retries is a random value between 10 seconds and 20 seconds.'."\n" .'* **EXPONENTIAL_DECAY_RETRY**: an exponential decay retry policy. A total of 176 retries are performed, with the interval between consecutive retries increasing exponentially to 512 seconds. The total retry period is 1 day. The specific intervals are 1, 2, 4, 8, 16, 32, 64, 128, 256, and 512 seconds. The interval of 512 seconds are used for 167 times.'."\n" ."\n" .'Valid values:'."\n" ."\n" .'* EXPONENTIAL_DECAY_RETRY'."\n" .'* BACKOFF_RETRY', 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'EXPONENTIAL_DECAY_RETRY' => 'EXPONENTIAL_DECAY_RETRY', 'BACKOFF_RETRY' => 'BACKOFF_RETRY', ], 'example' => 'BACKOFF_RETRY', 'backendName' => 'notifyStrategy', ], ], ], 'NASConfig' => [ 'title' => '', 'description' => 'The File Storage NAS (NAS) configurations.', 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'groupId' => [ 'title' => 'groupID', 'description' => 'The group ID.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'backendName' => 'groupId', ], 'mountPoints' => [ 'title' => '', 'description' => 'The mount targets.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The mount target.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'mountDir' => [ 'title' => '', 'description' => 'The local mount directory.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/home/test', 'backendName' => 'mountDir', ], 'serverAddr' => [ 'title' => '', 'description' => 'The NAS server address.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '***-uni85.cn-hangzhou.nas.aliyuncs.com:/', 'backendName' => 'serverAddr', ], 'enableTLS' => [ 'title' => '', 'description' => 'Specifies whether to use the Transport Layer Security (TLS) protocol to secure data transmission. Take note that only general-purpose NAS file systems support transmission encryption.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'false', 'backendName' => 'enableTLS', ], ], 'extendType' => 'true', ], 'backendName' => 'mountPoints', ], 'userId' => [ 'title' => 'userID', 'description' => 'The account ID.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'backendName' => 'userId', ], ], ], 'OnDemandConfig' => [ 'title' => '', 'description' => 'The on-demand resource configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'resource' => [ 'title' => '', 'description' => 'The resource description.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '123#serviceName#alias#functionName', 'backendName' => 'resource', ], 'maximumInstanceCount' => [ 'title' => 'todo', 'description' => 'The maximum number of on-demand instances. The minimum value is 0, which specifies not to configure on-demand instances. The maximum value cannot exceed the account-level concurrency limit, which is 300 by default.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'backendName' => 'maximumInstanceCount', ], ], ], 'OpenReservedCapacity' => [ 'title' => 'A short description of struct', 'description' => 'The information about the subscription instance.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'instanceId' => [ 'title' => 'instanceId', 'description' => 'The instance ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'fc-xxxx', 'backendName' => 'instanceId', ], 'cu' => [ 'title' => 'cu', 'description' => 'The number of subscription CUs that are purchased.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '15', 'backendName' => 'cu', ], 'deadline' => [ 'title' => 'deadline', 'description' => 'The timeout period of function execution. The value is in the UNIX timestamp format. Unit: milliseconds.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '150000000', 'backendName' => 'deadline', ], 'createdTime' => [ 'title' => 'createdTime', 'description' => 'The time when the instance was created.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '2020-04-03T05:57:28Z', 'backendName' => 'createdTime', ], 'lastModifiedTime' => [ 'title' => 'lastModifiedTime', 'description' => 'The time when the instance was last updated.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '2020-04-03T05:57:28Z', 'backendName' => 'lastModifiedTime', ], 'isRefunded' => [ 'title' => 'isRefunded', 'description' => 'Indicates whether a refund has been made.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'true', 'backendName' => 'isRefunded', ], ], ], 'OSSMountConfig' => [ 'title' => '', 'description' => 'The Object Storage Service (OSS) mounting configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'mountPoints' => [ 'title' => '', 'description' => 'The configurations of the OSS mount points.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The configurations of the OSS mount point.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'bucketName' => [ 'title' => '', 'description' => 'The OSS bucket that you want to mount.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'my-bucket', 'backendName' => 'bucketName', ], 'mountDir' => [ 'title' => '', 'description' => 'The mount directory.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/mnt/dir', 'backendName' => 'mountDir', ], 'readOnly' => [ 'title' => '', 'description' => 'Specifies whether the mounted directory is read-only after the OSS bucket is mounted. Valid values:'."\n" ."\n" .'* true: read-only'."\n" .'* false: read and write'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'readOnly', ], 'endpoint' => [ 'title' => '', 'description' => 'The OSS endpoint.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'http://oss-cn-shanghai.aliyuncs.com', 'backendName' => 'endpoint', ], 'bucketPath' => [ 'title' => '', 'description' => 'The path of the mounted OSS bucket.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/my-dir', 'backendName' => 'bucketPath', ], ], 'extendType' => 'true', ], 'backendName' => 'mountPoints', ], ], 'required' => false, ], 'OSSTriggerConfig' => [ 'title' => 'A short description of struct', 'description' => 'The Object Storage Service (OSS) trigger configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'events' => [ 'title' => 'events', 'description' => 'The events. Specify OSS-related events.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The name of the event type. The name of the event type can contain wildcard characters. For more information about event types, see [OSS events](~~62922~~).'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '"oss:ObjectCreated:*"', 'extendType' => 'true', ], 'backendName' => 'events', ], 'filter' => [ 'description' => 'The event filtering rule.'."\n", 'visibility' => 'public', 'backendName' => 'filter', '$ref' => '#/components/schemas/OSSTriggerFilter', 'example' => '', ], ], ], 'OSSTriggerFilter' => [ 'title' => 'A short description of struct', 'description' => 'The event filtering rule.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'key' => [ 'description' => 'The description of the event filtering rule.'."\n", 'visibility' => 'public', 'example' => 'Refer to the format and content of the key section in the following configuration: {"events": \\["oss:ObjectCreated:\\*"], "filter": {"key": {"prefix": "/prefix", "suffix": ".zip"}}}'."\n", 'backendName' => 'key', '$ref' => '#/components/schemas/OSSTriggerKey', ], ], ], 'OSSTriggerKey' => [ 'title' => 'A short description of struct', 'description' => 'The description of the event filtering rule.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'prefix' => [ 'title' => 'prefix', 'description' => 'The prefix that is used to filter the event-related resources. Only events related to the resources whose names are prefixed with the specified value of Prefix are traced. For example, if you set Prefix to serverless\\_, only events related to the resources that are prefixed with serverless\\_ can trigger the function.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '"serverless_"', 'backendName' => 'prefix', ], 'suffix' => [ 'title' => 'suffix', 'description' => 'The suffix that is used to filter the event-related resources. Only events related to the resources whose names are suffixed with the specified value of Suffix are traced. For example, if you set Suffix to .zip, only events related to the resources that are suffixed with .zip can trigger the function.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '".zip"', 'backendName' => 'suffix', ], ], ], 'OutputCodeLocation' => [ 'title' => 'A short description of struct', 'description' => 'The address of the layer code.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'repositoryType' => [ 'title' => 'repositoryType', 'description' => 'The type of the layer code.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'oss', 'backendName' => 'repositoryType', ], 'location' => [ 'title' => 'location', 'description' => 'The address of the layer code.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'https://xyz.oss-cnxxx.aliyuncs.com/xxx/xxx/xxx', 'backendName' => 'location', ], ], ], 'PathConfig' => [ 'title' => '', 'description' => 'The single routing rule for a custom domain name.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'functionName' => [ 'title' => '', 'description' => 'The name of the function that corresponds to the routing rule.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'f1', 'backendName' => 'functionName', ], 'methods' => [ 'title' => '', 'description' => 'The request methods supported by the routing rule.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The request method.'."\n" ."\n" .'Valid values:'."\n" ."\n" .'* HEAD'."\n" .'* DELETE'."\n" .'* POST'."\n" .'* GET'."\n" .'* OPTIONS'."\n" .'* PUT'."\n" .'* PATCH'."\n", 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'HEAD' => 'HEAD', 'DELETE' => 'DELETE', 'POST' => 'POST', 'GET' => 'GET', 'OPTIONS' => 'OPTIONS', 'PUT' => 'PUT', 'PATCH' => 'PATCH', ], 'example' => 'GET', 'extendType' => 'true', 'enum' => [ 'HEAD', 'GET', 'POST', 'PUT', 'DELETE', 'PATCH', ], ], 'backendName' => 'methods', ], 'path' => [ 'title' => '', 'description' => 'The request path that corresponds to the routing rule.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/login', 'backendName' => 'path', ], 'qualifier' => [ 'title' => '', 'description' => 'The version of the service to which the function that corresponds to the routing rule belongs. For more information, see [Overview](~~96351~~).'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'prod', 'backendName' => 'qualifier', ], 'serviceName' => [ 'title' => '', 'description' => 'The name of the service to which the function that corresponds to the routing rule belongs.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 's1', 'backendName' => 'serviceName', ], 'rewriteConfig' => [ 'title' => '', 'description' => 'The URI rewrite configuration.'."\n", 'visibility' => 'public', 'backendName' => 'rewriteConfig', '$ref' => '#/components/schemas/RewriteConfig', ], ], ], 'PolicyItem' => [ 'title' => '', 'description' => 'The policy details.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'type' => [ 'title' => '', 'description' => 'The parameter types. You can use values in HTTP requests.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'Header', 'backendName' => 'type', 'enum' => [ 'Header', 'Cookie', 'Param', ], ], 'key' => [ 'title' => '', 'description' => 'key specifies the name of the field that controls traffic of a canary release policy. For example, if you set key to `x-test-uid`, the value of the `x-test-uid` field in a request determines whether the request is routed to the canary release version.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'x-test-uid', 'backendName' => 'key', ], 'value' => [ 'title' => '', 'description' => 'value specifies the value of the field that controls traffic of canary releases. The actual value of the field specified by the key parameter in a request is compared with the value of the value parameter based on the specified operator to determine whether a request is routed to the canary release version.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => '11111', 'backendName' => 'value', ], 'operator' => [ 'title' => '', 'description' => 'operator specifies the operator, which is used to compare the actual value of the field specified by key and the value specified by value in a request. Valid values:'."\n" ."\n" .'* **>**, **<**, **>=**, **<=**, **=**, and **!=**: follows the lexicographic order of comparison.'."\n" .'* **in**: string inclusion relationship.'."\n" .'* **percentage**: the percentage value. Valid values: (0,100]. The value must be an integer. The system routes traffic of specified proportion based on actual values of key in requests. The field is specified by the key parameter, and the percentage is specified by the value parameter. For example, `{ type=Header, key=uid, value=20, operator=percent }` indicates that 20% of the requests are routed to the canary release version based on the distribution of values of the uid field in the request header.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => '=', 'backendName' => 'operator', 'enum' => [ '>', '<', '>=', '<=', '=', '!=', 'in', 'percent', ], ], ], 'required' => false, ], 'PreFreeze' => [ 'title' => 'A short description of struct', 'description' => 'The definition of the PreFreeze hook.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'handler' => [ 'title' => 'preFreeze handler name', 'description' => 'The handler of the PreFreeze hook.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'index.preFreeze', 'backendName' => 'handler', ], 'timeout' => [ 'title' => 'handler timeout', 'description' => 'The timeout period of the PreFreeze hook.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'backendName' => 'timeout', ], ], ], 'PreStop' => [ 'title' => 'A short description of struct', 'description' => 'The definition of the PreStop function.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'handler' => [ 'title' => 'PreStop handler', 'description' => 'The handler of the PreStop function.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'index.PreStop', 'backendName' => 'handler', ], 'timeout' => [ 'title' => 'PreStop hander timeout', 'description' => 'The timeout period of the PreStop function.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'backendName' => 'timeout', ], ], ], 'Resource' => [ 'title' => 'A short description of struct', 'description' => 'Resource'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'resourceArn' => [ 'title' => 'resourceArn', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n" ."\n" .'> You can use the value of this parameter to query information about the resource, such as the account, service, and region to which the resource belongs. You can manage tags only for services for top level resources.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'acs:fc:cn-shanghai:188077086902****:services/demo', 'backendName' => 'resourceArn', ], 'tags' => [ 'title' => 'tags', 'description' => 'The tag dictionary. Value description:'."\n" ."\n" .'* **key**: the tag key'."\n" .'* **value**: the tag value'."\n", 'visibility' => 'public', 'type' => 'object', 'additionalProperties' => [ 'description' => 'The tag value.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '{"k1":"v1" , "k2":"v2"}', ], 'backendName' => 'tags', ], ], ], 'RetryStrategy' => [ 'title' => 'A short description of struct', 'description' => 'The retry policy that is used when an event fails to be pushed.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'PushRetryStrategy' => [ 'title' => 'PushRetryStrategy', 'description' => 'The retry policy. Valid values:'."\n" ."\n" .'* BACKOFF_RETRY'."\n" .'* EXPONENTIAL_DECAY_RETRY'."\n", 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'EXPONENTIAL_DECAY_RETRY' => 'EXPONENTIAL_DECAY_RETRY', 'BACKOFF_RETRY' => 'BACKOFF_RETRY', ], 'example' => 'BACKOFF_RETRY', 'backendName' => 'PushRetryStrategy', ], 'MaximumEventAgeInSeconds' => [ 'title' => 'MaximumEventAgeInSeconds', 'description' => 'The maximum period during which retries can be performed. Unit: seconds.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '512', 'backendName' => 'MaximumEventAgeInSeconds', ], 'MaximumRetryAttempts' => [ 'title' => 'MaximumRetryAttempts', 'description' => 'The maximum number of retries.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'backendName' => 'MaximumRetryAttempts', ], ], ], 'RewriteConfig' => [ 'title' => '', 'description' => 'The URI rewrite configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'equalRules' => [ 'title' => '', 'description' => 'The exact match rules.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'match' => [ 'title' => '', 'description' => 'The matching rule.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/old', 'backendName' => 'match', ], 'replacement' => [ 'title' => '', 'description' => 'The replacement rule.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/new', 'backendName' => 'replacement', ], ], 'extendType' => 'true', 'description' => '', ], 'backendName' => 'equalRules', ], 'wildcardRules' => [ 'title' => '', 'description' => 'The wildcard match rules.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'match' => [ 'title' => '', 'description' => 'The matching rule.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/api/*', 'backendName' => 'match', ], 'replacement' => [ 'title' => '', 'description' => 'The replacement rule.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/$1', 'backendName' => 'replacement', ], ], 'extendType' => 'true', 'description' => '', ], 'backendName' => 'wildcardRules', ], 'regexRules' => [ 'title' => '', 'description' => 'The regex match rules.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'match' => [ 'title' => '', 'description' => 'The matching rule.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '^/js/(.*?)$', 'backendName' => 'match', ], 'replacement' => [ 'title' => '', 'description' => 'The replacement rule.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '/public/javascripts/$1', 'backendName' => 'replacement', ], ], 'extendType' => 'true', 'description' => '', ], 'backendName' => 'regexRules', ], ], ], 'RouteConfig' => [ 'title' => 'A short description of struct', 'description' => 'The route configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'routes' => [ 'title' => 'routes', 'description' => 'The routes, which specify the mappings between PATH and Function during access to a custom domain name.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The mapping between PATH and Function during access to a custom domain name.'."\n", 'visibility' => 'public', 'extendType' => 'true', '$ref' => '#/components/schemas/PathConfig', ], 'backendName' => 'routes', 'itemName' => 'route', ], ], ], 'RoutePolicy' => [ 'title' => '', 'description' => 'The canary release rule. The traffic that meets the conditions of the canary release rule is diverted to the canary release instances.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'condition' => [ 'title' => '', 'description' => 'The condition mode, which specifies the logical operation of the canary release rule. Valid values:'."\n" ."\n" .'* **AND**: The canary release rule is triggered when the conditions of all items are met.'."\n" .'* **OR**: The canary release rule is triggered when the condition of any item is met.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'AND', 'backendName' => 'condition', ], 'policyItems' => [ 'title' => '', 'description' => 'The canary release rule items.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The canary release rule item.'."\n", 'visibility' => 'public', 'required' => true, 'extendType' => 'true', '$ref' => '#/components/schemas/PolicyItem', ], 'required' => true, 'backendName' => 'policyItems', ], ], 'parseType' => 'struct', ], 'RunOptions' => [ 'title' => 'A short description of struct', 'description' => 'The parameters that are configured for the runtime environment.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'batchWindow' => [ 'title' => 'batchWindow', 'description' => 'The batch window configurations.'."\n", 'visibility' => 'public', 'backendName' => 'batchWindow', '$ref' => '#/components/schemas/BatchWindow', ], 'retryStrategy' => [ 'title' => 'retryStrategy', 'description' => 'The information about the retry policy that is used if events fail to be pushed.'."\n", 'visibility' => 'public', 'backendName' => 'retryStrategy', '$ref' => '#/components/schemas/RetryStrategy', ], 'deadLetterQueue' => [ 'title' => 'deadLetterQueue', 'description' => 'Specifies whether to enable dead-letter queues. By default, dead-letter queues are disabled. Messages that fail to be pushed are discarded after the maximum number of retries specified by the retry policy is reached.'."\n", 'visibility' => 'public', 'backendName' => 'deadLetterQueue', '$ref' => '#/components/schemas/DeadLetterQueue', ], 'maximumTasks' => [ 'title' => 'maximumTasks', 'description' => 'The concurrency quota. This quota indicates the number of consumers.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'backendName' => 'maximumTasks', ], 'errorsTolerance' => [ 'title' => 'errorsTolerance', 'description' => 'The exception tolerance policy. Valid values:'."\n" ."\n" .'* NONE: does not tolerate exceptions.'."\n" .'* ALL: tolerates all exceptions.'."\n", 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'ALL' => 'ALL', 'NONE' => 'NONE', ], 'example' => 'ALL', 'backendName' => 'errorsTolerance', ], 'mode' => [ 'title' => 'mode', 'description' => 'The underlying application mode when message data is pushed to Function Compute. Valid values:'."\n" ."\n" .'* event-streaming: the event streaming mode. In this mode, events are pushed in arrays. One or more message events are pushed to functions in batches based on push configurations. This mode is suitable for processing end-to-end streaming data.'."\n" .'* event-driven: the event mode. Individual messages are passed as the event parameter to the function. The event follows the CloudEvents standard. Note: Batch configurations are not supported in this mode.'."\n", 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'event-streaming' => 'event-streaming', 'event-driven' => 'event-driven', ], 'example' => 'event-streaming', 'backendName' => 'mode', ], ], ], 'ScheduledActions' => [ 'title' => 'A short description of struct', 'description' => 'The scheduled scaling configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'name' => [ 'title' => 'name', 'description' => 'The name of the scaling policy.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'name', 'backendName' => 'name', ], 'startTime' => [ 'title' => 'startTime', 'description' => 'The time when the policy takes effect.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '2020-10-10T10:10:10Z', 'backendName' => 'startTime', ], 'endTime' => [ 'title' => 'endTime', 'description' => 'The time when the policy expires.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '2021-10-10T10:10:10Z', 'backendName' => 'endTime', ], 'target' => [ 'title' => 'target', 'description' => 'The number of provisioned instances.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '50', 'backendName' => 'target', ], 'scheduleExpression' => [ 'title' => 'scheduleExpression', 'description' => 'The schedule expression.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'cron(0/30 * * * *)', 'backendName' => 'scheduleExpression', ], ], ], 'SourceConfig' => [ 'title' => 'A short description of struct', 'description' => 'The trigger source configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'logstore' => [ 'title' => 'logstore', 'description' => 'The Logstore name. The trigger periodically subscribes to data from this Logstore to trigger the function.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'my-sls-logstore-name'."\n", 'backendName' => 'logstore', ], ], ], 'SourceDTSParameters' => [ 'title' => 'A short description of struct', 'description' => 'The custom parameter configurations when the event source is Data Transmission Service (DTS).'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'RegionId' => [ 'title' => 'RegionId', 'description' => 'The region ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'cn-shanghai', 'backendName' => 'RegionId', ], 'BrokerUrl' => [ 'title' => 'BrokerUrl', 'description' => 'The network address and port number of the data subscription channel.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'dts-cn-shanghai-vpc.aliyuncs.com:18003', 'backendName' => 'BrokerUrl', ], 'Topic' => [ 'title' => 'Topic', 'description' => 'The subscribed topic of the data subscription channel.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'cn_shanghai_vpc_rm_uf6398ykj0218****_dts_trigger_upgrade_from_old_version2', 'backendName' => 'Topic', ], 'Sid' => [ 'title' => 'Sid', 'description' => 'The ID of the consumer group.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'dtse34j22j025a****', 'backendName' => 'Sid', ], 'Username' => [ 'title' => 'Username', 'description' => 'The account of the consumer group.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'dts_trigger', 'backendName' => 'Username', ], 'Password' => [ 'title' => 'Password', 'description' => 'The password of the consumer group.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'dtsTest123', 'backendName' => 'Password', ], 'InitCheckPoint' => [ 'title' => 'InitCheckPoint', 'description' => 'The UNIX timestamp that is generated when the SDK client consumes the first data record.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1677340805', 'backendName' => 'InitCheckPoint', ], 'TaskId' => [ 'title' => 'TaskId', 'description' => 'The task ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'e34z2gm325q****', 'backendName' => 'TaskId', ], ], ], 'SourceKafkaParameters' => [ 'title' => 'A short description of struct', 'description' => 'The custom parameter configurations when the event source is ApsaraMQ for Kafka.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'RegionId' => [ 'title' => 'RegionId', 'description' => 'The region ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'cn-hangzhou', 'backendName' => 'RegionId', ], 'InstanceId' => [ 'title' => 'InstanceId', 'description' => 'The instance ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'r-8vb64581862c****'."\n", 'backendName' => 'InstanceId', ], 'Topic' => [ 'title' => 'Topic', 'description' => 'The topic name.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'popvip_center_robot_order', 'backendName' => 'Topic', ], 'ConsumerGroup' => [ 'title' => 'ConsumerGroup', 'description' => 'The group ID of the consumer that subscribes to the topic.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'DEFAULT_GROUP', 'backendName' => 'ConsumerGroup', ], 'OffsetReset' => [ 'title' => 'OffsetReset', 'description' => 'The offset. Valid values:'."\n" ."\n" .'* earliest: consumes messages from the earliest offset.'."\n" .'* latest: consumes messages from the latest offset.'."\n", 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'earliest' => 'earliest', 'latest' => 'latest', ], 'example' => 'latest', 'backendName' => 'OffsetReset', ], 'Network' => [ 'title' => 'Network', 'description' => 'The network type. Default value: Default. The value PublicNetwork specifies a virtual private cloud (VPC) network.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Default', 'backendName' => 'Network', ], 'VpcId' => [ 'title' => 'VpcId', 'description' => 'The VPC ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'vpc-8vblalsi0vbhizr77****'."\n", 'backendName' => 'VpcId', ], 'VSwitchIds' => [ 'title' => 'VSwitchIds', 'description' => 'The vSwitch ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'vsw-bp179l3llg3jjxwrq72****'."\n", 'backendName' => 'VSwitchIds', ], 'SecurityGroupId' => [ 'title' => 'SecurityGroupId', 'description' => 'The security group ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'sg-bp1iv19sp1msc7zot4****'."\n", 'backendName' => 'SecurityGroupId', ], ], ], 'SourceMNSParameters' => [ 'title' => 'A short description of struct', 'description' => 'The custom parameter configurations when the event source is Simple Message Queue (formerly MNS).'."\n", 'visibility' => 'The region to which the MNS queue belongs.'."\n", 'type' => 'object', 'properties' => [ 'RegionId' => [ 'title' => 'RegionId', 'description' => 'The region to which the Simple Message Queue (formerly MNS) queue belongs.'."\n", 'visibility' => 'The name of the queue in MNS.'."\n", 'type' => 'string', 'example' => 'cn-hangzhou', 'backendName' => 'RegionId', ], 'QueueName' => [ 'title' => 'QueueName', 'description' => 'The name of the Simple Message Queue (formerly MNS) queue.'."\n", 'visibility' => 'Specifies whether to enable Base64 encoding. Default value: true.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo', 'backendName' => 'QueueName', ], 'IsBase64Decode' => [ 'title' => 'IsBase64Decode', 'description' => 'Specify whether to enable Base64 encoding. Default value: true.'."\n", 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'backendName' => 'IsBase64Decode', ], ], ], 'SourceMQTTParameters' => [ 'title' => 'A short description of struct', 'description' => 'The custom parameter configurations when the event source is ApsaraMQ for MQTT.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'RegionId' => [ 'title' => 'RegionId', 'description' => 'The region ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'cn-shanghai', 'backendName' => 'RegionId', ], 'InstanceId' => [ 'title' => 'InstanceId', 'description' => 'The instance ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'mqtt-****', 'backendName' => 'InstanceId', ], 'Topic' => [ 'title' => 'Topic', 'description' => 'The topic from which messages are sent.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'testTopic', 'backendName' => 'Topic', ], ], ], 'SourceRabbitMQParameters' => [ 'title' => 'A short description of struct', 'description' => 'The custom parameter configurations when the event source is ApsaraMQ for RabbitMQ.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'RegionId' => [ 'title' => 'RegionId', 'description' => 'The region in which the ApsaraMQ for RabbitMQ instance resides.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'cn-hangzhou', 'backendName' => 'RegionId', ], 'InstanceId' => [ 'title' => 'InstanceId', 'description' => 'The ID of the ApsaraMQ for RabbitMQ instance. For more information, see [Limits](~~101627~~).'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'amqp-cn-nif22u74****', 'backendName' => 'InstanceId', ], 'VirtualHostName' => [ 'title' => 'VirtualHostName', 'description' => 'The vhost name of the ApsaraMQ for RabbitMQ instance. For more information, see [Limits](~~101627~~).'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'eb-connect', 'backendName' => 'VirtualHostName', ], 'QueueName' => [ 'title' => 'QueueName', 'description' => 'The name of the queue on the ApsaraMQ for RabbitMQ instance. For more information, see [Limits](~~101627~~).'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'demo', 'backendName' => 'QueueName', ], ], ], 'SourceRocketMQParameters' => [ 'title' => 'A short description of struct', 'description' => 'The custom parameter configurations when the event source is ApsaraMQ for RocketMQ.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'RegionId' => [ 'title' => 'RegionId', 'description' => 'The region to which the ApsaraMQ for RocketMQ instance belongs.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'cn-hangzhou', 'backendName' => 'RegionId', ], 'InstanceId' => [ 'title' => 'InstanceId', 'description' => 'The ID of the ApsaraMQ for RocketMQ instance. For more information, see [Limits](~~85006~~).'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'MQ_INST_164901546557****_BAAN****', 'backendName' => 'InstanceId', ], 'Topic' => [ 'title' => 'Topic', 'description' => 'The name of the topic in the ApsaraMQ for RocketMQ instance. For more information, see [Limits](~~85006~~).'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'mytopic', 'backendName' => 'Topic', ], 'Tag' => [ 'title' => 'Tag', 'description' => 'The tags that are used to filter messages.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'test', 'backendName' => 'Tag', ], 'Offset' => [ 'title' => 'Offset', 'description' => 'The consumer offset of messages. Valid values:'."\n" ."\n" .'* CONSUME_FROM_LAST_OFFSET: Messages are consumed from the latest offset.'."\n" .'* CONSUME_FROM_FIRST_OFFSET: Messages are consumed from the earliest offset.'."\n" .'* CONSUME_FROM_TIMESTAMP: Messages are consumed from the offset at the specified point in time.'."\n" ."\n" .'Default value: CONSUME_FROM_LAST_OFFSET.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'CONSUME_FROM_TIMESTAMP', 'backendName' => 'Offset', ], 'Timestamp' => [ 'title' => 'Timestamp', 'description' => 'The timestamp of the offset from which the consumption starts. This parameter is valid only when you set Offset to CONSUME_FROM_TIMESTAMP.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1636597951964', 'backendName' => 'Timestamp', ], 'GroupID' => [ 'title' => 'GroupID', 'description' => 'The ID of the consumer group on the ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'GID_group1', 'backendName' => 'GroupID', ], 'InstanceType' => [ 'title' => 'InstanceType', 'description' => 'The instance type of the ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Cloud_5', 'backendName' => 'InstanceType', ], 'InstanceEndpoint' => [ 'title' => 'InstanceEndpoint', 'description' => 'The information about the endpoint of the ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com', 'backendName' => 'InstanceEndpoint', ], 'InstanceUsername' => [ 'title' => 'InstanceUsername', 'description' => 'The username of the ApsaraMQ for RocketMQ instance. If you use the Internet, you must configure the username and password of the instance in the SDK code for authentication.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '6W0xz2uPfiwp****', 'backendName' => 'InstanceUsername', ], 'InstancePassword' => [ 'title' => 'InstancePassword', 'description' => 'The password of the ApsaraMQ for RocketMQ instance.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '****', 'backendName' => 'InstancePassword', ], 'FilterType' => [ 'title' => 'FilterType', 'description' => 'The message filter type.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Tag', 'backendName' => 'FilterType', ], 'FilterSql' => [ 'title' => 'FilterSql', 'description' => 'This parameter is invalid. You do not need to configure the parameter.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '', 'backendName' => 'FilterSql', ], 'AuthType' => [ 'title' => 'AuthType', 'description' => 'The authentication type. Set the value to ACL or leave the value empty. The value ACL specifies that authentication is enabled. In this case, you must specify InstanceUsername and InstancePassword.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'ACL', 'backendName' => 'AuthType', ], 'InstanceVpcId' => [ 'title' => 'InstanceVpcId', 'description' => 'The ID of the virtual private cloud (VPC) associated with the instance.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'vpc-uf6of9452b2pba82c****', 'backendName' => 'InstanceVpcId', ], 'InstanceVSwitchIds' => [ 'title' => 'InstanceVSwitchIds', 'description' => 'The ID of the vSwitch associated with the instance.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'vsw-uf6gwtbn6etadpvz7****', 'backendName' => 'InstanceVSwitchIds', ], 'InstanceSecurityGroupId' => [ 'title' => 'InstanceSecurityGroupId', 'description' => 'The ID of the security group.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'sg-hp35r2hc3a3sv8q2****', 'backendName' => 'InstanceSecurityGroupId', ], 'InstanceNetwork' => [ 'title' => 'InstanceNetwork', 'description' => 'The network type.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'PrivateNetwork', 'backendName' => 'InstanceNetwork', ], ], ], 'StatefulAsyncInvocation' => [ 'title' => '', 'description' => 'The struct of the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'functionName' => [ 'title' => '', 'description' => 'The name of the function to which the asynchronous task belongs.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'functionName', 'backendName' => 'functionName', ], 'serviceName' => [ 'title' => '', 'description' => 'The name of the service that contains the function to which the asynchronous task belongs.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'serviceName', 'backendName' => 'serviceName', ], 'qualifier' => [ 'title' => '', 'description' => 'The version or alias of the service that contains the function to which the asynchronous task belongs.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'LATEST', 'backendName' => 'qualifier', ], 'invocationId' => [ 'title' => '', 'description' => 'The ID of the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'demo-id', 'backendName' => 'invocationId', ], 'status' => [ 'title' => '', 'description' => 'The state of the asynchronous task.'."\n" ."\n" .'* **Enqueued**: The asynchronous task is enqueued and is waiting to be executed.'."\n" .'* **Succeeded**: The invocation succeeded.'."\n" .'* **Failed**: The invocation failed.'."\n" .'* **Running**: The invocation is being executed.'."\n" .'* **Stopped**: The invocation was terminated.'."\n" .'* **Stopping**: The invocation is being terminated.'."\n" .'* **Invalid**: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.'."\n" .'* **Expired**: The maximum validity period of messages is specified for the asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of messages elapsed.'."\n" .'* **Retrying**: The asynchronous task is being retried due to an execution error.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Running', 'backendName' => 'status', ], 'startedTime' => [ 'title' => '', 'description' => 'The start time of the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1633449590000', 'backendName' => 'startedTime', ], 'endTime' => [ 'title' => '', 'description' => 'The end time of the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1633449599000', 'backendName' => 'endTime', ], 'destinationStatus' => [ 'title' => '', 'description' => 'The state of the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Succeeded', 'backendName' => 'destinationStatus', ], 'invocationErrorMessage' => [ 'title' => '', 'description' => 'The error message for the failed asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'UnhandledInvocationError', 'backendName' => 'invocationErrorMessage', ], 'invocationPayload' => [ 'title' => '', 'description' => 'The event triggered by the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '"body"', 'backendName' => 'invocationPayload', ], 'alreadyRetriedTimes' => [ 'title' => '', 'description' => 'The number of retries if the asynchronous task fails.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'backendName' => 'alreadyRetriedTimes', ], 'requestId' => [ 'title' => '', 'description' => 'The request ID of the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'ABA740D4-********-882707EADC37', 'backendName' => 'requestId', ], 'instanceId' => [ 'title' => '', 'description' => 'The ID of the instance that is used to run the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'D4-*******9FD1-882707E', 'backendName' => 'instanceId', ], 'events' => [ 'title' => '', 'description' => 'The list of events that trigger the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The event that triggers the asynchronous task.'."\n", 'visibility' => 'public', 'extendType' => 'true', '$ref' => '#/components/schemas/StatefulAsyncInvocationEvent', ], 'required' => false, 'backendName' => 'events', ], 'durationMs' => [ 'title' => '', 'description' => 'The execution duration of the asynchronous task.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'backendName' => 'durationMs', ], 'returnPayload' => [ 'title' => '', 'description' => 'The result returned by the asynchronous task. The size limit is 1 MB.\\'."\n" .'This field is in public beta. If you want to use this field, [contact us](~~53087~~).'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'my-result', 'backendName' => 'returnPayload', ], ], ], 'StatefulAsyncInvocationEvent' => [ 'title' => '', 'description' => 'The event of the asynchronous task.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'eventId' => [ 'title' => '', 'description' => 'The ID of the event.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'backendName' => 'eventId', ], 'status' => [ 'title' => '', 'description' => 'The status of the event.'."\n" ."\n" .'* **Enqueued**: The asynchronous task is enqueued and is waiting to be executed.'."\n" .'* **Succeeded**: The invocation succeeded.'."\n" .'* **Failed**: The invocation failed.'."\n" .'* **Running**: The invocation is being executed.'."\n" .'* **Stopped**: The invocation was terminated.'."\n" .'* **Stopping**: The invocation is being terminated.'."\n" .'* **Invalid**: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.'."\n" .'* **Expired**: The maximum validity period of messages is specified for the asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of messages elapsed.'."\n" .'* **Retrying**: The asynchronous task is being retried due to an execution error.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'Enqueued', 'backendName' => 'status', ], 'timestamp' => [ 'title' => '', 'description' => 'The time of the event.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1647420449721', 'backendName' => 'timestamp', ], 'eventDetail' => [ 'title' => '', 'description' => 'The details of the event.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '{"Error":"UnhandledInvocationError"}', 'backendName' => 'eventDetail', ], ], ], 'TargetTrackingPolicies' => [ 'title' => 'A short description of struct', 'description' => 'The configurations of metric-based auto scaling.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'name' => [ 'title' => 'name', 'description' => 'The policy name.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'test_1', 'backendName' => 'name', ], 'startTime' => [ 'title' => 'startTime', 'description' => 'The time when the policy starts to take effect, in UTC.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '2020-10-10T10:10:10Z', 'backendName' => 'startTime', ], 'endTime' => [ 'title' => 'endTime', 'description' => 'The end time of the policy, in UTC.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '2020-10-10T10:10:10Z', 'backendName' => 'endTime', ], 'metricType' => [ 'title' => 'metricType', 'description' => 'The type of the tracked metrics:'."\n" ."\n" .'* **ProvisionedConcurrencyUtilization**: the concurrency utilization of provisioned instances'."\n" .'* **CPUUtilization** :CPU utilization'."\n" .'* **GPUMemUtilization**: GPU utilization'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'CPUUtilization', 'backendName' => 'metricType', ], 'metricTarget' => [ 'title' => 'metricTarget', 'description' => 'The threshold value for metric-based auto scaling.'."\n", 'visibility' => 'public', 'type' => 'number', 'format' => 'double', 'example' => '0.6', 'backendName' => 'metricTarget', ], 'minCapacity' => [ 'title' => 'minCapacity', 'description' => 'The minimum number of provisioned instances for scale-in.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'backendName' => 'minCapacity', ], 'maxCapacity' => [ 'title' => 'maxCapacity', 'description' => 'The maximum number of provisioned instances for scale-out.'."\n", 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'backendName' => 'maxCapacity', ], ], ], 'TimeTriggerConfig' => [ 'title' => 'A short description of struct', 'description' => 'The time trigger configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'payload' => [ 'title' => 'payload', 'description' => 'The custom parameters. The trigger message is used as the value of the payload in event.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '{\\"workflowInstanceId\\":\\"39639\\"}', 'backendName' => 'payload', ], 'cronExpression' => [ 'title' => 'cronExpression', 'description' => 'The trigger period expression. Two types of expressions are supported:'."\n" ."\n" .'* \\- Trigger based on time intervals: For example, the expression @every 4m indicates that the triggering is performed every four minutes.'."\n" .'* You can also specify to trigger based on a cron expression, for example, 0 0 4 \\* \\* \\*.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => '“0 0 4 * * *”', 'backendName' => 'cronExpression', ], 'enable' => [ 'title' => 'enable', 'description' => 'Specifies whether to enable the trigger.'."\n" ."\n" .'* **true**: enables the trigger.'."\n" .'* **false**: does not enable the trigger. In this case, the configured parameters do not take effect.'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'enable', ], ], ], 'TLSConfig' => [ 'title' => '', 'description' => 'The TLS configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'minVersion' => [ 'title' => '', 'description' => 'The minimum TLS version.'."\n" ."\n" .'Valid values:'."\n" ."\n" .'* TLSv1.3'."\n" .'* TLSv1.2'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'enumValueTitles' => [ 'TLSv1.3' => 'TLSv1.3', 'TLSv1.2' => 'TLSv1.2', ], 'example' => 'TLSv1.0', 'backendName' => 'minVersion', ], 'cipherSuites' => [ 'title' => '', 'description' => 'The TLS cipher suites.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The TLS cipher suite.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'TLS_RSA_WITH_RC4_128_SHA', 'extendType' => 'true', ], 'required' => true, 'backendName' => 'cipherSuites', ], 'maxVersion' => [ 'title' => '', 'description' => 'The maximum TLS version.'."\n" ."\n" .'Valid values:'."\n" ."\n" .'* TLSv1.3'."\n" .'* TLSv1.2'."\n", 'visibility' => 'public', 'type' => 'string', 'enumValueTitles' => [ 'TLSv1.3' => 'TLSv1.3', 'TLSv1.2' => 'TLSv1.2', ], 'example' => 'TLSv1.3', 'backendName' => 'maxVersion', ], ], ], 'TracingConfig' => [ 'title' => '', 'description' => 'The configurations of Managed Service for OpenTelemetry.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'type' => [ 'title' => '', 'description' => 'The protocol type. Only Jaeger is supported.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => 'Jaeger', 'backendName' => 'type', ], 'params' => [ 'title' => '', 'description' => 'The parameters of Managed Service for OpenTelemetry. If the protocol type is set to Jaeger, the parameter is in map\\[string]string format, in which the key is "endpoint" and the value is the internal endpoint of Managed Service for OpenTelemetry. Sample endpoint: `http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces`.'."\n", 'visibility' => 'public', 'type' => 'object', 'required' => true, 'additionalProperties' => [ 'description' => 'The parameters of Managed Service for OpenTelemetry.'."\n", 'visibility' => 'public', 'type' => 'string', 'required' => true, 'example' => '{"endpoint": "tracing_analysis_jaeger_endpoint"}', ], 'backendName' => 'params', ], ], ], 'VPCConfig' => [ 'title' => '', 'description' => 'The VPC configurations.'."\n", 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'securityGroupId' => [ 'title' => '', 'description' => 'The security group ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'sg-bp18hj1wtxgy3b0***', 'backendName' => 'securityGroupId', ], 'vSwitchIds' => [ 'title' => '', 'description' => 'The vSwitches.'."\n", 'visibility' => 'public', 'type' => 'array', 'items' => [ 'description' => 'The vSwitch ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'vsw-bp1ozpcrdc6r****', 'extendType' => 'true', ], 'backendName' => 'vSwitchIds', ], 'vpcId' => [ 'title' => 'VPC ID', 'description' => 'The VPC ID.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'vpc-***', 'backendName' => 'vpcId', ], 'role' => [ 'title' => 'Role', 'description' => 'The role that is assumed by functions in the service to access resources.'."\n", 'visibility' => 'public', 'type' => 'string', 'example' => 'acs:ram::1234567890:role/fc-test', 'backendName' => 'role', ], ], ], 'WAFConfig' => [ 'visibility' => 'public', 'type' => 'object', 'properties' => [ 'enableWAF' => [ 'title' => '', 'description' => 'Specifies whether to enable Web Application Firewall (WAF).'."\n", 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'enableWAF', ], ], 'description' => '', ], ], ], 'apis' => [ 'ListReservedCapacities' => [ 'summary' => 'Queries purchased provisioned instances. This API operation has been deprecated. We recommend that you do not continue to use this API operation.', 'path' => '/2021-04-06/reserved-capacities', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'description' => 'The token that determines the start point of the query.'."\n", 'type' => 'string', 'required' => false, 'example' => '8bj81uI8n****', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '一次返回的数量,取值范围[1, 100]', 'description' => 'The maximum number of resources to return. Valid values: 1 to 100.'."\n", 'type' => 'string', 'required' => false, 'example' => '20', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the Function Compute API is called. The format is **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'reservedCapacities' => [ 'title' => 'reservedCapacities', 'description' => 'The information about subscription instances.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The information about the subscription instance.'."\n", '$ref' => '#/components/schemas/OpenReservedCapacity', ], ], 'nextToken' => [ 'title' => 'nextToken', 'description' => 'The token used to obtain more results.'."\n", 'type' => 'string', 'example' => '8bj81uI8n****', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"reservedCapacities\\": [\\n {\\n \\"instanceId\\": \\"\\",\\n \\"cu\\": 0,\\n \\"deadline\\": \\"\\",\\n \\"createdTime\\": \\"\\",\\n \\"lastModifiedTime\\": \\"\\",\\n \\"isRefunded\\": \\"\\"\\n }\\n ],\\n \\"nextToken\\": \\"8bj81uI8n****\\"\\n}","type":"json"}]', 'title' => 'ListReservedCapacities', ], 'DescribeRegions' => [ 'summary' => 'Queries the regions where Function Compute 2.0 is available.', 'path' => '/2021-04-06/regions', 'methods' => [ 'get', ], 'schemes' => [ 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '22416', 'abilityTreeNodes' => [ 'FEATUREfcAXUA30', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'AcceptLanguage', 'in' => 'query', 'schema' => [ 'title' => '根据汉语、英语等语言筛选返回结果。更多详情,请参见RFC 7231。取值范围:'."\n" ."\n" .'zh-CN:中文。'."\n" .'en-US:英文。'."\n" .'ja:日语'."\n" .'默认值:zh-CN。', 'description' => 'The language in which the list of regions is returned. For more information, see RFC 7231. Valid values:'."\n" ."\n" .'zh-CN: Chinese en-US: English ja: Japanese Default value: en-US'."\n", 'type' => 'string', 'required' => false, 'example' => 'zh-CN', 'default' => 'zh-CN', 'enum' => [ 'zh-CN', 'en-US', 'ja', ], ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Response', 'description' => 'Response'."\n", 'type' => 'object', 'properties' => [ 'Regions' => [ 'title' => '地域信息', 'description' => 'The region information.'."\n", 'type' => 'object', 'properties' => [ 'Region' => [ 'title' => '地域信息集合', 'description' => 'The collection of region information.'."\n", 'type' => 'array', 'items' => [ 'title' => '地域对象', 'description' => 'The region object.'."\n", 'type' => 'object', 'properties' => [ 'RegionId' => [ 'title' => '地域ID', 'description' => 'The region ID.'."\n", 'type' => 'string', 'example' => 'cn-qingdao', ], 'LocalName' => [ 'title' => '地域名称', 'description' => 'The region name.'."\n", 'type' => 'string', 'example' => '', ], ], ], ], ], ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"RegionId\\": \\"cn-qingdao\\",\\n \\"LocalName\\": \\"华北1(青岛)\\"\\n }\\n ]\\n }\\n}","type":"json"}]', 'title' => 'DescribeRegions', 'responseParamsDescription' => 'Sample success response in JSON format:'."\n" ."\n" .'```json'."\n" .'{'."\n" .' "Regions": {'."\n" .' "Region": ['."\n" .' {'."\n" .' "RegionId": "cn-qingdao",'."\n" .' "RegionEndpoint": "cn-qingdao.fc.aliyuncs.com",'."\n" .' "LocalName": "China (Qingdao)"'."\n" .' }'."\n" .' ]'."\n" .' }'."\n" .'}'."\n" .'```'."\n", ], 'GetAccountSettings' => [ 'summary' => 'You can call this operation to query the information about an account.', 'path' => '/2021-04-06/account-settings', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'enumValueTitles' => [], 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the Function Compute API was called. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'availableAZs' => [ 'title' => '可用区列表', 'description' => 'The zone IDs.'."\n", 'type' => 'array', 'items' => [ 'description' => 'A region.'."\n", 'type' => 'string', 'example' => 'cn-hangzhou-f', ], ], 'defaultRole' => [ 'title' => '默认服务角色', 'description' => 'The default service role.'."\n", 'type' => 'string', 'example' => 'acs:ram::1234:role/aliyunfcdefaultrole', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"availableAZs\\": [\\n \\"cn-hangzhou-f\\"\\n ],\\n \\"defaultRole\\": \\"acs:ram::1234:role/aliyunfcdefaultrole\\"\\n}","type":"json"}]', 'title' => 'GetAccountSettings', ], 'CreateService' => [ 'summary' => 'Create a service.', 'path' => '/2021-04-06/services', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '22405', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => '服务', 'description' => 'The definition of the service.'."\n", 'type' => 'object', 'properties' => [ 'description' => [ 'title' => '服务描述', 'description' => 'The description of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'service_description', ], 'internetAccess' => [ 'title' => '公网访问设置', 'description' => 'Specifies whether to allow functions to access the Internet. Default value: true. Valid values:'."\n" ."\n" .'* **true**'."\n" .'* **false**'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', ], 'logConfig' => [ 'description' => 'The log configurations. Function Compute writes function execution logs to the specified Logstore.'."\n", 'required' => false, '$ref' => '#/components/schemas/LogConfig', ], 'nasConfig' => [ 'description' => 'The File Storage NAS (NAS) configurations. The configurations allow functions to access the specified NAS file system.', 'required' => false, '$ref' => '#/components/schemas/NASConfig', ], 'role' => [ 'title' => '服务角色', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to grant required permissions to Function Compute. The RAM role is used in the following scenarios:'."\n" ."\n" .'* Send function execution logs to your Logstore.'."\n" .'* Generate a token for a function to access other cloud resources during function executions.'."\n", 'type' => 'string', 'required' => false, 'example' => 'acs:ram::188077086902****:role/fc-test', ], 'serviceName' => [ 'title' => '服务名称', 'description' => 'The name of the service. The name can contain only letters, digits, hyphens (-), and underscores (\\_). It cannot start with a digit or hyphen (-). The name must be 1 to 128 characters in length.'."\n", 'type' => 'string', 'required' => true, 'example' => 'service_Name', ], 'vpcConfig' => [ 'description' => 'The Virtual Private Cloud (VPC) configurations. The configurations allow the function to access the specified VPCs.'."\n", 'required' => false, '$ref' => '#/components/schemas/VPCConfig', ], 'tracingConfig' => [ 'description' => 'The configuration of Managed Service for OpenTelemetry. After Function Compute is integrated with Managed Service for OpenTelemetry, you can record the duration of a request in Function Compute, view the cold start duration of a function, and record the execution duration of a function. For more information, see [Tracing analysis](~~189804~~).'."\n", 'required' => false, '$ref' => '#/components/schemas/TracingConfig', ], 'ossMountConfig' => [ 'title' => 'OSS挂载配置', 'description' => 'The Object Storage Service (OSS) mounting configurations.'."\n", 'required' => false, '$ref' => '#/components/schemas/OSSMountConfig', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'etag' => [ 'schema' => [ 'title' => 'etag,用于更改服务。以确保实际更改的服务和期望更改的服务是一致的', 'type' => 'string', 'example' => '5e547e5605e1dc17a78a6191bc18fbc5', ], ], ], 'schema' => [ 'title' => '服务定义', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the service was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], 'description' => [ 'title' => '服务描述', 'description' => 'The description of the service.'."\n", 'type' => 'string', 'example' => 'service_description', ], 'internetAccess' => [ 'title' => '公网访问设置', 'description' => 'Specifies whether to allow functions to access the Internet. Valid values:'."\n" ."\n" .'* **true**: allows functions in the specified service to access the Internet.'."\n" .'* **false**: does not allow functions in the specified service to access the Internet.'."\n", 'type' => 'boolean', 'example' => 'true', ], 'lastModifiedTime' => [ 'title' => '上次更新时间', 'description' => 'The time when the service was last modified.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], 'logConfig' => [ 'description' => 'The log configurations. Function Compute writes function execution logs to the specified Logstore.'."\n", '$ref' => '#/components/schemas/LogConfig', ], 'nasConfig' => [ 'description' => 'The NAS configurations. The configurations allow functions to access the specified NAS file system.'."\n", '$ref' => '#/components/schemas/NASConfig', ], 'role' => [ 'title' => '服务角色', 'description' => 'The RAM role that is used to grant required permissions to Function Compute. The RAM role is used in the following scenarios:'."\n" ."\n" .'* Sends function execution logs to your Logstore.'."\n" .'* Generates a token for a function to access other cloud resources during function execution.'."\n", 'type' => 'string', 'example' => 'acs:ram::188077086902****:role/fc-test', ], 'serviceId' => [ 'title' => '服务ID', 'description' => 'The unique ID generated by the system for the service.'."\n", 'type' => 'string', 'example' => '2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737', ], 'serviceName' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'example' => 'service_Name', ], 'vpcConfig' => [ 'description' => 'The VPC configurations. The configurations allow the function to access the specified VPCs.'."\n", '$ref' => '#/components/schemas/VPCConfig', ], 'tracingConfig' => [ 'description' => 'The configuration of Managed Service for OpenTelemetry. After Function Compute is integrated with Managed Service for OpenTelemetry, you can record the duration of a request in Function Compute, view the cold start duration of a function, and record the execution duration of a function. For more information, see [Tracing analysis](~~189804~~).'."\n", '$ref' => '#/components/schemas/TracingConfig', ], 'ossMountConfig' => [ 'title' => 'OSS挂载配置', 'description' => 'The OSS mounting configurations.'."\n", '$ref' => '#/components/schemas/OSSMountConfig', ], 'useSLRAuthentication' => [ 'description' => 'Indicates whether service-linked role authorization is enabled. Valid values:'."\n" ."\n" .'* true'."\n" .'* false'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], 400 => [], 403 => [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"createdTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"description\\": \\"service_description\\",\\n \\"internetAccess\\": true,\\n \\"lastModifiedTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"logConfig\\": {\\n \\"logstore\\": \\"test-prj\\",\\n \\"project\\": \\"test-logstore\\",\\n \\"enableRequestMetrics\\": true,\\n \\"enableInstanceMetrics\\": true,\\n \\"logBeginRule\\": \\"DefaultRegex\\"\\n },\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.aliyuncs.com:/\\",\\n \\"enableTLS\\": false\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"role\\": \\"acs:ram::188077086902****:role/fc-test\\",\\n \\"serviceId\\": \\"2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737\\",\\n \\"serviceName\\": \\"service_Name\\",\\n \\"vpcConfig\\": {\\n \\"securityGroupId\\": \\"sg-bp18hj1wtxgy3b0***\\",\\n \\"vSwitchIds\\": [\\n \\"vsw-bp1ozpcrdc6r****\\"\\n ],\\n \\"vpcId\\": \\"vpc-***\\",\\n \\"role\\": \\"\\"\\n },\\n \\"tracingConfig\\": {\\n \\"type\\": \\"Jaeger\\",\\n \\"params\\": {\\n \\"key\\": \\"http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces\\"\\n }\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true,\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"bucketPath\\": \\"/my-dir\\"\\n }\\n ]\\n },\\n \\"useSLRAuthentication\\": true\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', 'title' => 'CreateService', 'description' => "\n", ], 'DeleteService' => [ 'summary' => 'Deletes a service.', 'path' => '/2021-04-06/services/{serviceName}', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '22373', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'title' => '用于确保实际更改的资源和期望更改的资源是一致的,该值来自Create,Get和Update API的响应', 'description' => 'The value that is used to ensure that the modified service is consistent with the service to be modified. The value of this parameter comes from responses of the [CreateService](~~175256~~), [UpdateService](~~188167~~), and [GetService](~~189225~~) operation.'."\n", 'type' => 'string', 'required' => false, 'example' => 'service_name', ], ], [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the Function Compute API was called. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'r9s89isisi****', ], ], ], 'responses' => [ 204 => [], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteService', ], 'UpdateService' => [ 'summary' => 'Updates a service.', 'path' => '/2021-04-06/services/{serviceName}', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '22408', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'title' => '用于确保实际更改的资源和期望更改的资源是一致的,该值来自Create,Get和Update API的响应', 'description' => 'The value used to ensure that the modified service is consistent with the service to be modified. The value is obtained from the responses of the [CreateService](~~175256~~), [UpdateService](~~188167~~), and [GetService](~~189225~~) operations.'."\n", 'type' => 'string', 'required' => false, 'example' => 'e19d5cd5af0378da05f63f891c7467af', ], ], [ 'name' => 'serviceName', 'in' => 'path', 'allowEmptyValue' => false, 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => '服务', 'description' => 'The definition of the service.'."\n", 'type' => 'object', 'properties' => [ 'description' => [ 'title' => '服务描述', 'description' => 'The description of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test service', ], 'internetAccess' => [ 'title' => '公网访问设置', 'description' => 'Specifies whether to allow functions to access the Internet. Valid values:'."\n" ."\n" .'* **true**'."\n" .'* **false**'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', ], 'logConfig' => [ 'description' => 'The logging configurations. Function execution logs are stored in the specified Logstores.'."\n", 'required' => false, '$ref' => '#/components/schemas/LogConfig', ], 'nasConfig' => [ 'description' => 'The configurations of the File Storage NAS (NAS) file system. These configurations allow functions to access the specified NAS resources.'."\n", 'required' => false, '$ref' => '#/components/schemas/NASConfig', ], 'role' => [ 'title' => '服务角色', 'description' => 'The RAM role that is used to grant required permissions to Function Compute. This role is applicable in the following scenarios:'."\n" ."\n" .'* Send function execution logs to your Logstores.'."\n" .'* Generate a token for a function to access other Alibaba Cloud resources during function execution.'."\n", 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1234567890:role/fc-test', ], 'vpcConfig' => [ 'description' => 'The configurations of virtual private clouds (VPCs). These configurations allow Function Compute to access the specified VPC resources.'."\n", 'required' => false, '$ref' => '#/components/schemas/VPCConfig', ], 'tracingConfig' => [ 'description' => 'The configurations of Managed Service for OpenTelemetry. After you configure Managed Service for OpenTelemetry for functions in Function Compute, you can record the execution durations of requests and internal processing durations of functions, and view the cold start latencies. For more information, see [Overview](~~189804~~).'."\n", 'required' => false, '$ref' => '#/components/schemas/TracingConfig', ], 'ossMountConfig' => [ 'title' => 'OSS挂载配置', 'description' => 'The Object Storage Service (OSS) mounting configurations.'."\n", 'required' => false, '$ref' => '#/components/schemas/OSSMountConfig', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the Function Compute API is called. The format is **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => 'etag,用于更改服务。以确保实际更改的服务和期望更改的服务是一致的', 'type' => 'string', 'example' => '5e547e5605e1dc17a78a6191bc18fbc5', ], ], ], 'schema' => [ 'title' => '服务定义', 'description' => 'The definition of the service.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the service was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], 'description' => [ 'title' => '服务描述', 'description' => 'The description of the service.'."\n", 'type' => 'string', 'example' => 'test_description', ], 'internetAccess' => [ 'title' => '公网访问设置', 'description' => 'Specifies whether to allow functions to access the Internet. Valid values:'."\n" ."\n" .'* **true**: allows functions in the specified service to access the Internet.'."\n" .'* **false**: does not allow functions to access the Internet.'."\n", 'type' => 'boolean', 'example' => 'true', ], 'lastModifiedTime' => [ 'title' => '上次更新时间', 'description' => 'The time when the service was last modified.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], 'logConfig' => [ 'description' => 'The logging configurations. Function Compute writes function execution logs to the specified Logstores.'."\n", '$ref' => '#/components/schemas/LogConfig', ], 'nasConfig' => [ 'description' => 'The configurations of the NAS file system. These configurations allow functions to access the specified NAS resources.'."\n", '$ref' => '#/components/schemas/NASConfig', ], 'role' => [ 'title' => '服务角色', 'description' => 'The RAM role that is used to grant required permissions to Function Compute. The RAM role is used in the following scenarios:'."\n" ."\n" .'* Sends function execution logs to your Logstore.'."\n" .'* Generates a token for a function to access other cloud resources during function execution.'."\n", 'type' => 'string', 'example' => 'acs:ram::1234567890:role/fc-test', ], 'serviceId' => [ 'title' => '服务ID', 'description' => 'The unique ID generated by the system for the service.'."\n", 'type' => 'string', 'example' => '2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737', ], 'serviceName' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'example' => 'demo-service', ], 'vpcConfig' => [ 'description' => 'The VPC configurations, which allow functions to access the specified VPC resources.'."\n", '$ref' => '#/components/schemas/VPCConfig', ], 'tracingConfig' => [ 'description' => 'The configurations of Managed Service for OpenTelemetry. After you configure Managed Service for OpenTelemetry for functions in Function Compute, you can record the execution durations of requests and internal processing durations of functions, and view the cold start latencies. For more information, see [Overview](~~189804~~).'."\n", '$ref' => '#/components/schemas/TracingConfig', ], 'ossMountConfig' => [ 'title' => 'OSS挂载配置', 'description' => 'The OSS mounting configurations.'."\n", '$ref' => '#/components/schemas/OSSMountConfig', ], 'useSLRAuthentication' => [ 'description' => 'Indicates whether service-linked role authorization is enabled. Valid values:'."\n" ."\n" .'* true'."\n" .'* false'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], 400 => [], 403 => [], [], 500 => [], 'headers' => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"description\\": \\"test_description\\",\\n \\"internetAccess\\": true,\\n \\"lastModifiedTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"logConfig\\": {\\n \\"logstore\\": \\"test-prj\\",\\n \\"project\\": \\"test-logstore\\",\\n \\"enableRequestMetrics\\": true,\\n \\"enableInstanceMetrics\\": true,\\n \\"logBeginRule\\": \\"DefaultRegex\\"\\n },\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.aliyuncs.com:/\\",\\n \\"enableTLS\\": false\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"role\\": \\"acs:ram::1234567890:role/fc-test\\",\\n \\"serviceId\\": \\"2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737\\",\\n \\"serviceName\\": \\"demo-service\\",\\n \\"vpcConfig\\": {\\n \\"securityGroupId\\": \\"sg-bp18hj1wtxgy3b0***\\",\\n \\"vSwitchIds\\": [\\n \\"vsw-bp1ozpcrdc6r****\\"\\n ],\\n \\"vpcId\\": \\"vpc-***\\",\\n \\"role\\": \\"\\"\\n },\\n \\"tracingConfig\\": {\\n \\"type\\": \\"Jaeger\\",\\n \\"params\\": {\\n \\"key\\": \\"http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces\\"\\n }\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true,\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"bucketPath\\": \\"/my-dir\\"\\n }\\n ]\\n },\\n \\"useSLRAuthentication\\": true\\n}","type":"json"}]', 'title' => 'UpdateService', ], 'ListServices' => [ 'summary' => 'Queries a list of services.', 'path' => '/2021-04-06/services', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '22393', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '最多返回个数', 'description' => 'The maximum number of resources to return. Default value: 20. The value cannot exceed 100. The number of returned configurations is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'enumValueTitles' => [], 'example' => '20', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'title' => '下次查询token', 'description' => 'The starting position of the query. If this parameter is left empty, the query starts from the beginning. You do not need to specify this parameter in the first query. If the number of asynchronous tasks exceeds the limit, the nextToken parameter is returned, the value of which can be used in subsequent calls to obtain more results.'."\n", 'type' => 'string', 'required' => false, 'example' => 'caeba0****be03f84eb48b699f0a4883', ], ], [ 'name' => 'prefix', 'in' => 'query', 'schema' => [ 'title' => '前缀', 'description' => 'The prefix that the names of returned resources must contain. If the name prefix is a, the names of returned resources must start with a.'."\n", 'type' => 'string', 'required' => false, 'example' => 'prefix_text', ], ], [ 'name' => 'startKey', 'in' => 'query', 'schema' => [ 'title' => '起始key', 'description' => 'The returned resources are sorted in alphabetical order, and the resources that include and follow the resource specified by the startKey parameter are returned.'."\n", 'type' => 'string', 'required' => false, 'example' => 'nextService', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '查询服务响应', 'description' => 'The definition of the service.'."\n", 'type' => 'object', 'properties' => [ 'nextToken' => [ 'title' => '下次查询token', 'description' => 'The token used to obtain more results. If this parameter is left empty, all the results are returned.'."\n", 'type' => 'string', 'example' => 'caeba0****be03f84eb48b699f0a4883', ], 'services' => [ 'title' => '服务列表', 'description' => 'The queried services.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The information about the service.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the service was created.'."\n", 'type' => 'string', 'example' => '2020-04-03T05:57:28Z', ], 'description' => [ 'title' => '服务描述', 'description' => 'The description of the service.'."\n", 'type' => 'string', 'example' => 'test_description', ], 'internetAccess' => [ 'title' => '公网访问设置', 'description' => 'Indicates whether to allow functions to access the Internet. Valid values:'."\n" ."\n" .'* **true**'."\n" .'* **false**'."\n", 'type' => 'boolean', 'example' => 'true', ], 'lastModifiedTime' => [ 'title' => '上次更新时间', 'description' => 'The last time when the service was updated.'."\n", 'type' => 'string', 'example' => '2020-04-03T05:57:28Z', ], 'logConfig' => [ 'description' => 'The logging configurations. Function Compute writes function execution logs to the specified Logstores.'."\n", '$ref' => '#/components/schemas/LogConfig', ], 'nasConfig' => [ 'description' => 'The configurations of the File Storage NAS (NAS) file system. These configurations allow functions to access the specified NAS resources.'."\n", '$ref' => '#/components/schemas/NASConfig', ], 'role' => [ 'title' => '服务角色', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to grant required permissions to Function Compute. The RAM role is used in the following scenarios:'."\n" ."\n" .'* Send function execution logs to your Logstore.'."\n" .'* Generate a token for a function to access other Alibaba Cloud resources during function execution.'."\n", 'type' => 'string', 'example' => 'acs:ram::198613743****:role/fc-public-test', ], 'serviceId' => [ 'title' => '服务ID', 'description' => 'The ID generated by the system for each service, which is globally unique.'."\n", 'type' => 'string', 'example' => 'c910061f-****-44e6-b659-***c', ], 'serviceName' => [ 'title' => '服务信息', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'example' => 'service_name', ], 'vpcConfig' => [ 'description' => 'The configurations of virtual private clouds (VPCs). These configurations allow Function Compute to access the specified VPC resources.'."\n", '$ref' => '#/components/schemas/VPCConfig', ], 'tracingConfig' => [ 'description' => 'The configurations of Managed Service for OpenTelemetry. After you configure Managed Service for OpenTelemetry for functions in Function Compute, you can record the execution durations of requests and internal processing durations of functions, and view the cold start latencies. For more information, see [Overview](~~189804~~).'."\n", '$ref' => '#/components/schemas/TracingConfig', ], 'ossMountConfig' => [ 'title' => 'OSS挂载配置', 'description' => 'The Object Storage Service (OSS) mounting configurations.'."\n", '$ref' => '#/components/schemas/OSSMountConfig', ], 'useSLRAuthentication' => [ 'description' => 'Indicates whether service-linked role authorization is enabled. Valid values:'."\n" ."\n" .'* true'."\n" .'* false'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], ], ], ], 400 => [], 403 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"caeba0****be03f84eb48b699f0a4883\\",\\n \\"services\\": [\\n {\\n \\"createdTime\\": \\"2020-04-03T05:57:28Z\\",\\n \\"description\\": \\"test_description\\",\\n \\"internetAccess\\": true,\\n \\"lastModifiedTime\\": \\"2020-04-03T05:57:28Z\\",\\n \\"logConfig\\": {\\n \\"logstore\\": \\"test-prj\\",\\n \\"project\\": \\"test-logstore\\",\\n \\"enableRequestMetrics\\": true,\\n \\"enableInstanceMetrics\\": true,\\n \\"logBeginRule\\": \\"DefaultRegex\\"\\n },\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.aliyuncs.com:/\\",\\n \\"enableTLS\\": false\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"role\\": \\"acs:ram::198613743****:role/fc-public-test\\",\\n \\"serviceId\\": \\"c910061f-****-44e6-b659-***c\\",\\n \\"serviceName\\": \\"service_name\\",\\n \\"vpcConfig\\": {\\n \\"securityGroupId\\": \\"sg-bp18hj1wtxgy3b0***\\",\\n \\"vSwitchIds\\": [\\n \\"vsw-bp1ozpcrdc6r****\\"\\n ],\\n \\"vpcId\\": \\"vpc-***\\",\\n \\"role\\": \\"\\"\\n },\\n \\"tracingConfig\\": {\\n \\"type\\": \\"Jaeger\\",\\n \\"params\\": {\\n \\"key\\": \\"http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces\\"\\n }\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true,\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"bucketPath\\": \\"/my-dir\\"\\n }\\n ]\\n },\\n \\"useSLRAuthentication\\": true\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListServices', ], 'GetService' => [ 'summary' => 'Queries information about a specified service.', 'path' => '/2021-04-06/services/{serviceName}', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22415', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '限定符', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => 'etag,用于更改服务。以确保实际更改的服务和期望更改的服务是一致的', 'type' => 'string', 'example' => '5e547e5605e1dc17a78a6191bc18fbc5', ], ], ], 'schema' => [ 'title' => '服务定义', 'description' => 'The definition of the service.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the service was created.'."\n", 'type' => 'string', 'example' => '2020-04-03T05:57:28Z', ], 'description' => [ 'title' => '服务描述', 'description' => 'The description of the service.'."\n", 'type' => 'string', 'example' => 'demo-service-test', ], 'internetAccess' => [ 'title' => '公网访问设置', 'description' => 'Specifies whether to allow functions to access the Internet. Valid values:'."\n" ."\n" .'* **true**: allows functions in the specified service to access the Internet.'."\n" .'* **false**: does not allow functions to access the Internet.'."\n", 'type' => 'boolean', 'example' => 'true', ], 'lastModifiedTime' => [ 'title' => '上次更新时间', 'description' => 'The time when the service was last modified.'."\n", 'type' => 'string', 'example' => '2020-04-03T05:57:28Z', ], 'logConfig' => [ 'description' => 'The logging configurations. Function Compute writes function execution logs to the specified Logstore.'."\n", '$ref' => '#/components/schemas/LogConfig', ], 'nasConfig' => [ 'description' => 'The configuration of the Apsara File Storage NAS (NAS) file system. The configuration allows functions in the specified service in Function Compute to access the NAS file system.'."\n", '$ref' => '#/components/schemas/NASConfig', ], 'role' => [ 'title' => '服务角色', 'description' => 'The RAM role that is used to grant required permissions to Function Compute. Scenarios:'."\n" ."\n" .'* Sends function execution logs to your Logstore.'."\n" .'* Generates a token for a function to access other cloud resources during function execution.'."\n", 'type' => 'string', 'example' => 'acs:ram::1234567890:role/fc-test', ], 'serviceId' => [ 'title' => '服务ID', 'description' => 'The unique ID generated by the system for the service.'."\n", 'type' => 'string', 'example' => '2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737', ], 'serviceName' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'example' => 'demo-service', ], 'vpcConfig' => [ 'description' => 'The VPC configurations, which allow functions in the specified service to access the specified VPC.'."\n", '$ref' => '#/components/schemas/VPCConfig', ], 'tracingConfig' => [ 'description' => 'The configurations of Managed Service for OpenTelemetry. After you configure Managed Service for OpenTelemetry for a service in Function Compute, you can record the execution durations of requests and internal processing durations of functions, and view the cold start durations. For more information, see [Overview](~~189804~~).'."\n", '$ref' => '#/components/schemas/TracingConfig', ], 'ossMountConfig' => [ 'title' => 'OSS挂载配置', 'description' => 'The Object Storage Service (OSS) mounting configuration.'."\n", '$ref' => '#/components/schemas/OSSMountConfig', ], 'useSLRAuthentication' => [ 'description' => 'Indicates whether service-linked role authorization is enabled. Valid values:'."\n" ."\n" .'* true'."\n" .'* false'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2020-04-03T05:57:28Z\\",\\n \\"description\\": \\"demo-service-test\\",\\n \\"internetAccess\\": true,\\n \\"lastModifiedTime\\": \\"2020-04-03T05:57:28Z\\",\\n \\"logConfig\\": {\\n \\"logstore\\": \\"test-prj\\",\\n \\"project\\": \\"test-logstore\\",\\n \\"enableRequestMetrics\\": true,\\n \\"enableInstanceMetrics\\": true,\\n \\"logBeginRule\\": \\"DefaultRegex\\"\\n },\\n \\"nasConfig\\": {\\n \\"groupId\\": 100,\\n \\"mountPoints\\": [\\n {\\n \\"mountDir\\": \\"/home/test\\",\\n \\"serverAddr\\": \\"***-uni85.cn-hangzhou.nas.aliyuncs.com:/\\",\\n \\"enableTLS\\": false\\n }\\n ],\\n \\"userId\\": 100\\n },\\n \\"role\\": \\"acs:ram::1234567890:role/fc-test\\",\\n \\"serviceId\\": \\"2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737\\",\\n \\"serviceName\\": \\"demo-service\\",\\n \\"vpcConfig\\": {\\n \\"securityGroupId\\": \\"sg-bp18hj1wtxgy3b0***\\",\\n \\"vSwitchIds\\": [\\n \\"vsw-bp1ozpcrdc6r****\\"\\n ],\\n \\"vpcId\\": \\"vpc-***\\",\\n \\"role\\": \\"\\"\\n },\\n \\"tracingConfig\\": {\\n \\"type\\": \\"Jaeger\\",\\n \\"params\\": {\\n \\"key\\": \\"http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/otlp/traces\\"\\n }\\n },\\n \\"ossMountConfig\\": {\\n \\"mountPoints\\": [\\n {\\n \\"bucketName\\": \\"my-bucket\\",\\n \\"mountDir\\": \\"/mnt/dir\\",\\n \\"readOnly\\": true,\\n \\"endpoint\\": \\"http://oss-cn-shanghai.aliyuncs.com\\",\\n \\"bucketPath\\": \\"/my-dir\\"\\n }\\n ]\\n },\\n \\"useSLRAuthentication\\": true\\n}","type":"json"}]', 'title' => 'GetService', ], 'DeleteServiceVersion' => [ 'summary' => 'Removes a service version.', 'path' => '/2021-04-06/services/{serviceName}/versions/{versionId}', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '22397', 'abilityTreeNodes' => [ 'FEATUREfcDTB0I5', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'allowEmptyValue' => false, 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'versionId', 'in' => 'path', 'schema' => [ 'title' => '版本ID', 'description' => 'The version of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => '1', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 204 => [], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteServiceVersion', ], 'PublishServiceVersion' => [ 'summary' => 'Publishes a service version.', 'path' => '/2021-04-06/services/{serviceName}/versions', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '22400', 'abilityTreeNodes' => [ 'FEATUREfcDTB0I5', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the service. ', 'example' => 'demo-service', 'required' => true, 'title' => '服务名称', 'type' => 'string', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'description' => 'The definition of the service version. ', 'properties' => [ 'description' => [ 'description' => 'The description of the service version. ', 'example' => 'test_description', 'required' => false, 'title' => '版本描述', 'type' => 'string', ], ], 'required' => false, 'title' => '版本', 'type' => 'object', ], ], [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'description' => 'The ETag value of the service. This value is used to ensure that the modified service is consistent with the service to be modified. The ETag value is returned in the responses of the [CreateService](~~175256~~), [UpdateService](~~188167~~), and [GetService](~~189225~~) operations. ', 'example' => 'e19d5cd5af0378da05f63f891c7467af', 'required' => false, 'title' => '服务的ETag,可通过GetService接口获得。若发布版本时服务的ETag与传入的不一致,则发布版本会失败。', 'type' => 'string', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account. ', 'example' => '188077086902****', 'required' => false, 'type' => 'string', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The start time when the function is invoked. Specify the time in the yyyy-mm-ddhh:mm:ss format. ', 'example' => 'Wed, 11 May 2022 09:00:00 GMT', 'required' => false, 'type' => 'string', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => '2020-12-1210:00:00', 'example' => 'rid281s******', 'required' => false, 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'type' => 'string', ], ], ], 'schema' => [ 'description' => 'The trace ID of the invocation request of Function Compute.', 'properties' => [ 'createdTime' => [ 'description' => 'The returned data. ', 'example' => '2016-08-15T16:06:05.000+0000', 'title' => '创建时间', 'type' => 'string', ], 'description' => [ 'description' => 'The creation time.', 'example' => 'test_description', 'title' => '版本描述', 'type' => 'string', ], 'lastModifiedTime' => [ 'description' => 'The description of the service version.', 'example' => '2016-08-15T16:06:05.000+0000', 'title' => '上次更新时间', 'type' => 'string', ], 'versionId' => [ 'description' => 'The last update time.', 'example' => '1', 'title' => '版本ID', 'type' => 'string', ], ], 'title' => '版本响应', 'type' => 'object', ], ], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"description\\": \\"test_description\\",\\n \\"lastModifiedTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"versionId\\": \\"1\\"\\n}","type":"json"}]', 'title' => 'PublishServiceVersion', ], 'ListServiceVersions' => [ 'summary' => 'Queries all the versions of a service.', 'path' => '/2021-04-06/services/{serviceName}/versions', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22417', 'abilityTreeNodes' => [ 'FEATUREfcDTB0I5', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '最多返回个数', 'description' => 'The maximum number of results to return. Default value: 20. Maximum value: 100. The number of returned configurations is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'title' => '下次查询token', 'description' => 'The token required to obtain more results. If the number of layers exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'required' => false, 'example' => '8bj81uI8n****', ], ], [ 'name' => 'startKey', 'in' => 'query', 'schema' => [ 'title' => '起始key', 'description' => 'The position from which the list begins. Results are sorted based on the version numbers.'."\n", 'type' => 'string', 'required' => false, 'example' => 'nextservice', ], ], [ 'name' => 'direction', 'in' => 'query', 'schema' => [ 'title' => '排序方向', 'description' => 'The order in which the returned versions are sorted. Valid values:'."\n" ."\n" .'* **FORWARD**: The results are sorted in ascending order.'."\n" .'* **BACKWARD**: The results are sorted in descending order.'."\n", 'type' => 'string', 'required' => false, 'example' => 'BACKWARD', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '查询版本响应', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'direction' => [ 'title' => '排序方向', 'description' => 'The order in which the returned versions are sorted. Valid values:'."\n" ."\n" .'* **FORWARD**: The results are sorted in ascending order.'."\n" .'* **BACKWARD**: The results are sorted in descending order.'."\n", 'type' => 'string', 'example' => 'BACKWARD', ], 'nextToken' => [ 'title' => '下次查询token', 'description' => 'The token required to obtain more results. If the number of layers exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'example' => 'eJhojW7N****', ], 'versions' => [ 'title' => '版本列表', 'description' => 'The versions.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The information about the version. ', 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the service version was created.'."\n", 'type' => 'string', 'example' => '2020-03-16T06:23:50Z', ], 'description' => [ 'title' => '版本描述', 'description' => 'The description of the service version.'."\n", 'type' => 'string', 'example' => 'test_description', ], 'lastModifiedTime' => [ 'title' => '上次更新时间', 'description' => 'The last time when the service version was updated.'."\n", 'type' => 'string', 'example' => '2020-07-15T06:12:31Z', ], 'versionId' => [ 'title' => '版本ID', 'description' => 'The version of the service.'."\n", 'type' => 'string', 'example' => '1', ], ], ], ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"direction\\": \\"BACKWARD\\",\\n \\"nextToken\\": \\"eJhojW7N****\\",\\n \\"versions\\": [\\n {\\n \\"createdTime\\": \\"2020-03-16T06:23:50Z\\",\\n \\"description\\": \\"test_description\\",\\n \\"lastModifiedTime\\": \\"2020-07-15T06:12:31Z\\",\\n \\"versionId\\": \\"1\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListServiceVersions', ], 'CreateTrigger' => [ 'summary' => 'A trigger is created.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/triggers', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '22395', 'abilityTreeNodes' => [ 'FEATUREfc0CDUNQ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => 'trigger对象', 'description' => 'The definition of the trigger.'."\n", 'type' => 'object', 'properties' => [ 'invocationRole' => [ 'title' => 'event source,如OSS,使用该role去invoke function', 'description' => 'The RAM role that is used by the event source such as Object Storage Service (OSS) to invoke the function. For more information, see [Overview](~~53102~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1234567890:role/fc-test', ], 'qualifier' => [ 'title' => 'service版本', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', ], 'sourceArn' => [ 'title' => 'event source的Aliyun Resource Name(ARN', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the trigger event source. This parameter is optional for time triggers, HTTP triggers, and EventBridge-based triggers. This parameter is required for other types of triggers. For an EventBridge-based trigger, if you specify this parameter, the existing resources on the EventBridge side are associated with the trigger. **Do not specify the same sourceArn value for two different EventBridge triggers**. Otherwise, the update and delete operations of one trigger affect another.'."\n", 'type' => 'string', 'required' => false, 'example' => 'acs:oss:cn-shanghai:12345:mybucket', ], 'triggerConfig' => [ 'title' => 'trigger配置,针对不同的trigger类型,trigger配置会有所不同', 'description' => 'The trigger configurations. The configurations vary based on the trigger type. The following items list the configuration format for different triggers:'."\n" ."\n" .'* OSS triggers: [OSSTriggerConfig](~~415697~~).'."\n" .'* Simple Log Service triggers: [LogTriggerConfig](~~415694~~).'."\n" .'* Time triggers: [TimeTriggerConfig](~~415712~~).'."\n" .'* HTTP triggers: [HTTPTriggerConfig](~~415685~~)'."\n" .'* Tablestore triggers: Specify the **SourceArnm** parameter and leave this parameter empty.'."\n" .'* Alibaba Cloud CDN event triggers: [CDNEventsTriggerConfig](~~415674~~).'."\n" .'* Simple Message Queue (formerly MNS) (SMQ) topic triggers: [MnsTopicTriggerConfig](~~415695~~).'."\n" .'* EventBridge-based triggers: [EventBridgeTriggerConfig](~~2508622~~).'."\n", 'type' => 'string', 'required' => true, 'example' => '{"events": ["oss:ObjectCreated:*"], "filter": {"key": {"prefix": "/prefix", "suffix": ".zip"}}}', ], 'triggerName' => [ 'title' => 'trigger名称', 'description' => 'The name of the trigger. The name can contain only letters, digits, hyphens (-), and underscores (\\_). The name must be 1 to 128 characters in length and cannot start with a digit or a hyphen (-).'."\n", 'type' => 'string', 'required' => true, 'example' => 'oss_create_object_demo', ], 'triggerType' => [ 'title' => 'trigger类型,如 oss, log, tablestore, timer, http, cdn_events, mns_topic', 'description' => 'The type of the trigger. Valid values:'."\n" ."\n" .'* **oss**: OSS event trigger. For more information, see [Overview of OSS event triggers](~~62922~~).'."\n" .'* **log**: Simple Log Service trigger. For more information, see [Simple Log Service triggers](~~84386~~).'."\n" .'* **timer**: time trigger. For more information, see [Configure a time trigger](~~68172~~).'."\n" .'* **http**: HTTP trigger. For more information, see [Overview](~~71229~~).'."\n" .'* **tablestore**: Tablestore trigger. For more information, see [Tablestore triggers](~~100092~~).'."\n" .'* **cdn_events**: Alibaba Cloud CDN event triggers. For more information, see [Overview](~~73333~~).'."\n" .'* **mns_topic**: SMQ topic triggers. For more information, see [Simple Message Queue (formerly MNS) topic triggers](~~97032~~).'."\n" .'* **eventbridge**: EventBridge-based triggers.'."\n", 'type' => 'string', 'required' => true, 'enumValueTitles' => [ 'cdn_events' => 'cdn_events', 'timer' => 'timer', 'log' => 'log', 'mns_topic' => 'mns_topic', 'eventbridge' => 'eventbridge', 'http' => 'http', 'oss' => 'oss', 'tablestore' => 'tablestore', ], 'example' => 'oss', ], 'description' => [ 'description' => 'The description of the trigger.'."\n", 'type' => 'string', 'required' => false, 'example' => 'trigger for test', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the request is initiated on the client. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-test-trace-id', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => 'trigger etag,用于更改trigger。以确保实际更改的trigger和期望更改的trigger是一致的', 'type' => 'string', ], ], ], 'schema' => [ 'title' => 'TriggerResponse', 'description' => 'The definition of the trigger.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the trigger was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T15:00:00.000+0000', ], 'invocationRole' => [ 'title' => '调用函数使用的RAM角色的ARN', 'description' => 'The ARN of the RAM role that is used by the event source to invoke the function.'."\n", 'type' => 'string', 'example' => 'acs:ram::1234567890:role/fc-test', ], 'lastModifiedTime' => [ 'title' => '上次修改时间', 'description' => 'The time when the trigger was last modified.'."\n", 'type' => 'string', 'example' => '016-08-15T17:00:00.000+0000', ], 'qualifier' => [ 'title' => 'service版本', 'description' => 'The version of the service.'."\n", 'type' => 'string', 'example' => 'LATEST', ], 'sourceArn' => [ 'title' => 'event source的Aliyun Resource Name(ARN', 'description' => 'The ARN of the event source.'."\n", 'type' => 'string', 'example' => 'acs:oss:cn-shanghai:12345:mybucket', ], 'triggerConfig' => [ 'title' => 'trigger配置对象', 'description' => 'The configurations of the trigger. The configurations vary based on the trigger type.'."\n", 'type' => 'string', 'example' => '{"events": ["oss:ObjectCreated:*"], "filter": {"key": {"prefix": "/prefix", "suffix": ".zip"}}}', ], 'triggerName' => [ 'title' => 'trigger名称', 'description' => 'The name of the trigger. The name contains only letters, digits, hyphens (-), and underscores (\\_). The name must be 1 to 128 characters in length and cannot start with a digit or hyphen (-).'."\n", 'type' => 'string', 'example' => 'oss_create_object_trigger_demo', ], 'triggerType' => [ 'title' => 'trigger类型,如 oss, log, tablestore, timer, http, cdn_events, mns_topic', 'description' => 'The trigger type. Valid values: **oss**, **log**, **tablestore**, **timer**, **http**, **cdn_events**, **mns_topic**, and **eventbridge**.'."\n", 'type' => 'string', 'example' => 'oss', ], 'description' => [ 'description' => 'The description of the trigger.'."\n", 'type' => 'string', 'example' => 'trigger for test', ], 'triggerId' => [ 'description' => 'The unique ID of the trigger.'."\n", 'type' => 'string', 'example' => '3e270f2f-cef2-421a-bc86-ff4e8088****', ], 'domainName' => [ 'title' => '域名名称,使用域名名称拼接上函数计算域名,可以采用HTTP协议调用到触发器对应版本的函数。例如{domainName}.cn-shanghai.fc.aliyuncs.com', 'description' => 'The domain name used to invoke the function by using HTTP. You can add this domain name as the prefix to the endpoint of Function Compute. This way, you can invoke the function that corresponds to the trigger by using HTTP. For example, `{domainName}.cn-shanghai.fc.aliyuncs.com`.'."\n", 'type' => 'string', 'example' => 'demo-service-demo-function-jkhksh', ], 'urlInternet' => [ 'title' => '公网域名地址。在互联网可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The public domain address. You can access HTTP triggers over the Internet by using HTTP or HTTPS.'."\n", 'type' => 'string', 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run', ], 'urlIntranet' => [ 'title' => '私网域名地址。在VPC可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The private endpoint. In a VPC, you can access HTTP triggers by using HTTP or HTTPS.'."\n", 'type' => 'string', 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run', ], ], ], ], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2016-08-15T15:00:00.000+0000\\",\\n \\"invocationRole\\": \\"acs:ram::1234567890:role/fc-test\\",\\n \\"lastModifiedTime\\": \\"016-08-15T17:00:00.000+0000\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"sourceArn\\": \\"acs:oss:cn-shanghai:12345:mybucket\\",\\n \\"triggerConfig\\": \\"{\\\\\\"events\\\\\\": [\\\\\\"oss:ObjectCreated:*\\\\\\"], \\\\\\"filter\\\\\\": {\\\\\\"key\\\\\\": {\\\\\\"prefix\\\\\\": \\\\\\"/prefix\\\\\\", \\\\\\"suffix\\\\\\": \\\\\\".zip\\\\\\"}}}\\",\\n \\"triggerName\\": \\"oss_create_object_trigger_demo\\",\\n \\"triggerType\\": \\"oss\\",\\n \\"description\\": \\"trigger for test\\",\\n \\"triggerId\\": \\"3e270f2f-cef2-421a-bc86-ff4e8088****\\",\\n \\"domainName\\": \\"demo-service-demo-function-jkhksh\\",\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n}","type":"json"}]', 'title' => 'CreateTrigger', ], 'DeleteTrigger' => [ 'summary' => 'Deletes a trigger.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/triggers/{triggerName}', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '22382', 'abilityTreeNodes' => [ 'FEATUREfc0CDUNQ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'title' => '用于确保实际更改的资源和期望更改的资源是一致的,该值来自Create,Get和Update API的响应', 'description' => 'This parameter is used to ensure that the modified resource is consistent with the resource to be modified. You can obtain the parameter value from the responses of [CreateTrigger](~~415729~~), [GetTrigger](~~415732~~), and [UpdateTrigger](~~415731~~) operations.'."\n", 'type' => 'string', 'required' => false, 'example' => 'e19d5cd5af0378da05f63f891c74****', ], ], [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'triggerName', 'in' => 'path', 'schema' => [ 'title' => '删除trigger', 'description' => 'The name of the trigger.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoTrigger', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the request is initiated on the client. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-test-trace-id', ], ], ], 'responses' => [ 204 => [], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteTrigger', ], 'UpdateTrigger' => [ 'summary' => 'Modifies a trigger.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/triggers/{triggerName}', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '22378', 'abilityTreeNodes' => [ 'FEATUREfc0CDUNQ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'title' => '用于确保实际更改的资源和期望更改的资源是一致的,该值来自Create,Get和Update API的响应', 'description' => 'This parameter is used to ensure that the modified resource is consistent with the resource to be modified. You can obtain the parameter value from the responses of [CreateTrigger](~~190054~~), [GetTrigger](~~190056~~), and [UpdateTrigger](~~190055~~) operations.'."\n", 'type' => 'string', 'required' => false, 'example' => 'e19d5cd5af0378da05f63f891c7467af', ], ], [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'triggerName', 'in' => 'path', 'schema' => [ 'title' => 'trigger名称', 'description' => 'The name of the trigger.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoTrigger', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => 'trigger更新结构体', 'description' => 'The definition of the trigger.'."\n", 'type' => 'object', 'properties' => [ 'invocationRole' => [ 'title' => 'event source,如OSS,使用该role去invoke function', 'description' => 'The role that is used by the event source such as Object Storage Service (OSS) to invoke the function. For more information, see [Overview](~~53102~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'acs:ram::123456xxxx:role/fc-test', ], 'qualifier' => [ 'title' => 'service版本', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', ], 'triggerConfig' => [ 'title' => 'trigger配置,针对不同的trigger类型,trigger配置会有所不同 ', 'description' => 'The configurations of the trigger. The configurations vary based on the trigger type. For more information about the format, see the following topics:'."\n" ."\n" .'* Object Storage Service (OSS) trigger: [OSSTriggerConfig](~~415697~~).'."\n" .'* Simple Log Service trigger: [LogTriggerConfig](~~415694~~).'."\n" .'* Time trigger: [TimeTriggerConfig](~~415712~~).'."\n" .'* HTTP trigger: [HTTPTriggerConfig](~~415685~~).'."\n" .'* Tablestore trigger: Specify the **SourceArn** parameter and leave this parameter empty.'."\n" .'* Alibaba Cloud CDN event trigger: [CDNEventsTriggerConfig](~~415674~~).'."\n" .'* MNS topic trigger: [MnsTopicTriggerConfig](~~415695~~).'."\n" .'* EventBridge triggers: [EventBridgeTriggerConfig](~~2508622~~).'."\n", 'type' => 'string', 'required' => false, 'example' => '{"events": ["oss:ObjectCreated:*"], "filter": {"key": {"prefix": "/prefix", "suffix": ".zip"}}}', ], 'description' => [ 'description' => 'The description of the trigger.'."\n", 'type' => 'string', 'required' => false, 'example' => 'trigger for test', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the request is initiated on the client. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-test-trace-id', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => 'trigger etag,用于更改trigger。以确保实际更改的trigger和期望更改的trigger是一致的', 'type' => 'string', 'example' => '5e547e5605e1dc17a78a6191bc18fbc5', ], ], ], 'schema' => [ 'title' => 'TriggerResponse', 'description' => 'The definition of the trigger.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the audio or video file was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T15:00:00.000+0000', ], 'invocationRole' => [ 'title' => '调用函数使用的RAM角色的ARN', 'description' => 'The ARN of the RAM role that is used by the event source to invoke the function.'."\n", 'type' => 'string', 'example' => 'acs:ram::123456xxxx:role/fc-test', ], 'lastModifiedTime' => [ 'title' => '上次修改时间', 'description' => 'The last modification time.'."\n", 'type' => 'string', 'example' => '016-08-15T17:00:00.000+0000', ], 'qualifier' => [ 'title' => 'service版本', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'example' => 'LATEST', ], 'sourceArn' => [ 'title' => 'event source的Aliyun Resource Name(ARN', 'description' => 'The ARN of the event source.'."\n", 'type' => 'string', 'example' => 'acs:oss:cn-shanghai:12345xxxx:mybucket', ], 'triggerConfig' => [ 'title' => 'trigger配置对象', 'description' => 'The configurations of the trigger. The configurations vary based on the trigger type.'."\n", 'type' => 'string', 'example' => '{"events": ["oss:ObjectCreated:*"], "filter": {"key": {"prefix": "/prefix", "suffix": ".zip"}}}', ], 'triggerName' => [ 'title' => 'trigger名称', 'description' => 'The name of the trigger.'."\n", 'type' => 'string', 'example' => 'demoTrigger', ], 'triggerType' => [ 'title' => 'trigger类型,如 oss, log, tablestore, timer, http, cdn_events, mns_topic', 'description' => 'The trigger type. Example values: **oss**, **log**, **tablestore**, **timer**, **http**, **cdn_events**, **mns_topic**, and **eventbridge**.'."\n", 'type' => 'string', 'example' => 'oss', ], 'description' => [ 'description' => 'The description of the trigger.'."\n", 'type' => 'string', 'example' => 'trigger for test', ], 'triggerId' => [ 'description' => 'The unique ID of the trigger.'."\n", 'type' => 'string', 'example' => '3e270f2f-cef2-421a-bc86-ff4e8088****', ], 'domainName' => [ 'title' => '域名名称,使用域名名称拼接上函数计算域名,可以采用HTTP协议调用到触发器对应版本的函数。例如{domainName}.cn-shanghai.fc.aliyuncs.com', 'description' => 'The domain name used to invoke the function by using HTTP. You can add this domain name as the prefix to the endpoint of Function Compute. This way, you can invoke the function that corresponds to the trigger by using HTTP. For example, `{domainName}.cn-shanghai.fc.aliyuncs.com`.'."\n", 'type' => 'string', 'example' => 'demo-service-demo-function-jkhksh', ], 'urlInternet' => [ 'title' => '公网域名地址。在互联网可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The public domain address. You can access HTTP triggers over the Internet by using HTTP or HTTPS.'."\n", 'type' => 'string', 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run', ], 'urlIntranet' => [ 'title' => '私网域名地址。在VPC可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The private endpoint. In a VPC, you can access HTTP triggers by using HTTP or HTTPS.'."\n", 'type' => 'string', 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run', ], 'status' => [ 'title' => '触发器当前状态,仅对EventBridge类型的触发器有效', 'description' => 'The current state of the trigger. This parameter is valid only for EventBridge-based triggers.'."\n", 'type' => 'string', 'example' => 'RUNNING', ], 'targetArn' => [ 'title' => '触发器关联的函数ResourceArn', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the function associated with the trigger.'."\n", 'type' => 'string', 'example' => 'acs:fc::123456xxxx:services/my-test-service.LATEST/functions/my-test-function', ], ], ], ], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2016-08-15T15:00:00.000+0000\\",\\n \\"invocationRole\\": \\"acs:ram::123456xxxx:role/fc-test\\",\\n \\"lastModifiedTime\\": \\"016-08-15T17:00:00.000+0000\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"sourceArn\\": \\"acs:oss:cn-shanghai:12345xxxx:mybucket\\",\\n \\"triggerConfig\\": \\"{\\\\\\"events\\\\\\": [\\\\\\"oss:ObjectCreated:*\\\\\\"], \\\\\\"filter\\\\\\": {\\\\\\"key\\\\\\": {\\\\\\"prefix\\\\\\": \\\\\\"/prefix\\\\\\", \\\\\\"suffix\\\\\\": \\\\\\".zip\\\\\\"}}}\\",\\n \\"triggerName\\": \\"demoTrigger\\",\\n \\"triggerType\\": \\"oss\\",\\n \\"description\\": \\"trigger for test\\",\\n \\"triggerId\\": \\"3e270f2f-cef2-421a-bc86-ff4e8088****\\",\\n \\"domainName\\": \\"demo-service-demo-function-jkhksh\\",\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\",\\n \\"status\\": \\"RUNNING\\",\\n \\"targetArn\\": \\"acs:fc::123456xxxx:services/my-test-service.LATEST/functions/my-test-function\\"\\n}","type":"json"}]', 'title' => 'UpdateTrigger', ], 'GetTrigger' => [ 'summary' => 'Queries the information about a trigger.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/triggers/{triggerName}', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22381', 'abilityTreeNodes' => [ 'FEATUREfc0CDUNQ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'triggerName', 'in' => 'path', 'schema' => [ 'title' => 'trigger名称', 'description' => 'The name of the trigger.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoTrigger', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the request is initiated on the client. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-test-trace-id', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => 'trigger etag,用于更改trigger。以确保实际更改的trigger和期望更改的trigger是一致的', 'type' => 'string', ], ], ], 'schema' => [ 'title' => 'TriggerResponse', 'description' => 'The details of the trigger.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the trigger was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T15:00:00.000+0000', ], 'invocationRole' => [ 'title' => '调用函数使用的RAM角色的ARN', 'description' => 'The ARN of the RAM role that is used by the event source to invoke the function.'."\n", 'type' => 'string', 'example' => 'acs:ram::123456xxxx:role/fc-test', ], 'lastModifiedTime' => [ 'title' => '上次修改时间', 'description' => 'The time when the trigger was last modified.'."\n", 'type' => 'string', 'example' => '016-08-15T17:00:00.000+0000', ], 'qualifier' => [ 'title' => 'service版本', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'example' => 'LATEST', ], 'sourceArn' => [ 'title' => 'event source的Aliyun Resource Name(ARN', 'description' => 'The ARN of the event source.'."\n", 'type' => 'string', 'example' => 'acs:oss:cn-shanghai:123456xxxx:mybucket', ], 'triggerConfig' => [ 'title' => 'trigger配置对象', 'description' => 'The configurations of the trigger. The configurations vary based on the trigger type. For more information about the format, see the following topics:'."\n" ."\n" .'* Object Storage Service (OSS) trigger: [OSSTriggerConfig](~~415697~~).'."\n" .'* Simple Log Service trigger: [LogTriggerConfig](~~415694~~).'."\n" .'* Time trigger: [TimeTriggerConfig](~~415712~~).'."\n" .'* HTTP trigger: [HTTPTriggerConfig](~~415685~~).'."\n" .'* Tablestore trigger: Specify the **SourceArn** parameter and leave this parameter empty.'."\n" .'* Alibaba Cloud CDN event trigger: [CDNEventsTriggerConfig](~~415674~~).'."\n" .'* Message Service (MNS) topic trigger: [MnsTopicTriggerConfig](~~415695~~).'."\n" .'* EventBridge triggers: [EventBridgeTriggerConfig](~~2508622~~).'."\n", 'type' => 'string', 'example' => '{"events": ["oss:ObjectCreated:*"], "filter": {"key": {"prefix": "/prefix", "suffix": ".zip"}}}', ], 'triggerName' => [ 'title' => 'trigger名称', 'description' => 'The name of the trigger.'."\n", 'type' => 'string', 'example' => 'demoTrigger', ], 'triggerType' => [ 'title' => 'trigger类型,如 oss, log, tablestore, timer, http, cdn_events, mns_topic', 'description' => 'The trigger type. Example values: **oss**, **log**, **tablestore**, **timer**, **http**, **cdn_events**, **mns_topic**, and **eventbridge**.'."\n", 'type' => 'string', 'example' => 'oss', ], 'description' => [ 'description' => 'The description of the trigger.'."\n", 'type' => 'string', 'example' => 'trigger for test', ], 'triggerId' => [ 'description' => 'The unique ID of the trigger.'."\n", 'type' => 'string', 'example' => '3e270f2f-cef2-421a-bc86-ff4e8088476a', ], 'domainName' => [ 'title' => '域名名称,使用域名名称拼接上函数计算域名,可以采用HTTP协议调用到触发器对应版本的函数。例如{domainName}.cn-shanghai.fc.aliyuncs.com', 'description' => 'The domain name used to invoke the function by using HTTP. You can add this domain name as the prefix to the endpoint of Function Compute. This way, you can invoke the function that corresponds to the trigger by using HTTP. For example, `{domainName}.cn-shanghai.fc.aliyuncs.com`.'."\n", 'type' => 'string', 'example' => 'demo-service-demo-function-jkhksh', ], 'urlInternet' => [ 'title' => '公网域名地址。在互联网可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The public domain address. You can access HTTP triggers over the Internet by using HTTP or HTTPS.'."\n", 'type' => 'string', 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run', ], 'urlIntranet' => [ 'title' => '私网域名地址。在VPC可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The private endpoint. In a VPC, you can access HTTP triggers by using HTTP or HTTPS.'."\n", 'type' => 'string', 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run', ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2022-10-20T02:52:03Z\\",\\n \\"invocationRole\\": \\"acs:ram::123456xxxx:role/fc-test\\",\\n \\"lastModifiedTime\\": \\"2022-10-20T03:17:09Z\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"sourceArn\\": \\"acs:oss:cn-shanghai:123456xxxx:mybucket\\",\\n \\"triggerConfig\\": \\"{\\\\\\"events\\\\\\": [\\\\\\"oss:ObjectCreated:*\\\\\\"], \\\\\\"filter\\\\\\": {\\\\\\"key\\\\\\": {\\\\\\"prefix\\\\\\": \\\\\\"/prefix\\\\\\", \\\\\\"suffix\\\\\\": \\\\\\".zip\\\\\\"}}}\\",\\n \\"triggerName\\": \\"demoTrigger\\",\\n \\"triggerType\\": \\"oss\\",\\n \\"description\\": \\"trigger for test\\",\\n \\"triggerId\\": \\"3e270f2f-cef2-421a-bc86-ff4e8088476a\\",\\n \\"domainName\\": \\"demo-service-demo-function-jkhksh\\",\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n}","type":"json"}]', 'title' => 'GetTrigger', ], 'ListTriggers' => [ 'summary' => 'Queries the triggers of a function.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/triggers', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22396', 'abilityTreeNodes' => [ 'FEATUREfc0CDUNQ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-function', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '限定此次返回资源的数量。如果不设定,默认返回20,最大不能超过100。返回结果可能小于指定的数量,但不会多于指定的数量', 'description' => 'The maximum number of resources to return. Default value: 20. Maximum value: 100. The number of returned resources is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的token从返回结果中获取', 'description' => 'The token required to obtain more results. You do not need to provide this parameter in the first call. The tokens for subsequent queries are obtained from the returned results.'."\n", 'type' => 'string', 'required' => false, 'example' => 'f-trigger', ], ], [ 'name' => 'prefix', 'in' => 'query', 'schema' => [ 'title' => '限定返回的资源名称必须以prefix作为前缀', 'description' => 'The prefix that the names of returned resources must contain.'."\n", 'type' => 'string', 'required' => false, 'example' => 'a', ], ], [ 'name' => 'startKey', 'in' => 'query', 'schema' => [ 'title' => '设定结果从startKey之后(包括startKey)按字母排序的第一个开始返回', 'description' => 'The returned resources are sorted in alphabetical order, and the resources that include and follow the resource specified by the startKey parameter are returned.'."\n", 'type' => 'string', 'required' => false, 'example' => 'a-trigger', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the request is initiated on the client. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-test-trace-id', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'ListTriggers response', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'nextToken' => [ 'title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果', 'description' => 'The token used to obtain more results. If this parameter is left empty, all the results are returned.'."\n", 'type' => 'string', 'example' => 'f-trigger', ], 'triggers' => [ 'title' => 'Trigger列表', 'description' => 'The information about triggers.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The details of the trigger.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the trigger was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T15:00:00.000+0000', ], 'invocationRole' => [ 'title' => '调用函数使用的RAM角色的ARN', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role that is used by the event source to invoke the function.'."\n", 'type' => 'string', 'example' => 'acs:ram::123456xxxx:role/fc-test', ], 'lastModifiedTime' => [ 'title' => '上次修改时间', 'description' => 'The time when the trigger was last modified.'."\n", 'type' => 'string', 'example' => '016-08-15T17:00:00.000+0000', ], 'qualifier' => [ 'title' => 'service版本', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'example' => 'LATEST', ], 'sourceArn' => [ 'title' => 'event source的Aliyun Resource Name(ARN', 'description' => 'The ARN of the event source.'."\n", 'type' => 'string', 'example' => 'acs:oss:cn-shanghai:123456xxxx:mybucket', ], 'triggerConfig' => [ 'title' => 'trigger配置对象', 'description' => 'The configurations of the trigger. The configurations vary based on the trigger type. For more information about the format, see the following topics:'."\n" ."\n" .'* Object Storage Service (OSS) trigger: [OSSTriggerConfig](~~415697~~).'."\n" .'* Simple Log Service trigger: [LogTriggerConfig](~~415694~~).'."\n" .'* Time trigger: [TimeTriggerConfig](~~415712~~).'."\n" .'* HTTP trigger: [HTTPTriggerConfig](~~415685~~).'."\n" .'* Tablestore trigger: Specify the **SourceArn** parameter and leave this parameter empty.'."\n" .'* Alibaba Cloud CDN event trigger: [CDNEventsTriggerConfig](~~73333~~).'."\n" .'* MNS topic trigger: [MnsTopicTriggerConfig](~~415695~~).'."\n" .'* EventBridge triggers: [EventBridgeTriggerConfig](~~333711~~).', 'type' => 'string', 'example' => '{"events": ["oss:ObjectCreated:*"], "filter": {"key": {"prefix": "/prefix", "suffix": ".zip"}}}', ], 'triggerName' => [ 'title' => 'trigger名称', 'description' => 'The name of the trigger.'."\n", 'type' => 'string', 'example' => 'demoTrigger', ], 'triggerType' => [ 'title' => 'trigger类型,如 oss, log, tablestore, timer, http, cdn_events, mns_topic', 'description' => 'The trigger type. Valid values: **oss**, **log**, **tablestore**, **timer**, **http**, **cdn_events**, **mns_topic**, and **eventbridge**.'."\n", 'type' => 'string', 'example' => 'oss', ], 'description' => [ 'description' => 'The description of the trigger.'."\n", 'type' => 'string', 'example' => 'trigger for test', ], 'triggerId' => [ 'description' => 'The unique ID of the trigger.'."\n", 'type' => 'string', 'example' => '3e270f2f-cef2-421a-bc86-ff4e8088****', ], 'domainName' => [ 'title' => '域名名称,使用域名名称拼接上函数计算域名,可以采用HTTP协议调用到触发器对应版本的函数。例如{domainName}.cn-shanghai.fc.aliyuncs.com', 'description' => 'The domain name used to invoke the function by using HTTP. You can add this domain name as the prefix to the endpoint of Function Compute. This way, you can invoke the function that corresponds to the trigger by using HTTP. Example: `{domainName}.cn-shanghai.fc.aliyuncs.com`.'."\n", 'type' => 'string', 'example' => 'demo-service-demo-function-jkhksh', ], 'urlInternet' => [ 'title' => '公网域名地址。在互联网可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The public endpoint. You can access HTTP triggers over the Internet by using HTTP or HTTPS.'."\n", 'type' => 'string', 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run', ], 'urlIntranet' => [ 'title' => '私网域名地址。在VPC可以通过HTTP协议或者HTTPS协议访问HTTP Trigger。', 'description' => 'The private endpoint. In a VPC, you can access HTTP triggers by using HTTP or HTTPS.'."\n", 'type' => 'string', 'example' => 'https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run', ], ], ], ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"f-trigger\\",\\n \\"triggers\\": [\\n {\\n \\"createdTime\\": \\"2022-10-20T02:52:03Z\\",\\n \\"invocationRole\\": \\"acs:ram::123456xxxx:role/fc-test\\",\\n \\"lastModifiedTime\\": \\"2022-10-20T03:17:09Z\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"sourceArn\\": \\"acs:oss:cn-shanghai:123456xxxx:mybucket\\",\\n \\"triggerConfig\\": \\"{\\\\\\"events\\\\\\": [\\\\\\"oss:ObjectCreated:*\\\\\\"], \\\\\\"filter\\\\\\": {\\\\\\"key\\\\\\": {\\\\\\"prefix\\\\\\": \\\\\\"/prefix\\\\\\", \\\\\\"suffix\\\\\\": \\\\\\".zip\\\\\\"}}}\\",\\n \\"triggerName\\": \\"demoTrigger\\",\\n \\"triggerType\\": \\"oss\\",\\n \\"description\\": \\"trigger for test\\",\\n \\"triggerId\\": \\"3e270f2f-cef2-421a-bc86-ff4e8088****\\",\\n \\"domainName\\": \\"demo-service-demo-function-jkhksh\\",\\n \\"urlInternet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run\\",\\n \\"urlIntranet\\": \\"https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListTriggers', ], 'CreateCustomDomain' => [ 'summary' => 'Adds a custom domain name.', 'path' => '/2021-04-06/custom-domains', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '34756', 'abilityTreeNodes' => [ 'FEATUREfcJ7WA06', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'description' => 'The definition of the domain name.'."\n", 'type' => 'object', 'properties' => [ 'domainName' => [ 'description' => 'The domain name. Enter a custom domain name that has obtained an Internet content provider (ICP) filing in the Alibaba Cloud ICP Filing system, or a custom domain name whose ICP filing information includes Alibaba Cloud as a service provider.'."\n", 'type' => 'string', 'required' => true, 'example' => 'example.com', ], 'protocol' => [ 'description' => 'The protocol types supported by the domain name. Valid values:'."\n" ."\n" .'* **HTTP**: Only HTTP is supported.'."\n" .'* **HTTPS**: Only HTTPS is supported.'."\n" .'* **HTTP,HTTPS**: Both HTTP and HTTPS are supported.'."\n", 'type' => 'string', 'required' => false, 'enumValueTitles' => [], 'example' => 'HTTP', ], 'routeConfig' => [ 'description' => 'The route table configurations. The route table maps paths to functions when the functions are invoked by using custom domain names.'."\n", 'required' => false, '$ref' => '#/components/schemas/RouteConfig', ], 'certConfig' => [ 'description' => 'The information about the HTTPS certificate.'."\n", 'required' => false, '$ref' => '#/components/schemas/CertConfig', ], 'tlsConfig' => [ 'description' => 'The TLS configurations.'."\n", 'required' => false, '$ref' => '#/components/schemas/TLSConfig', ], 'wafConfig' => [ 'description' => 'The Web Application Firewall (WAF) configurations.'."\n", 'required' => false, '$ref' => '#/components/schemas/WAFConfig', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the operation is called. The format is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The parameter returned.'."\n", 'type' => 'object', 'properties' => [ 'domainName' => [ 'title' => 'Id of the request', 'description' => 'The domain name.'."\n", 'type' => 'string', 'example' => 'example.com ', ], 'accountId' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'example' => '1986114****4305 ', ], 'protocol' => [ 'description' => 'The protocol types supported by the domain name. Valid values:'."\n" ."\n" .'* **HTTP**: Only HTTP is supported.'."\n" .'* **HTTPS**: Only HTTPS is supported.'."\n" .'* **HTTP,HTTPS**: HTTP and HTTPS are supported.'."\n", 'type' => 'string', 'example' => 'HTTP', ], 'certConfig' => [ 'description' => 'The HTTPS certificate configurations.'."\n", '$ref' => '#/components/schemas/CertConfig', ], 'tlsConfig' => [ 'description' => 'The Transport Layer Security (TLS) configurations.'."\n", '$ref' => '#/components/schemas/TLSConfig', ], 'apiVersion' => [ 'description' => 'The version of the API.'."\n", 'type' => 'string', 'example' => '2016-08-15 ', ], 'routeConfig' => [ 'description' => 'The configuration of the route table. The route table maps paths to functions when the functions are invoked by using custom domain names.'."\n", '$ref' => '#/components/schemas/RouteConfig', ], 'createdTime' => [ 'description' => 'The time when the domain name was added.'."\n", 'type' => 'string', 'example' => '2020-07-27T08:02:19Z ', ], 'lastModifiedTime' => [ 'description' => 'The time when the domain name was last modified.'."\n", 'type' => 'string', 'example' => '2020-07-27T08:02:19Z', ], 'wafConfig' => [ 'description' => 'The WAF configurations.'."\n", '$ref' => '#/components/schemas/WAFConfig', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domainName\\": \\"example.com\\\\t\\",\\n \\"accountId\\": \\"1986114****4305\\\\t\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"certConfig\\": {\\n \\"certName\\": \\"\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE----- xxxxx -----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY----- xxxxx -----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.0\\",\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"apiVersion\\": \\"2016-08-15\\\\t\\",\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"f1\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/login\\",\\n \\"qualifier\\": \\"prod\\",\\n \\"serviceName\\": \\"s1\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/js/(.*?)$\\",\\n \\"replacement\\": \\"/public/javascripts/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"createdTime\\": \\"2020-07-27T08:02:19Z\\\\t\\",\\n \\"lastModifiedTime\\": \\"2020-07-27T08:02:19Z\\",\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n }\\n}","type":"json"}]', 'title' => 'CreateCustomDomain', ], 'DeleteCustomDomain' => [ 'summary' => 'Deletes a custom domain name.', 'path' => '/2021-04-06/custom-domains/{domainName}', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '22385', 'abilityTreeNodes' => [ 'FEATUREfcJ7WA06', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'domainName', 'in' => 'path', 'schema' => [ 'title' => '域名名称', 'description' => 'The domain name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'example.com', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the API was called. Format: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 204 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteCustomDomain', ], 'UpdateCustomDomain' => [ 'summary' => 'Modifies a custom domain name.', 'path' => '/2021-04-06/custom-domains/{domainName}', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '34759', 'abilityTreeNodes' => [ 'FEATUREfcJ7WA06', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'domainName', 'in' => 'path', 'schema' => [ 'description' => 'The domain name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'example.com ', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'description' => 'The request body.'."\n", 'type' => 'object', 'properties' => [ 'protocol' => [ 'description' => 'The protocol types supported by the domain name. Valid values:'."\n" ."\n" .'* **HTTP**: Only HTTP is supported.'."\n" .'* **HTTPS**: Only HTTPS is supported.'."\n" .'* **HTTP,HTTPS**: Both HTTP and HTTPS are supported.'."\n", 'type' => 'string', 'required' => false, 'example' => 'HTTP', ], 'routeConfig' => [ 'description' => 'The route table configurations. The route table maps paths to functions when the functions are invoked by using custom domain names.'."\n", 'required' => false, '$ref' => '#/components/schemas/RouteConfig', ], 'certConfig' => [ 'description' => 'The HTTPS certificate configurations.'."\n", 'required' => false, '$ref' => '#/components/schemas/CertConfig', ], 'tlsConfig' => [ 'description' => 'The TLS configurations.'."\n", 'required' => false, '$ref' => '#/components/schemas/TLSConfig', ], 'wafConfig' => [ 'description' => 'The Web Application Firewall (WAF) configurations.'."\n", 'required' => false, '$ref' => '#/components/schemas/WAFConfig', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the operation is called. The format is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf*****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The information about the modified domain name.'."\n", 'type' => 'object', 'properties' => [ 'domainName' => [ 'description' => 'The domain name.'."\n", 'type' => 'string', 'example' => 'example.com ', ], 'accountId' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'example' => '1986114****4305 ', ], 'protocol' => [ 'description' => 'The protocol type that is supported by the custom domain name.'."\n" ."\n" .'* **HTTP**: Only HTTP is supported.'."\n" .'* **HTTPS**: Only HTTPS is supported.'."\n" .'* **HTTP,HTTPS**: HTTP and HTTPS are supported.'."\n", 'type' => 'string', 'example' => 'HTTP', ], 'apiVersion' => [ 'description' => 'The version of the API.'."\n", 'type' => 'string', 'example' => '2016-08-15 ', ], 'createdTime' => [ 'description' => 'The time when the custom domain name was created.'."\n", 'type' => 'string', 'example' => '2020-07-27T08:02:19Z ', ], 'lastModifiedTime' => [ 'description' => 'The time when the domain name was last modified.'."\n", 'type' => 'string', 'example' => '2020-07-27T08:02:19Z', ], 'certConfig' => [ 'description' => 'The HTTPS certificate configurations.'."\n", '$ref' => '#/components/schemas/CertConfig', ], 'routeConfig' => [ 'description' => 'The route table configurations. The route table maps paths to functions when the functions are invoked by using custom domain names.'."\n", '$ref' => '#/components/schemas/RouteConfig', ], 'tlsConfig' => [ 'description' => 'The TLS configurations.'."\n", '$ref' => '#/components/schemas/TLSConfig', ], 'wafConfig' => [ 'description' => 'The WAF configurations.'."\n", '$ref' => '#/components/schemas/WAFConfig', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domainName\\": \\"example.com\\\\t\\",\\n \\"accountId\\": \\"1986114****4305\\\\t\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"apiVersion\\": \\"2016-08-15\\\\t\\",\\n \\"createdTime\\": \\"2020-07-27T08:02:19Z\\\\t\\",\\n \\"lastModifiedTime\\": \\"2020-07-27T08:02:19Z\\",\\n \\"certConfig\\": {\\n \\"certName\\": \\"\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE----- xxxxx -----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY----- xxxxx -----END RSA PRIVATE KEY-----\\"\\n },\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"f1\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/login\\",\\n \\"qualifier\\": \\"prod\\",\\n \\"serviceName\\": \\"s1\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/js/(.*?)$\\",\\n \\"replacement\\": \\"/public/javascripts/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.0\\",\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n }\\n}","type":"json"}]', 'title' => 'UpdateCustomDomain', ], 'GetCustomDomain' => [ 'summary' => 'Queries the information about a custom domain name.', 'path' => '/2021-04-06/custom-domains/{domainName}', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '34758', 'abilityTreeNodes' => [ 'FEATUREfcJ7WA06', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'domainName', 'in' => 'path', 'schema' => [ 'description' => 'The domain name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'example.com ', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the operation is called. The format is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'r4isu4sls****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The response parameters.'."\n", 'type' => 'object', 'properties' => [ 'domainName' => [ 'title' => 'Id of the request', 'description' => 'The domain name.'."\n", 'type' => 'string', 'example' => 'example.com', ], 'accountId' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'example' => '2016-08-15 ', ], 'protocol' => [ 'description' => 'The protocol types supported by the domain name. Valid values:'."\n" ."\n" .'* **HTTP**: Only HTTP is supported.'."\n" .'* **HTTPS**: Only HTTPS is supported.'."\n" .'* **HTTP,HTTPS**: HTTP and HTTPS are supported.'."\n", 'type' => 'string', 'example' => 'HTTP', ], 'apiVersion' => [ 'description' => 'The version of the API.'."\n", 'type' => 'string', 'example' => '2016-08-15 ', ], 'createdTime' => [ 'description' => 'The time when the custom domain name was created.'."\n", 'type' => 'string', 'example' => '2020-07-27T08:02:19Z ', ], 'lastModifiedTime' => [ 'description' => 'The time when the domain name was last modified.'."\n", 'type' => 'string', 'example' => '2020-07-27T08:02:19Z ', ], 'certConfig' => [ 'description' => 'The HTTPS certificate configurations.'."\n", '$ref' => '#/components/schemas/CertConfig', ], 'tlsConfig' => [ 'description' => 'The Transport Layer Security (TLS) configurations.'."\n", '$ref' => '#/components/schemas/TLSConfig', ], 'routeConfig' => [ 'description' => 'The configuration of the route table. The route table maps paths to functions when the functions are invoked by using custom domain names.'."\n", '$ref' => '#/components/schemas/RouteConfig', ], 'wafConfig' => [ 'description' => 'The Web Application Firewall (WAF) configurations.'."\n", '$ref' => '#/components/schemas/WAFConfig', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domainName\\": \\"example.com\\",\\n \\"accountId\\": \\"2016-08-15\\\\t\\",\\n \\"protocol\\": \\"HTTP\\",\\n \\"apiVersion\\": \\"2016-08-15\\\\t\\",\\n \\"createdTime\\": \\"2020-07-27T08:02:19Z\\\\t\\",\\n \\"lastModifiedTime\\": \\"2020-07-27T08:02:19Z\\\\t\\",\\n \\"certConfig\\": {\\n \\"certName\\": \\"\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE----- xxxxx -----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY----- xxxxx -----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.0\\",\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"f1\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/login\\",\\n \\"qualifier\\": \\"prod\\",\\n \\"serviceName\\": \\"s1\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/js/(.*?)$\\",\\n \\"replacement\\": \\"/public/javascripts/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n }\\n}","type":"json"}]', 'title' => 'GetCustomDomain', ], 'ListCustomDomains' => [ 'summary' => 'Queries available custom domain names.', 'path' => '/2021-04-06/custom-domains', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '34757', 'abilityTreeNodes' => [ 'FEATUREfcJ7WA06', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'prefix', 'in' => 'query', 'schema' => [ 'description' => 'The prefix that the returned domain names must contain.'."\n", 'type' => 'string', 'required' => false, 'example' => 'prefix_text ', ], ], [ 'name' => 'startKey', 'in' => 'query', 'schema' => [ 'description' => 'The returned resources are sorted in alphabetical order, and the resources that include and follow the resource specified by the startKey parameter are returned.'."\n", 'type' => 'string', 'required' => false, 'example' => 'next_service ', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'description' => 'The pagination token to use to request the next page of results. If the number of resources exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'required' => false, 'example' => 'fc-thinkphp-demo.functioncompute.com ', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'description' => 'The maximum number of resources to return. Valid values: \\[0,100]. Default value: 20. The number of returned results is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the operation is called. The format is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf*****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The response parameters.'."\n", 'type' => 'object', 'properties' => [ 'nextToken' => [ 'description' => 'The pagination token to use to request the next page of results. If the number of resources exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'example' => 'example.com', ], 'customDomains' => [ 'description' => 'The list of domain names.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The domain name information.'."\n", 'type' => 'object', 'properties' => [ 'domainName' => [ 'description' => 'The domain name.'."\n", 'type' => 'string', 'example' => 'example.com ', ], 'accountId' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'example' => '1986114****4305 ', ], 'protocol' => [ 'description' => 'The protocol type that is supported by the custom domain name. Valid values:'."\n" ."\n" .'* **HTTP**: Only HTTP is supported.'."\n" .'* **HTTPS**: Only HTTPS is supported.'."\n" .'* **HTTP,HTTPS**: Both HTTP and HTTPS are supported.'."\n", 'type' => 'string', 'example' => 'HTTP ', ], 'apiVersion' => [ 'description' => 'The version of the API.'."\n", 'type' => 'string', 'example' => '2016-08-15 ', ], 'createdTime' => [ 'description' => 'The time when the custom domain name was created.'."\n", 'type' => 'string', 'example' => '2020-07-27T08:02:19Z ', ], 'lastModifiedTime' => [ 'description' => 'The last time when the domain name was updated.'."\n", 'type' => 'string', 'example' => '2020-07-27T08:02:19Z ', ], 'certConfig' => [ 'description' => 'The HTTPS certificate configurations.'."\n", '$ref' => '#/components/schemas/CertConfig', ], 'tlsConfig' => [ 'description' => 'The Transport Layer Security (TLS) configurations.'."\n", '$ref' => '#/components/schemas/TLSConfig', ], 'routeConfig' => [ 'description' => 'The route table configurations. The route table maps paths to functions when the functions are invoked by using custom domain names.'."\n", '$ref' => '#/components/schemas/RouteConfig', ], 'wafConfig' => [ 'description' => 'The Web Application Firewall (WAF) configurations.'."\n", '$ref' => '#/components/schemas/WAFConfig', ], ], ], ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"example.com\\",\\n \\"customDomains\\": [\\n {\\n \\"domainName\\": \\"example.com\\\\t\\",\\n \\"accountId\\": \\"1986114****4305\\\\t\\",\\n \\"protocol\\": \\"HTTP\\\\t\\",\\n \\"apiVersion\\": \\"2016-08-15\\\\t\\",\\n \\"createdTime\\": \\"2020-07-27T08:02:19Z\\\\t\\",\\n \\"lastModifiedTime\\": \\"2020-07-27T08:02:19Z\\\\t\\",\\n \\"certConfig\\": {\\n \\"certName\\": \\"\\",\\n \\"certificate\\": \\"-----BEGIN CERTIFICATE----- xxxxx -----END CERTIFICATE-----\\",\\n \\"privateKey\\": \\"-----BEGIN RSA PRIVATE KEY----- xxxxx -----END RSA PRIVATE KEY-----\\"\\n },\\n \\"tlsConfig\\": {\\n \\"minVersion\\": \\"TLSv1.0\\",\\n \\"cipherSuites\\": [\\n \\"TLS_RSA_WITH_RC4_128_SHA\\"\\n ],\\n \\"maxVersion\\": \\"TLSv1.3\\"\\n },\\n \\"routeConfig\\": {\\n \\"routes\\": [\\n {\\n \\"functionName\\": \\"f1\\",\\n \\"methods\\": [\\n \\"GET\\"\\n ],\\n \\"path\\": \\"/login\\",\\n \\"qualifier\\": \\"prod\\",\\n \\"serviceName\\": \\"s1\\",\\n \\"rewriteConfig\\": {\\n \\"equalRules\\": [\\n {\\n \\"match\\": \\"/old\\",\\n \\"replacement\\": \\"/new\\"\\n }\\n ],\\n \\"wildcardRules\\": [\\n {\\n \\"match\\": \\"/api/*\\",\\n \\"replacement\\": \\"/$1\\"\\n }\\n ],\\n \\"regexRules\\": [\\n {\\n \\"match\\": \\"^/js/(.*?)$\\",\\n \\"replacement\\": \\"/public/javascripts/$1\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"wafConfig\\": {\\n \\"enableWAF\\": true\\n }\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListCustomDomains', ], 'CreateAlias' => [ 'summary' => 'Creates an alias.', 'path' => '/2021-04-06/services/{serviceName}/aliases', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '22376', 'abilityTreeNodes' => [ 'FEATUREfcI9H8B8', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'allowEmptyValue' => false, 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'service_name', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => '别名', 'description' => 'The definition of the alias.'."\n", 'type' => 'object', 'properties' => [ 'additionalVersionWeight' => [ 'title' => '额外版本权重', 'description' => 'The canary release version to which the alias points and the weight of the canary release version.'."\n" ."\n" .'* The canary release version takes effect only when the function is invoked.'."\n" .'* The value consists of a version number and the corresponding weight. For example, 2:0.05 indicates that Version 2 is the canary release version and 5% of traffic is directed to the canary release version when the function is invoked. 95% of traffic is directed to the main version.'."\n", 'type' => 'object', 'required' => false, 'additionalProperties' => [ 'type' => 'number', 'format' => 'float', 'example' => '1', 'description' => 'The traffic weight. Valid values: 0 to 1.'."\n", ], ], 'aliasName' => [ 'title' => '别名名称', 'description' => 'The name of the alias. The value can contain only letters, digits, underscores (\\_) and hyphens (-). It cannot start with a digit or hyphen (-). It must be 1 to 128 characters in length and cannot be **LATEST**.'."\n", 'type' => 'string', 'required' => true, 'example' => 'alias_test', ], 'description' => [ 'title' => '别名描述', 'description' => 'The description of the alias.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test_description', ], 'versionId' => [ 'title' => '版本ID', 'description' => 'The ID of the version to which the alias points.'."\n", 'type' => 'string', 'required' => true, 'example' => '1', ], 'resolvePolicy' => [ 'title' => '灰度方式:随机灰度或者规则灰度,默认值为随机灰度'."\n" .'枚举值:'."\n" .'Random'."\n" .'Content', 'description' => 'The canary release mode. Valid values:'."\n" ."\n" .'* **Random**: random canary release.'."\n" .'* **Content**: rule-based canary release. Default value: null.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Random', 'default' => 'Random', ], 'routePolicy' => [ 'title' => '灰度规则:满足灰度规则条件的流量,会被路由至灰度实例', 'description' => 'The canary release rule. Traffic that meets the canary release rule is routed to the canary release instance.'."\n", 'required' => false, '$ref' => '#/components/schemas/RoutePolicy', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the invocation request of Function Compute.'."\n", 'type' => 'string', 'required' => false, 'example' => 'r9s89isisi****', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'etag' => [ 'schema' => [ 'type' => 'string', ], ], ], 'schema' => [ 'title' => '别名定义', 'description' => 'The definition of the alias.'."\n", 'type' => 'object', 'properties' => [ 'additionalVersionWeight' => [ 'title' => '额外版本权重', 'description' => 'The additional version to which the alias points and the weight of the additional version.'."\n" ."\n" .'* The additional version takes effect only when the function is invoked.'."\n" .'* The value consists of a version number and a specific weight. For example, 2:0.05 indicates that when a function is invoked, Version 2 is the canary release version, 5% of the traffic is distributed to the canary release version, and 95% of the traffic is distributed to the major version.'."\n", 'type' => 'object', 'additionalProperties' => [ 'type' => 'number', 'format' => 'float', 'example' => '1', 'description' => 'The traffic weight. Valid values: 0 to 1.'."\n", ], ], 'aliasName' => [ 'title' => '别名名称', 'description' => 'The name of the alias.'."\n", 'type' => 'string', 'example' => 'alias_test', ], 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the alias was created.'."\n", 'type' => 'string', 'example' => '2020-04-23T06:32:43Z', ], 'description' => [ 'title' => '别名描述', 'description' => 'The description of the alias.'."\n", 'type' => 'string', 'example' => 'test_description', ], 'lastModifiedTime' => [ 'title' => '上次更新时间', 'description' => 'The time when the alias was last modified.'."\n", 'type' => 'string', 'example' => '2020-04-23T06:32:43Z', ], 'versionId' => [ 'title' => '版本ID', 'description' => 'The ID of the version to which the alias points.'."\n", 'type' => 'string', 'example' => '1', ], 'resolvePolicy' => [ 'description' => 'The canary release mode. Default values: off. Valid values:'."\n" ."\n" .'* **Random**: random canary release.'."\n" .'* **Content**: rule-based canary release.'."\n", 'type' => 'string', 'example' => 'Random', ], 'routePolicy' => [ 'description' => 'The canary release rule. The traffic that meets the conditions of the canary release rule is diverted to the canary release instances.'."\n", '$ref' => '#/components/schemas/RoutePolicy', ], ], ], ], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 1\\n },\\n \\"aliasName\\": \\"alias_test\\",\\n \\"createdTime\\": \\"2020-04-23T06:32:43Z\\",\\n \\"description\\": \\"test_description\\",\\n \\"lastModifiedTime\\": \\"2020-04-23T06:32:43Z\\",\\n \\"versionId\\": \\"1\\",\\n \\"resolvePolicy\\": \\"Random\\",\\n \\"routePolicy\\": {\\n \\"condition\\": \\"AND\\",\\n \\"policyItems\\": [\\n {\\n \\"type\\": \\"Header\\",\\n \\"key\\": \\"x-test-uid\\",\\n \\"value\\": \\"11111\\",\\n \\"operator\\": \\"=\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 1\\n \\n alias_test\\n 2020-04-23T06:32:43Z\\n test_description\\n 2020-04-23T06:32:43Z\\n 1\\n","errorExample":""}]', 'title' => 'CreateAlias', ], 'DeleteAlias' => [ 'summary' => 'Deletes an alias.', 'path' => '/2021-04-06/services/{serviceName}/aliases/{aliasName}', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '22392', 'abilityTreeNodes' => [ 'FEATUREfcI9H8B8', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'aliasName', 'in' => 'path', 'schema' => [ 'title' => '别名', 'description' => 'The alias.'."\n", 'type' => 'string', 'required' => true, 'example' => 'test', ], ], [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'description' => 'If the ETag specified in a request matches the ETag value of the object, OSS transmits the object and returns 200 OK. If the ETag specified in a request does not match the ETag value of the object, OSS returns 412 Precondition Failed.'."\n" ."\n" .'The ETag value of a resource is used to check whether the resource has changed. You can check data integrity by using the ETag value. Default value: null.'."\n", 'type' => 'string', 'required' => false, 'example' => 'e19d5cd5af0378da05f63f891c7467af', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'r9s89isisi****', ], ], ], 'responses' => [ 204 => [], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteAlias', ], 'UpdateAlias' => [ 'summary' => 'Updates an alias.', 'path' => '/2021-04-06/services/{serviceName}/aliases/{aliasName}', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '22409', 'abilityTreeNodes' => [ 'FEATUREfcI9H8B8', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'aliasName', 'in' => 'path', 'schema' => [ 'title' => '别名', 'description' => 'The name of the alias.'."\n", 'type' => 'string', 'required' => true, 'example' => 'alias_test', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => '别名', 'description' => 'The definition of the alias.'."\n", 'type' => 'object', 'properties' => [ 'additionalVersionWeight' => [ 'title' => '额外版本权重', 'description' => 'The canary release version to which the alias points and the weight of the canary release version.'."\n" ."\n" .'* The canary release version takes effect only when the function is invoked.'."\n" .'* The value consists of a version number and the corresponding weight. For example, 2:0.05 indicates that Version 2 is the canary release version and 5% of the traffic is routed to the canary release version when the function is invoked. The remaining 95% traffic is routed to the main version.'."\n", 'type' => 'object', 'required' => false, 'additionalProperties' => [ 'type' => 'number', 'format' => 'float', 'example' => '1', 'description' => 'The traffic weight. Valid values: 0 to 1.'."\n", ], ], 'description' => [ 'title' => '别名描述', 'description' => 'The description of the alias.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test_description', ], 'versionId' => [ 'title' => '版本ID', 'description' => 'The ID of the version to which the alias points.'."\n", 'type' => 'string', 'required' => false, 'example' => '1', ], 'resolvePolicy' => [ 'title' => '灰度方式:随机灰度或者规则灰度,默认值为随机灰度'."\n" .'枚举值:'."\n" .'Random'."\n" .'Content', 'description' => 'The canary release mode. Default values: off. Valid values:'."\n" ."\n" .'* **Random**: random canary release.'."\n" .'* **Content**: rule-based canary release.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Random', 'default' => 'Content', ], 'routePolicy' => [ 'title' => '灰度规则:满足灰度规则条件的流量,会被路由至灰度实例', 'description' => 'The canary release rule. Traffic that meets the canary release rule is routed to the canary release instance.'."\n", 'required' => false, '$ref' => '#/components/schemas/RoutePolicy', ], ], 'required' => false, ], ], [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'description' => 'If the ETag specified in the request matches the ETag value of the object, the object and 200 OK are returned. Otherwise, 412 Precondition Failed is returned.'."\n" ."\n" .'The ETag value of an object is used to check data integrity of the object. This parameter is empty by default.'."\n", 'type' => 'string', 'required' => false, 'example' => 'e19d5cd5af0378da05f63f891c7467af', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the invocation request of Function Compute.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'type' => 'string', ], ], ], 'schema' => [ 'title' => '别名定义', 'description' => 'The definition of the alias.'."\n", 'type' => 'object', 'properties' => [ 'additionalVersionWeight' => [ 'title' => '额外版本权重', 'description' => 'The additional version to which the alias points and the weight of the additional version.'."\n" ."\n" .'* The additional version takes effect only when the function is invoked.'."\n" .'* The value consists of a version number and a specific weight. For example, 2:0.05 indicates that when a function is invoked, Version 2 is the canary release version, 5% of the traffic is distributed to the canary release version, and 95% of the traffic is distributed to the major version.'."\n", 'type' => 'object', 'additionalProperties' => [ 'type' => 'number', 'format' => 'float', 'example' => '1', 'description' => 'The traffic weight. Valid values: 0 to 1.'."\n", ], ], 'aliasName' => [ 'title' => '别名名称', 'description' => 'The name of the alias.'."\n", 'type' => 'string', 'example' => 'test', ], 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the alias was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], 'description' => [ 'title' => '别名描述', 'description' => 'The description of the alias.'."\n", 'type' => 'string', 'example' => 'test_description', ], 'lastModifiedTime' => [ 'title' => '上次更新时间', 'description' => 'The time when the alias was last modified.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], 'versionId' => [ 'title' => '版本ID', 'description' => 'The ID of the version to which the alias points.'."\n", 'type' => 'string', 'example' => '1', ], 'resolvePolicy' => [ 'description' => 'The canary release mode. Default values: off. Valid values:'."\n" ."\n" .'* **Random**: random canary release.'."\n" .'* **Content**: rule-based canary release.'."\n", 'type' => 'string', 'example' => 'Random', ], 'routePolicy' => [ 'description' => 'The canary release rule. The traffic that meets the conditions of the canary release rule is diverted to the canary release instances.'."\n", '$ref' => '#/components/schemas/RoutePolicy', ], ], ], ], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 1\\n },\\n \\"aliasName\\": \\"test\\",\\n \\"createdTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"description\\": \\"test_description\\",\\n \\"lastModifiedTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"versionId\\": \\"1\\",\\n \\"resolvePolicy\\": \\"Random\\",\\n \\"routePolicy\\": {\\n \\"condition\\": \\"AND\\",\\n \\"policyItems\\": [\\n {\\n \\"type\\": \\"Header\\",\\n \\"key\\": \\"x-test-uid\\",\\n \\"value\\": \\"11111\\",\\n \\"operator\\": \\"=\\"\\n }\\n ]\\n }\\n}","type":"json"}]', 'title' => 'UpdateAlias', ], 'GetAlias' => [ 'summary' => 'Queries information about an alias.', 'path' => '/2021-04-06/services/{serviceName}/aliases/{aliasName}', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22412', 'abilityTreeNodes' => [ 'FEATUREfcI9H8B8', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'service_name', ], ], [ 'name' => 'aliasName', 'in' => 'path', 'schema' => [ 'title' => '别名', 'description' => 'The name of the alias.'."\n", 'type' => 'string', 'required' => true, 'example' => 'alias_test', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the invocation request of Function Compute.'."\n", 'type' => 'string', 'required' => false, 'example' => 'r4isu4sls****', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'type' => 'string', ], ], ], 'schema' => [ 'title' => '别名定义', 'description' => 'The definition of the alias.'."\n", 'type' => 'object', 'properties' => [ 'additionalVersionWeight' => [ 'title' => '额外版本权重', 'description' => 'The additional version to which the alias points and the weight of the additional version.'."\n" ."\n" .'* The additional version takes effect only when the function is invoked.'."\n" .'* The value consists of a version number and a specific weight. For example, 2:0.05 indicates that when a function is invoked, Version 2 is the canary release version, 5% of the traffic is distributed to the canary release version, and 95% of the traffic is distributed to the major version.'."\n", 'type' => 'object', 'additionalProperties' => [ 'type' => 'number', 'format' => 'float', 'description' => 'The traffic weight. Valid values: 0 to 1.'."\n", 'example' => '1', ], ], 'aliasName' => [ 'title' => '别名名称', 'description' => 'The name of the alias.'."\n", 'type' => 'string', 'example' => 'alias_test', ], 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the alias was created.'."\n", 'type' => 'string', 'example' => '2020-07-27T06:37:29Z', ], 'description' => [ 'title' => '别名描述', 'description' => 'The description of the alias.'."\n", 'type' => 'string', 'example' => 'test_description', ], 'lastModifiedTime' => [ 'title' => '上次更新时间', 'description' => 'The time when the alias was last modified.'."\n", 'type' => 'string', 'example' => '2020-07-27T06:37:29Z', ], 'versionId' => [ 'title' => '版本ID', 'description' => 'The version to which the alias points.'."\n", 'type' => 'string', 'example' => '2', ], 'resolvePolicy' => [ 'title' => '灰度方式:随机灰度或者规则灰度,默认值为随机灰度'."\n" .'枚举值:'."\n" .'Random'."\n" .'Content', 'description' => 'The canary release mode. Valid values:'."\n" ."\n" .'* **Random**: random canary release. This is the default value.'."\n" .'* **Content**: rule-based canary release.'."\n", 'type' => 'string', 'example' => 'Random', 'default' => 'Content', ], 'routePolicy' => [ 'title' => '灰度规则:满足灰度规则条件的流量,会被路由至灰度实例', 'description' => 'The canary release rule. Traffic that meets the canary release rule is routed to the canary release instance.'."\n", '$ref' => '#/components/schemas/RoutePolicy', ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 1\\n },\\n \\"aliasName\\": \\"alias_test\\",\\n \\"createdTime\\": \\"2020-07-27T06:37:29Z\\",\\n \\"description\\": \\"test_description\\",\\n \\"lastModifiedTime\\": \\"2020-07-27T06:37:29Z\\",\\n \\"versionId\\": \\"2\\",\\n \\"resolvePolicy\\": \\"Random\\",\\n \\"routePolicy\\": {\\n \\"condition\\": \\"AND\\",\\n \\"policyItems\\": [\\n {\\n \\"type\\": \\"Header\\",\\n \\"key\\": \\"x-test-uid\\",\\n \\"value\\": \\"11111\\",\\n \\"operator\\": \\"=\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 1\\n \\n alias_test\\n 2020-07-27T06:37:29Z\\n test_description\\n 2020-07-27T06:37:29Z\\n 2\\n","errorExample":""}]', 'title' => 'GetAlias', ], 'ListAliases' => [ 'summary' => 'Queries all aliases of a service.', 'path' => '/2021-04-06/services/{serviceName}/aliases', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22388', 'abilityTreeNodes' => [ 'FEATUREfcI9H8B8', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '最多返回个数', 'description' => 'The maximum number of resources to return. Default value: 20. Maximum value: 100. The number of returned resources is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'title' => '下次查询token', 'description' => 'The token required to obtain more results. If the number of resources exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'required' => false, 'example' => 'caeba0be03****f84eb48b699f0a4883', ], ], [ 'name' => 'prefix', 'in' => 'query', 'schema' => [ 'title' => '前缀', 'description' => 'The prefix that the names of returned resources must contain.'."\n", 'type' => 'string', 'required' => false, 'example' => 'prefix_text', ], ], [ 'name' => 'startKey', 'in' => 'query', 'schema' => [ 'title' => '起始key', 'description' => 'The starting position of the result list. The returned resources are sorted in alphabetical order, and the resources that include and follow the resource specified by the startKey parameter are returned.'."\n", 'type' => 'string', 'required' => false, 'example' => 'nextkey', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the invocation request of Function Compute.'."\n", 'type' => 'string', 'required' => false, 'example' => 'r9s89isisi****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '查询别名响应', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'aliases' => [ 'title' => '别名列表', 'description' => 'The list of aliases.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The definition of the alias.'."\n", 'type' => 'object', 'properties' => [ 'additionalVersionWeight' => [ 'title' => '额外版本权重', 'description' => 'The additional version to which the alias points and the weight of the additional version.'."\n" ."\n" .'* The additional version takes effect only when the function is invoked.'."\n" .'* The value consists of a version number and a specific weight. For example, 2:0.05 indicates that when a function is invoked, Version 2 is the canary release version, 5% of the traffic is distributed to the canary release version, and 95% of the traffic is distributed to the major version.'."\n", 'type' => 'object', 'additionalProperties' => [ 'type' => 'number', 'format' => 'float', 'description' => 'The traffic weight. Valid values: 0 to 1.'."\n", 'example' => '1', ], ], 'aliasName' => [ 'title' => '别名名称', 'description' => 'The name of the alias.'."\n", 'type' => 'string', 'example' => 'test', ], 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the ConfigMaps were created.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], 'description' => [ 'title' => '别名描述', 'description' => 'The description of the alias.'."\n", 'type' => 'string', 'example' => 'Sample alias.'."\n", ], 'lastModifiedTime' => [ 'title' => '上次更新时间', 'description' => 'The time at which the system parameter was last modified.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], 'versionId' => [ 'title' => '版本ID', 'description' => 'The ID of the version.'."\n", 'type' => 'string', 'example' => '1', ], 'resolvePolicy' => [ 'title' => '灰度方式:随机灰度或者规则灰度,默认值为随机灰度'."\n" .'枚举值:'."\n" .'Random'."\n" .'Content', 'description' => 'The canary release mode. Default value: Random. Valid values:'."\n" ."\n" .'* **Random**: random canary release.'."\n" .'* **Content**: rule-based canary release.', 'type' => 'string', 'example' => 'Random', 'default' => 'Content', ], 'routePolicy' => [ 'title' => '灰度规则:满足灰度规则条件的流量,会被路由至灰度实例', 'description' => 'The canary release rule. Traffic that meets the canary release rule is routed to the canary release instances.'."\n", '$ref' => '#/components/schemas/RoutePolicy', ], ], ], ], 'nextToken' => [ 'title' => '下次查询token', 'description' => 'The token used to obtain more results.'."\n", 'type' => 'string', 'example' => '8bj81uI8n****', ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"aliases\\": [\\n {\\n \\"additionalVersionWeight\\": {\\n \\"key\\": 1\\n },\\n \\"aliasName\\": \\"test\\",\\n \\"createdTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"description\\": \\"这是一个示例别名\\",\\n \\"lastModifiedTime\\": \\"2016-08-15T16:06:05.000+0000\\",\\n \\"versionId\\": \\"1\\",\\n \\"resolvePolicy\\": \\"Random\\",\\n \\"routePolicy\\": {\\n \\"condition\\": \\"AND\\",\\n \\"policyItems\\": [\\n {\\n \\"type\\": \\"Header\\",\\n \\"key\\": \\"x-test-uid\\",\\n \\"value\\": \\"11111\\",\\n \\"operator\\": \\"=\\"\\n }\\n ]\\n }\\n }\\n ],\\n \\"nextToken\\": \\"8bj81uI8n****\\"\\n}","type":"json"}]', 'title' => 'ListAliases', ], 'CreateFunction' => [ 'summary' => 'Creates a function.', 'path' => '/2021-04-06/services/{serviceName}/functions', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '22377', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'serviceName', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'function', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => '函数结构体', 'description' => 'The definition of the function.'."\n", 'type' => 'object', 'properties' => [ 'code' => [ 'description' => 'The ZIP package of function code. Configure either **code** or **customContainerConfig**.'."\n", 'required' => false, '$ref' => '#/components/schemas/Code', ], 'customContainerConfig' => [ 'description' => 'The configurations of the Custom Container runtime. After you configure the Custom Container runtime, Function Compute can execute the function in a container that is created from a custom image. Configure either **code** or **customContainerConfig**.'."\n", 'required' => false, '$ref' => '#/components/schemas/CustomContainerConfig', ], 'layers' => [ 'title' => '层列表', 'description' => 'The layers.'."\n" ."\n" .'> Multiple layers are merged in the order determined by their array subscripts, from largest to smallest. When there are files with the same name, the content from the layer with the smaller subscript will overwrite the corresponding file in the layer with the larger subscript.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the layer. The format is acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}.'."\n", 'type' => 'string', 'required' => false, 'example' => 'layerName', ], 'required' => false, ], 'description' => [ 'title' => '函数描述', 'description' => 'The description of the function.'."\n", 'type' => 'string', 'required' => false, 'example' => 'function-description', ], 'functionName' => [ 'title' => '函数名称', 'description' => 'The name of the function. The name must be 1 to 64 characters in length, and can contain only letters, digits, underscores (\\_), and hyphens (-). It cannot begin with a digit or a hyphen (-).'."\n", 'type' => 'string', 'required' => true, 'example' => 'functionName', ], 'handler' => [ 'title' => 'function执行的入口,具体格式和语言相关', 'description' => 'The handler of the function. The format varies based on the programming language you use. For more information, see [Function handlers](~~157704~~).'."\n", 'type' => 'string', 'required' => true, 'example' => 'index.handler', ], 'initializationTimeout' => [ 'title' => '初始化function运行的超时时间,单位为秒,最小1秒,默认3秒。初始化function超过这个时间后会被终止执行', 'description' => 'The timeout period for the Initializer hook. Unit: seconds. Default value: 3. Valid values: 1 to 300. The execution of the Initializer hook is terminated once the timeout period expires.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', ], 'initializer' => [ 'title' => '初始化 function 执行的入口,具体格式和语言相关', 'description' => 'The Initializer hook. For more information, see [Initializer hooks](~~157704~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'index.initializer', ], 'memorySize' => [ 'title' => 'function的内存规格,单位为MB,为64MB的倍数', 'description' => 'The memory capacity for the function. Unit: MB. The memory capacity must be a multiple of 64 MB. The capacity varies based on the type of the function instance. For more information, see [Instance types](~~179379~~).'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512', ], 'runtime' => [ 'title' => 'function运行的语言环境,目前支持nodejs6, nodejs8, python2.7, python3, java8', 'description' => 'The runtime of the function. Valid values: **nodejs20**, **nodejs18**, **nodejs16**, **nodejs14**, **nodejs12**, **nodejs10**, **nodejs8**, **nodejs6**, **nodejs4.4**, **python3.10**, **python3.9**, **python3**, **python2.7**, **java11**, **java8**, **go1**, **php7.2**, **dotnetcore3.1**, **dotnetcore2.1**, **custom.debian10**, **custom**, and **custom-container**.******** For more information, see [Runtimes that are supported by Function Compute](~~73338~~).'."\n", 'type' => 'string', 'required' => true, 'example' => 'python3.9', ], 'timeout' => [ 'title' => 'function运行的超时时间,单位为秒,最小1秒,默认3秒。function超过这个时间后会被终止执行', 'description' => 'The timeout period for function execution. Unit: seconds. Minimum value: 1. Default value: 3. The execution of the function is terminated once the timeout period expires.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', ], 'caPort' => [ 'title' => '自定义、自定义容器运行时 HTTP Server 的监听端口', 'description' => 'The listening port of the HTTP server in a custom runtime or a Custom Container runtime.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '9000', ], 'environmentVariables' => [ 'description' => 'The environment variables configured for the function. You can obtain the values of the environment variables from the function. For more information, see [Environment variables](~~69777~~).'."\n", 'type' => 'object', 'required' => false, 'additionalProperties' => [ 'type' => 'string', 'description' => 'The configurations of environment variables.'."\n", 'example' => '{"key":"value"}', ], ], 'instanceConcurrency' => [ 'description' => 'The maximum number of requests that a function instance can process at a time.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', ], 'instanceSoftConcurrency' => [ 'description' => 'The soft concurrency of the instance. You can use this property to implement graceful scale-out of instances. When the number of concurrent requests exceeds the instance\'s soft concurrency limit, scale-out is triggered. If your instance has a long startup time, you can specify a soft concurrency value to initiate the instance in advance.'."\n" ."\n" .'The value must be less than or equal to that of **instanceConcurrency**.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5', ], 'instanceType' => [ 'description' => 'The instance type of the function. Valid values:'."\n" ."\n" .'* **e1**: elastic instance'."\n" .'* **c1**: performance instance'."\n" .'* **fc.gpu.tesla.1**: GPU-accelerated instance utilizing Tesla series GPUs'."\n" .'* **fc.gpu.ampere.1**: GPU-accelerated instances utilizing Ampere series GPUs'."\n" .'* **fc.gpu.ada.1**: GPU-accelerated instances utilizing Ada series GPUs'."\n" .'* **g1**: same as **fc.gpu.tesla.1**'."\n" ."\n" .'Default value: e1'."\n", 'type' => 'string', 'required' => false, 'example' => 'e1', ], 'customRuntimeConfig' => [ 'title' => 'Custom Runtime函数详细配置', 'description' => 'The configurations of the custom runtime function.'."\n", 'required' => false, '$ref' => '#/components/schemas/CustomRuntimeConfig', ], 'instanceLifecycleConfig' => [ 'description' => 'The lifecycle configurations of the instance.'."\n", 'required' => false, '$ref' => '#/components/schemas/InstanceLifecycleConfig', ], 'customDNS' => [ 'title' => '函数自定义DNS配置', 'description' => 'The custom Domain Name System (DNS) settings of the function.'."\n", 'required' => false, '$ref' => '#/components/schemas/CustomDNS', ], 'customHealthCheckConfig' => [ 'title' => '函数自定义健康检查配置,仅适用于Custom runtime/container', 'description' => 'The custom health check configurations of the function. This parameter is applicable only to custom runtimes and Custom Container runtimes.'."\n", 'required' => false, '$ref' => '#/components/schemas/CustomHealthCheckConfig', ], 'cpu' => [ 'title' => 'function的CPU规格,单位为vCPU,为0.05vCPU的倍数', 'description' => 'The CPU size of the function. Unit: vCPUs. The value is a multiple of 0.05.'."\n", 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1.5', ], 'diskSize' => [ 'title' => 'function的磁盘规格,单位为MB,可选值为512MB或10240MB', 'description' => 'The disk size of the function. Unit: MB. Valid values: 512 and 10240.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512', ], 'gpuMemorySize' => [ 'title' => 'function的GPU显存规格,单位为MB,为1024MB的倍数', 'description' => 'The GPU memory size of the function. Unit: MB. The value is a multiple of 1024.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2048', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Code-Checksum', 'in' => 'header', 'schema' => [ 'description' => 'The CRC-64 value of the function code package.'."\n", 'type' => 'string', 'required' => false, 'example' => '1506052139770049xxxx', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request. The value is the same as that of the requestId parameter in the response.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test-trace-id', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => 'function etag,用于更改function。以确保实际更改的function和期望更改的function是一致的.', 'type' => 'string', ], ], ], 'schema' => [ 'title' => 'FunctionResponse', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'codeChecksum' => [ 'title' => 'function code包的CRC64值', 'description' => 'The CRC-64 value of the function code package.'."\n", 'type' => 'string', 'example' => '5434025278388143772', ], 'codeSize' => [ 'title' => '系统返回的function的code包大小,单位为byte Example : 1024', 'description' => 'The size of the function code package that is returned by the system. Unit: bytes.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1024', ], 'createdTime' => [ 'title' => 'function创建时间', 'description' => 'The time when the function was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T15:00:00.000+0000', ], 'customContainerConfig' => [ 'description' => 'The configurations of the Custom Container runtime. After you configure the Custom Container runtime, Function Compute can execute the function in a container that is created from a custom image.'."\n", '$ref' => '#/components/schemas/CustomContainerConfig', ], 'layers' => [ 'description' => 'An array that consists of the information of layers.'."\n" ."\n" .'> If multiple layers exist, the layers are merged based on the array subscripts in descending order. The content of a layer with a smaller subscript overwrites that of a larger subscript.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The name of the layer.'."\n", 'type' => 'string', 'example' => 'md5#layername#version', ], ], 'description' => [ 'title' => '函数描述', 'description' => 'The description of the function.'."\n", 'type' => 'string', 'example' => 'This is a demo hello world function', ], 'functionId' => [ 'title' => '系统为每个function生成的唯一ID', 'description' => 'The unique ID that is generated by the system for the function.'."\n", 'type' => 'string', 'example' => '2d28e0e9-9ba5-4eed-8b1a-d3d9cd24'."\n" .'****', ], 'functionName' => [ 'title' => '函数名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'example' => 'demo-function', ], 'handler' => [ 'title' => 'function的执行入口', 'description' => 'The handler of the function.'."\n", 'type' => 'string', 'example' => 'index.handler', ], 'lastModifiedTime' => [ 'title' => 'function上次修改时间', 'description' => 'The time when the function was last modified.'."\n", 'type' => 'string', 'example' => '2016-08-15T17:00:00.000+0000', ], 'memorySize' => [ 'title' => 'function的内存规格,单位为MB,为64MB的倍数', 'description' => 'The memory size that is configured for the function. Unit: MB.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '512', ], 'runtime' => [ 'title' => 'function运行的语言环境,目前支持nodejs6, nodejs8, python2.7, python3, java8', 'description' => 'The runtime of the function. Valid values: **nodejs20**, **nodejs18**, **nodejs20**, **nodejs18**, **nodejs16**, **nodejs14**, **nodejs12**, **nodejs10**, **nodejs8**, **nodejs6**, **nodejs4.4**, **python3.10**, **python3.9**, **python3**, **python2.7**, **java11**, **java8**, **go1**, **php7.2**, **dotnetcore3.1**, **dotnetcore2.1**, **custom.debian10**, **custom**, and **custom-container**. For more information, see [Runtimes that are supported by Function Compute](~~73338~~).'."\n", 'type' => 'string', 'example' => 'python3.9', ], 'timeout' => [ 'title' => '运行的超时时间,单位为秒', 'description' => 'The timeout period for the execution of the function. Unit: seconds. Default value: 60. Valid values: 1 to 600. When this period expires, the execution of the function is terminated.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '10', ], 'initializationTimeout' => [ 'title' => '初始化function运行的超时时间,单位为秒,最小1秒,默认3秒。初始化function超过这个时间后会被终止执行', 'description' => 'The timeout period for the execution of the Initializer hook. Unit: seconds. Default value: 3. Minimum value: 1. When the period ends, the execution of the Initializer hook is terminated.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '60', ], 'initializer' => [ 'title' => '初始化 function 执行的入口,具体格式和语言相关', 'description' => 'The handler of the Initializer hook. The format is determined by the programming language.'."\n", 'type' => 'string', 'example' => 'index.handler', ], 'caPort' => [ 'title' => '自定义、自定义容器运行时 HTTP Server 的监听端口', 'description' => 'The port on which the HTTP server listens for the custom runtime or custom container runtime.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '9000', ], 'environmentVariables' => [ 'description' => 'The environment variables that are configured for the function. You can obtain the values of the environment variables from the function. For more information, see [Environment variables](~~69777~~).'."\n", 'type' => 'object', 'additionalProperties' => [ 'type' => 'string', 'description' => 'The environment variables that you configured for the function.'."\n", 'example' => '{"key":"value"}', ], ], 'instanceConcurrency' => [ 'description' => 'The number of requests that can be concurrently processed by a single instance.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '10', ], 'instanceSoftConcurrency' => [ 'description' => 'The soft concurrency of the instance. You can use this parameter to implement graceful scale-up of instances. If the number of concurrent requests on an instance is greater than the value of soft concurrency, an instance scale-up is triggered. For example, if your instance requires a long time to start, you can specify a suitable soft concurrency to start the instance in advance.'."\n" ."\n" .'The value must be less than or equal to that of the **instanceConcurrency** parameter.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '5', ], 'instanceType' => [ 'description' => 'The instance type of the function. Valid values:'."\n" ."\n" .'* **e1**: elastic instances'."\n" .'* **c1**: performance instances'."\n" .'* **fc.gpu.tesla.1**: GPU-accelerated instances with Tesla series cards'."\n" .'* **fc.gpu.ampere.1**: GPU-accelerated instances with Ampere series cards'."\n" .'* **fc.gpu.ada.1**: GPU-accelerated instances with Ada series cards'."\n" .'* **g1**: same as **fc.gpu.tesla.1**'."\n", 'type' => 'string', 'example' => 'e1', ], 'instanceLifecycleConfig' => [ 'description' => 'The lifecycle configurations of the instance.'."\n", '$ref' => '#/components/schemas/InstanceLifecycleConfig', ], 'customDNS' => [ 'title' => '函数自定义DNS配置', 'description' => 'The custom DNS settings of the function.'."\n", '$ref' => '#/components/schemas/CustomDNS', ], 'customRuntimeConfig' => [ 'title' => 'Custom Runtime函数详细配置', 'description' => 'The configurations of the custom runtime function.'."\n", '$ref' => '#/components/schemas/CustomRuntimeConfig', ], 'customHealthCheckConfig' => [ 'title' => '函数自定义健康检查配置,仅适用于Custom runtime/container', 'description' => 'The custom health check configurations of the function. This parameter is applicable only to custom runtimes and Custom Container runtimes.'."\n", '$ref' => '#/components/schemas/CustomHealthCheckConfig', ], 'cpu' => [ 'title' => 'function的CPU规格,单位为vCPU,为0.05vCPU的倍数', 'description' => 'The number of vCPUs of the function. The value is a multiple of 0.05.'."\n", 'type' => 'number', 'format' => 'float', 'example' => '1.5', ], 'diskSize' => [ 'title' => 'function的磁盘规格,单位为MB,可选值为512MB或10240MB', 'description' => 'The disk size of the function. Unit: MB. Valid values: 512 and 10240.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '512', ], 'gpuMemorySize' => [ 'title' => 'function的GPU显存规格,单位为MB,为1024MB的倍数', 'description' => 'The GPU memory capacity for the function. Unit: MB. The value is a multiple of 1,024.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '2048', ], 'layersArnV2' => [ 'title' => '层的arn列表', 'description' => 'ARN list of layers'."\n", 'type' => 'array', 'items' => [ 'title' => '层资源定位符', 'description' => 'The layer resource locator.'."\n", 'type' => 'string', 'example' => 'acs:fc:cn-hangzhou:official:layers/Python310/versions/2', ], ], ], ], ], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"codeChecksum\\": \\"5434025278388143772\\",\\n \\"codeSize\\": 1024,\\n \\"createdTime\\": \\"2016-08-15T15:00:00.000+0000\\",\\n \\"customContainerConfig\\": {\\n \\"args\\": \\"[\\\\\\"-arg1\\\\\\", \\\\\\"value1\\\\\\"]\\",\\n \\"command\\": \\"[\\\\\\"/code/myserver\\\\\\"]\\",\\n \\"image\\": \\"registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1\\",\\n \\"accelerationType\\": \\"Default\\",\\n \\"instanceID\\": \\"cri-xxxxxxxxxx\\",\\n \\"webServerMode\\": true\\n },\\n \\"layers\\": [\\n \\"md5#layername#version\\"\\n ],\\n \\"description\\": \\"This is a demo hello world function\\",\\n \\"functionId\\": \\"2d28e0e9-9ba5-4eed-8b1a-d3d9cd24\\\\n****\\",\\n \\"functionName\\": \\"demo-function\\",\\n \\"handler\\": \\"index.handler\\",\\n \\"lastModifiedTime\\": \\"2016-08-15T17:00:00.000+0000\\",\\n \\"memorySize\\": 512,\\n \\"runtime\\": \\"python3.9\\",\\n \\"timeout\\": 10,\\n \\"initializationTimeout\\": 60,\\n \\"initializer\\": \\"index.handler\\",\\n \\"caPort\\": 9000,\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\\\\\\"key\\\\\\":\\\\\\"value\\\\\\"}\\"\\n },\\n \\"instanceConcurrency\\": 10,\\n \\"instanceSoftConcurrency\\": 5,\\n \\"instanceType\\": \\"e1\\",\\n \\"instanceLifecycleConfig\\": {\\n \\"preFreeze\\": {\\n \\"handler\\": \\"\\",\\n \\"timeout\\": 0\\n },\\n \\"preStop\\": {\\n \\"handler\\": \\"\\",\\n \\"timeout\\": 0\\n }\\n },\\n \\"customDNS\\": {\\n \\"nameServers\\": [\\n \\"8.8.8.8\\"\\n ],\\n \\"searches\\": [\\n \\"ns1.svc.cluster-domain.example\\"\\n ],\\n \\"dnsOptions\\": [\\n {\\n \\"name\\": \\"ndots\\",\\n \\"value\\": \\"2\\"\\n }\\n ]\\n },\\n \\"customRuntimeConfig\\": {\\n \\"command\\": [\\n \\"/code/myBootstrap\\"\\n ],\\n \\"args\\": [\\n \\"args1\\"\\n ]\\n },\\n \\"customHealthCheckConfig\\": {\\n \\"httpGetUrl\\": \\"\\",\\n \\"initialDelaySeconds\\": 0,\\n \\"periodSeconds\\": 0,\\n \\"timeoutSeconds\\": 0,\\n \\"failureThreshold\\": 0,\\n \\"successThreshold\\": 0\\n },\\n \\"cpu\\": 1.5,\\n \\"diskSize\\": 512,\\n \\"gpuMemorySize\\": 2048,\\n \\"layersArnV2\\": [\\n \\"acs:fc:cn-hangzhou:official:layers/Python310/versions/2\\"\\n ]\\n}","type":"json"}]', 'title' => 'CreateFunction', ], 'DeleteFunction' => [ 'summary' => 'Deletes a function. Before you delete a function, you must delete triggers of the function.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '22413', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'title' => '用于确保实际更改的资源和期望更改的资源是一致的,该值来自Create,Get和Update API的响应', 'description' => 'The header that is used to ensure that the changed resources are consistent with resources to be changed. The value comes from the response of the Create, Get, and Update API operations.'."\n", 'type' => 'string', 'required' => false, 'example' => 'e19d5cd5af0378da05f63f891c7467af', ], ], [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API. The value is the same as that of the requestId parameter in the response.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test-trace-id', ], ], ], 'responses' => [ 204 => [], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteFunction', ], 'UpdateFunction' => [ 'summary' => 'The GPU memory capacity for the function. Unit: MB. The value must be a multiple of 1,024.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '22383', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'title' => '用于确保实际更改的资源和期望更改的资源是一致的,该值来自Create,Get和Update API的响应', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'e19d5cd5af0378da05f63f891c7467af', ], ], [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'functionUpdateFields', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => '更新函数结构体', 'description' => 'Specifies which fields of the function need updating.'."\n", 'type' => 'object', 'properties' => [ 'code' => [ 'description' => 'The code package of the function. Code packages can be provided using the following two methods, but you must use only one of them in a single request:****'."\n" ."\n" .'* Specify the names of the Object Storage Service (OSS) bucket (**ossBucketName**) where the code package is stored and the object (**ossObjectName**).'."\n" .'* Set **zipFile** to the Base64-encoded content of the ZIP file.'."\n", 'required' => false, '$ref' => '#/components/schemas/Code', ], 'customContainerConfig' => [ 'description' => 'The configurations of the Custom Container runtime. After you configure the Custom Container runtime, Function Compute can execute the function in a container that is created from a custom image.'."\n", 'required' => false, '$ref' => '#/components/schemas/CustomContainerConfig', ], 'layers' => [ 'description' => 'The layers.'."\n" ."\n" .'> Multiple layers are merged in the order determined by their array subscripts, from largest to smallest. When there are files with the same name, the content from the layer with the smaller subscript will overwrite the corresponding file in the layer with the larger subscript.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the layer.'."\n", 'type' => 'string', 'required' => false, 'example' => 'layername', ], 'required' => false, ], 'description' => [ 'title' => '函数描述', 'description' => 'The description of the function.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test desc', ], 'environmentVariables' => [ 'title' => '为函数设置的环境变量,可以在函数中获取环境变量的值', 'description' => 'The environment variables that are configured for the function. You can obtain the values of the environment variables from the function. For more information, see [Environment variables](~~69777~~).'."\n", 'type' => 'object', 'required' => false, 'additionalProperties' => [ 'type' => 'string', 'description' => 'The configurations of environment variables.'."\n", 'example' => '{"key":"value"}', ], ], 'handler' => [ 'title' => 'function执行的入口,具体格式和语言相关', 'description' => 'The handler of the function. The format varies based on the programming language you use. For more information, see [Function handlers](~~157704~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'index.handler', ], 'memorySize' => [ 'title' => 'function的内存规格,单位为MB,为64MB的倍数', 'description' => 'The memory capacity for the function. Unit: MB. The value must be a multiple of 64. The capacity varies based on the type of the function instance. For more information, see [Instance types](~~179379~~).'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512', ], 'runtime' => [ 'title' => 'runtime', 'description' => 'The runtime of the function. Valid values: **nodejs20**, **nodejs18**, **nodejs16**, **nodejs14**, **nodejs12**, **nodejs10**, **nodejs8**, **nodejs6**, **nodejs4.4**, **python3.10**, **python3.9**, **python3**, **python2.7**, **java11**, **java8**, **go1**, **php7.2**, **dotnetcore3.1**, **dotnetcore2.1**, **custom.debian10**, **custom**, and **custom-container**. For more information, see [Runtimes that are supported by Function Compute](~~73338~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'python3.9', ], 'timeout' => [ 'title' => 'function运行的超时时间,单位为秒,最小1秒,默认3秒。function超过这个时间后会被终止执行', 'description' => 'The timeout period for function execution. Unit: seconds. Minimum value: 1. Default value: 3. The execution of the function is terminated when the time elapses.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', ], 'initializationTimeout' => [ 'title' => '初始化function运行的超时时间,单位为秒,最小1秒,默认3秒。初始化function超过这个时间后会被终止执行', 'description' => 'The timeout period for the initializer function. Unit: seconds. Minimum value: 1. Default value: 3. The execution of the initializer function is terminated when the time elapses.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', ], 'initializer' => [ 'title' => '初始化 function 执行的入口,具体格式和语言相关', 'description' => 'The handler of the initializer function. The format varies based on the programming language you use. For more information, see [Function handlers](~~157704~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'index.handler', ], 'caPort' => [ 'title' => '自定义、自定义容器运行时 HTTP Server 的监听端口', 'description' => 'The listening port of the HTTP server in a custom runtime or a Custom Container runtime.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '9000', ], 'InstanceConcurrency' => [ 'title' => '单个实例的最大并发度', 'description' => 'The maximum number of requests that a function instance can process at a time.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', ], 'instanceSoftConcurrency' => [ 'description' => 'The soft concurrency of the instance. You can use this property to implement graceful scale-out of instances. When the number of concurrent requests exceeds the instance\'s soft concurrency limit, scale-out is triggered. If your instance has a long startup time, you can specify a soft concurrency value to initiate the instance in advance.'."\n" ."\n" .'The value must be less than or equal to that of **instanceConcurrency**.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5', ], 'instanceType' => [ 'description' => 'The instance type of the function. Valid values:'."\n" ."\n" .'* **e1**: elastic instance'."\n" .'* **c1**: performance instance'."\n" .'* **fc.gpu.tesla.1**: GPU-accelerated instance utilizing Tesla series GPUs'."\n" .'* **fc.gpu.ampere.1**: GPU-accelerated instances utilizing Ampere series GPUs'."\n" .'* **fc.gpu.ada.1**: GPU-accelerated instances utilizing Ada series GPUs'."\n" .'* **g1**: same as **fc.gpu.tesla.1**'."\n", 'type' => 'string', 'required' => false, 'example' => 'e1', ], 'instanceLifecycleConfig' => [ 'description' => 'The lifecycle configurations of the instance.'."\n", 'required' => false, '$ref' => '#/components/schemas/InstanceLifecycleConfig', ], 'customDNS' => [ 'title' => '函数自定义DNS配置', 'description' => 'The custom Domain Name System (DNS) settings of the function.'."\n", 'required' => false, '$ref' => '#/components/schemas/CustomDNS', ], 'customRuntimeConfig' => [ 'title' => 'Custom Runtime函数详细配置', 'description' => 'The configurations of the custom runtime function.'."\n", 'required' => false, '$ref' => '#/components/schemas/CustomRuntimeConfig', ], 'customHealthCheckConfig' => [ 'title' => '函数自定义健康检查配置,仅适用于Custom runtime/container', 'description' => 'The custom health check configurations of the function. This parameter is applicable only to custom runtimes and Custom Container runtimes.'."\n", 'required' => false, '$ref' => '#/components/schemas/CustomHealthCheckConfig', ], 'cpu' => [ 'title' => 'function的CPU规格,单位为vCPU,为0.05vCPU的倍数', 'description' => 'The CPU size of the function. Unit: vCPUs. The value is a multiple of 0.05.'."\n", 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1.5', ], 'diskSize' => [ 'title' => 'function的磁盘规格,单位为MB,可选值为512MB或10240MB', 'description' => 'The disk size of the function. Unit: MB. Valid values: 512 and 10240.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '512', ], 'gpuMemorySize' => [ 'title' => 'function的GPU显存规格,单位为MB,为1024MB的倍数', 'description' => 'The GPU memory size of the function. Unit: MB. The value is a multiple of 1024.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2048', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Code-Checksum', 'in' => 'header', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => false, 'example' => '1506052139770049xxxx', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'test-trace-id', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => 'function etag,用于更改function。以确保实际更改的function和期望更改的function是一致的.', 'type' => 'string', 'example' => '5e547e5605e1dc17a78a6191bc18fbc5', ], ], ], 'schema' => [ 'title' => 'FunctionResponse', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'codeChecksum' => [ 'title' => 'function code包的CRC64值', 'description' => '', 'type' => 'string', 'example' => '5434025278388143772', ], 'codeSize' => [ 'title' => '系统返回的function的code包大小,单位为byte Example : 1024', 'description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1024', ], 'createdTime' => [ 'title' => 'function创建时间', 'description' => '', 'type' => 'string', 'example' => '2016-08-15T15:00:00.000+0000', ], 'customContainerConfig' => [ 'description' => 'The configurations of the Custom Container runtime. After you configure the Custom Container runtime, you can use a custom container image to execute functions.'."\n", '$ref' => '#/components/schemas/CustomContainerConfig', ], 'layers' => [ 'description' => 'The layers.'."\n" ."\n" .'> Multiple layers are merged based on the order of array subscripts. The content of a layer with a smaller subscript overwrites the file that has the same name of a layer with a larger subscript.'."\n", 'type' => 'array', 'items' => [ 'description' => '', 'type' => 'string', 'example' => 'md5#layername#version', ], ], 'description' => [ 'title' => '函数描述', 'description' => '', 'type' => 'string', 'example' => 'This is a demo hello world function', ], 'environmentVariables' => [ 'title' => '为函数设置的环境变量,可以在函数中获取环境变量的值', 'description' => '', 'type' => 'object', 'additionalProperties' => [ 'type' => 'string', 'description' => '', 'example' => '{"key":"value"}', ], ], 'functionId' => [ 'title' => '系统为每个function生成的唯一ID', 'description' => '', 'type' => 'string', 'example' => '2d28e0e9-9ba5-4eed-8b1a-d3d9cd24****', ], 'functionName' => [ 'title' => '函数名称', 'description' => '', 'type' => 'string', 'example' => 'demo-function', ], 'handler' => [ 'title' => 'function的执行入口', 'description' => '', 'type' => 'string', 'example' => 'index.handler', ], 'lastModifiedTime' => [ 'title' => 'function上次修改时间', 'description' => '', 'type' => 'string', 'example' => '2016-08-15T17:00:00.000+0000', ], 'memorySize' => [ 'title' => 'function的内存规格,单位为MB,为64MB的倍数', 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '512', ], 'runtime' => [ 'title' => 'function运行的语言环境,目前支持nodejs6, nodejs8, python2.7, python3, java8', 'description' => 'The runtime of the function. Valid values: **nodejs20**, **nodejs18**, **nodejs16**, **nodejs14**, **nodejs12**, **nodejs10**, **nodejs8**, **nodejs6**, **nodejs4.4**, **python3.10**, **python3.9**, **python3**, **python2.7**, **java11**, **java8**, **go1**, **php7.2**, **dotnetcore3.1**, **dotnetcore2.1**, **custom.debian10**, **custom**, and **custom-container**. For more information, see [Runtimes that are supported by Function Compute](~~73338~~).'."\n", 'type' => 'string', 'example' => 'python3.9', ], 'timeout' => [ 'title' => '运行的超时时间,单位为秒', 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '10', ], 'initializationTimeout' => [ 'title' => '初始化function运行的超时时间,单位为秒,最小1秒,默认3秒。初始化function超过这个时间后会被终止执行', 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '60', ], 'initializer' => [ 'title' => '初始化 function 执行的入口,具体格式和语言相关', 'description' => '', 'type' => 'string', 'example' => 'index.handler', ], 'caPort' => [ 'title' => '自定义、自定义容器运行时 HTTP Server 的监听端口', 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '9000', ], 'instanceType' => [ 'description' => '', 'type' => 'string', 'example' => 'e1', ], 'instanceSoftConcurrency' => [ 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '5', ], 'instanceLifecycleConfig' => [ 'description' => 'The lifecycle configurations of the instance.'."\n", '$ref' => '#/components/schemas/InstanceLifecycleConfig', ], 'customDNS' => [ 'title' => '函数自定义DNS配置', 'description' => 'The custom DNS settings of the function.'."\n", '$ref' => '#/components/schemas/CustomDNS', ], 'customRuntimeConfig' => [ 'title' => 'Custom Runtime函数详细配置', 'description' => 'The configurations of the custom runtime function.'."\n", '$ref' => '#/components/schemas/CustomRuntimeConfig', ], 'customHealthCheckConfig' => [ 'title' => '函数自定义健康检查配置,仅适用于Custom runtime/container', 'description' => 'The custom health check configurations of the function. This parameter is applicable only to custom runtimes and Custom Container runtimes.'."\n", '$ref' => '#/components/schemas/CustomHealthCheckConfig', ], 'cpu' => [ 'title' => 'function的CPU规格,单位为vCPU,为0.05vCPU的倍数', 'description' => '', 'type' => 'number', 'format' => 'float', 'example' => '1.5', ], 'diskSize' => [ 'title' => 'function的磁盘规格,单位为MB,可选值为512MB或10240MB', 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '512', ], 'instanceConcurrency' => [ 'title' => '单个实例的最大并发度', 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '10', ], 'gpuMemorySize' => [ 'title' => 'function的GPU显存规格,单位为MB,为1024MB的倍数', 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '2048', ], 'layersArnV2' => [ 'title' => '层的arn列表', 'description' => 'A list of layer ARNs.'."\n", 'type' => 'array', 'items' => [ 'title' => '层资源定位符', 'description' => 'The layer ARN.'."\n", 'type' => 'string', 'example' => 'acs:fc:cn-hangzhou:official:layers/Python310/versions/2', ], ], ], ], ], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"codeChecksum\\": \\"5434025278388143772\\",\\n \\"codeSize\\": 1024,\\n \\"createdTime\\": \\"2016-08-15T15:00:00.000+0000\\",\\n \\"customContainerConfig\\": {\\n \\"args\\": \\"[\\\\\\"-arg1\\\\\\", \\\\\\"value1\\\\\\"]\\",\\n \\"command\\": \\"[\\\\\\"/code/myserver\\\\\\"]\\",\\n \\"image\\": \\"registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1\\",\\n \\"accelerationType\\": \\"Default\\",\\n \\"instanceID\\": \\"cri-xxxxxxxxxx\\",\\n \\"webServerMode\\": true\\n },\\n \\"layers\\": [\\n \\"md5#layername#version\\"\\n ],\\n \\"description\\": \\"This is a demo hello world function\\",\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\\\\\\"key\\\\\\":\\\\\\"value\\\\\\"}\\"\\n },\\n \\"functionId\\": \\"2d28e0e9-9ba5-4eed-8b1a-d3d9cd24****\\",\\n \\"functionName\\": \\"demo-function\\",\\n \\"handler\\": \\"index.handler\\",\\n \\"lastModifiedTime\\": \\"2016-08-15T17:00:00.000+0000\\",\\n \\"memorySize\\": 512,\\n \\"runtime\\": \\"python3.9\\",\\n \\"timeout\\": 10,\\n \\"initializationTimeout\\": 60,\\n \\"initializer\\": \\"index.handler\\",\\n \\"caPort\\": 9000,\\n \\"instanceType\\": \\"e1\\",\\n \\"instanceSoftConcurrency\\": 5,\\n \\"instanceLifecycleConfig\\": {\\n \\"preFreeze\\": {\\n \\"handler\\": \\"\\",\\n \\"timeout\\": 0\\n },\\n \\"preStop\\": {\\n \\"handler\\": \\"\\",\\n \\"timeout\\": 0\\n }\\n },\\n \\"customDNS\\": {\\n \\"nameServers\\": [\\n \\"8.8.8.8\\"\\n ],\\n \\"searches\\": [\\n \\"ns1.svc.cluster-domain.example\\"\\n ],\\n \\"dnsOptions\\": [\\n {\\n \\"name\\": \\"ndots\\",\\n \\"value\\": \\"2\\"\\n }\\n ]\\n },\\n \\"customRuntimeConfig\\": {\\n \\"command\\": [\\n \\"/code/myBootstrap\\"\\n ],\\n \\"args\\": [\\n \\"args1\\"\\n ]\\n },\\n \\"customHealthCheckConfig\\": {\\n \\"httpGetUrl\\": \\"\\",\\n \\"initialDelaySeconds\\": 0,\\n \\"periodSeconds\\": 0,\\n \\"timeoutSeconds\\": 0,\\n \\"failureThreshold\\": 0,\\n \\"successThreshold\\": 0\\n },\\n \\"cpu\\": 1.5,\\n \\"diskSize\\": 512,\\n \\"instanceConcurrency\\": 10,\\n \\"gpuMemorySize\\": 2048,\\n \\"layersArnV2\\": [\\n \\"acs:fc:cn-hangzhou:official:layers/Python310/versions/2\\"\\n ]\\n}","type":"json"}]', 'title' => 'UpdateFunction', ], 'GetFunction' => [ 'summary' => 'Queries the information about a function.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22416', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'service_name', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => 'service版本, 可以是versionId或者aliasName', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'demoQualifier', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'function_name', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => 'function etag,用于更改function。以确保实际更改的function和期望更改的function是一致的.', 'type' => 'string', ], ], ], 'schema' => [ 'title' => 'FunctionResponse', 'description' => 'The definition of the function.'."\n", 'type' => 'object', 'properties' => [ 'codeChecksum' => [ 'title' => 'function code包的CRC64值', 'description' => 'The CRC-64 value of the function code package.'."\n", 'type' => 'string', 'example' => '2825179536350****', ], 'codeSize' => [ 'title' => '系统返回的function的code包大小,单位为byte Example : 1024', 'description' => 'The size of the function code package. Unit: byte.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '421', ], 'createdTime' => [ 'title' => 'function创建时间', 'description' => 'The time when the function was created.'."\n", 'type' => 'string', 'example' => '2020-04-01T08:15:27Z', ], 'description' => [ 'title' => '函数描述', 'description' => 'The description of the function.'."\n", 'type' => 'string', 'example' => 'test_description', ], 'environmentVariables' => [ 'title' => '为函数设置的环境变量,可以在函数中获取环境变量的值', 'description' => 'The environment variables that are configured for the function. You can obtain the values of the environment variables from the function. For more information, see [Environment variables](~~69777~~).'."\n", 'type' => 'object', 'additionalProperties' => [ 'type' => 'string', 'description' => 'The environment variables that you configured for the function.'."\n", 'example' => '{"key":"value"}', ], ], 'functionId' => [ 'title' => '系统为每个function生成的唯一ID', 'description' => 'The ID that is generated by the system for the function. Each function ID is unique in Function Compute.'."\n", 'type' => 'string', 'example' => 'aa715851-1c20-4b89-a8fb-***', ], 'functionName' => [ 'title' => '函数名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'example' => 'function_name', ], 'handler' => [ 'title' => 'function的执行入口', 'description' => 'The handler of the function. For more information, see [Function handler](~~157704~~).'."\n", 'type' => 'string', 'example' => 'index.handler', ], 'lastModifiedTime' => [ 'title' => 'function上次修改时间', 'description' => 'The time when the function was last modified.'."\n", 'type' => 'string', 'example' => '2020-04-01T08:15:27Z', ], 'memorySize' => [ 'title' => 'function的内存规格,单位为MB,为64MB的倍数', 'description' => 'The memory size for the function. Unit: MB. The value must be a multiple of 64. The memory size varies based on the function instance type. For more information, see [Instance types](~~179379~~).'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '256', ], 'runtime' => [ 'title' => 'function运行的语言环境,目前支持nodejs6, nodejs8, python2.7, python3, java8', 'description' => 'The runtime of the function. Valid values: **nodejs20**, **nodejs18**, **nodejs16**, **nodejs14**, **nodejs12**, **nodejs10**, **nodejs8**, **nodejs6**, **nodejs4.4**, **python3.10**, **python3.9**, **python3**, **python2.7**, **java11**, **java8**, **go1**, **php7.2**, **dotnetcore2.1**, **custom.debian10**, **custom**, and **custom-container**.'."\n", 'type' => 'string', 'example' => 'python3', ], 'timeout' => [ 'title' => '运行的超时时间,单位为秒', 'description' => 'The timeout period for the execution of the function. Unit: seconds. Default value: 60. Valid values: 1 to 600. When this period expires, the execution of the function is terminated.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '60', ], 'initializationTimeout' => [ 'title' => '初始化function运行的超时时间,单位为秒,最小1秒,默认3秒。初始化function超过这个时间后会被终止执行', 'description' => 'The timeout period for the execution of the Initializer hook. Unit: seconds. Default value: 3. Valid values: 1 to 300. When this period ends, the execution of the Initializer hook is terminated.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '60', ], 'initializer' => [ 'title' => '初始化 function 执行的入口,具体格式和语言相关', 'description' => 'The handler of the Initializer hook. The format of the value is determined by the programming language that you use. For more information, see [Initializer hook](~~157704~~).'."\n", 'type' => 'string', 'example' => 'index.handler', ], 'caPort' => [ 'title' => '自定义、自定义容器运行时 HTTP Server 的监听端口', 'description' => 'The port on which the HTTP server listens for the custom runtime or custom container runtime.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '9000', ], 'customContainerConfig' => [ 'description' => 'The configurations of the Custom Container runtime. After you configure the Custom Container runtime, you can use a custom container image to execute functions.'."\n", '$ref' => '#/components/schemas/CustomContainerConfigInfo', ], 'layers' => [ 'title' => '层列表', 'description' => 'The list of layers (ARN V1).'."\n" ."\n" .'> If multiple layers exist, the layers are merged based on the array subscripts in descending order. The content of a layer with a smaller subscript overwrites that of a larger subscript.'."\n" ."\n" .'> This parameter is to be deprecated. Use layersArnV2.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The name of the layer resource (ARN V1 version).'."\n", 'type' => 'string', 'example' => '02f81d283888f5ec63442a88fe82b260#Layer-name#1', ], ], 'instanceConcurrency' => [ 'description' => 'The number of requests that can be concurrently processed by a single instance.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '10', ], 'instanceSoftConcurrency' => [ 'description' => 'The soft concurrency of the instance. You can use this parameter to implement graceful scale-up of instances. If the number of concurrent requests on an instance is greater than the value of soft concurrency, an instance scale-up is triggered. For example, if your instance requires a long time to start, you can specify a suitable soft concurrency to start the instance in advance.'."\n" ."\n" .'The value must be less than or equal to that of the **instanceConcurrency** parameter.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '5', ], 'instanceType' => [ 'description' => 'The instance type of the function. Valid values:'."\n" ."\n" .'* **e1**: elastic instances'."\n" .'* **c1**: performance instances'."\n" .'* **fc.gpu.tesla.1**: GPU-accelerated instances with Tesla series cards'."\n" .'* **fc.gpu.ampere.1**: GPU-accelerated instances with Ampere series cards'."\n" .'* **fc.gpu.ada.1**:GPU-accelerated instances with Ada series cards'."\n" .'* **g1**: same as fc.gpu.tesla.1'."\n", 'type' => 'string', 'example' => 'e1', ], 'instanceLifecycleConfig' => [ 'description' => 'The lifecycle configurations of instances.'."\n", '$ref' => '#/components/schemas/InstanceLifecycleConfig', ], 'customDNS' => [ 'title' => '函数自定义DNS配置', 'description' => 'The custom Domain Name System (DNS) settings of the function.'."\n", '$ref' => '#/components/schemas/CustomDNS', ], 'customRuntimeConfig' => [ 'title' => 'Custom Runtime函数详细配置', 'description' => 'The configurations of the function that runs in the custom runtime.'."\n", '$ref' => '#/components/schemas/CustomRuntimeConfig', ], 'customHealthCheckConfig' => [ 'title' => '函数自定义健康检查配置,仅适用于Custom runtime/container', 'description' => 'The custom health check configurations of the function. This parameter is applicable only to custom runtimes and Custom Container runtimes.'."\n", '$ref' => '#/components/schemas/CustomHealthCheckConfig', ], 'layersArnV2' => [ 'title' => '层的arn列表', 'description' => 'The list of layers (ARN V2).'."\n" ."\n" .'> If multiple layers exist, the layers are merged based on the array subscripts in descending order. The content of a layer with a smaller subscript overwrites that of a larger subscript.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The name of the layer resource (ARN V2 version).'."\n", 'type' => 'string', 'example' => 'acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}', ], ], 'cpu' => [ 'title' => 'function的CPU规格,单位为vCPU,为0.05vCPU的倍数', 'description' => 'The number of vCPUs of the function. The value must be a multiple of 0.05.'."\n", 'type' => 'number', 'format' => 'float', 'example' => '1.5', ], 'diskSize' => [ 'title' => 'function的磁盘规格,单位为MB,可选值为512MB或10240MB', 'description' => 'The disk size of the function. Unit: MB. Valid values: 512 and 10240.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '512', ], 'gpuMemorySize' => [ 'title' => 'function的GPU显存规格,单位为MB,为1024MB的倍数', 'description' => 'The GPU memory capacity for the function. Unit: MB. The value is a multiple of 1,024.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '2048', ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"type":"json","example":"{\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"codeSize\\": 421,\\n \\"createdTime\\": \\"2020-04-01T08:15:27Z\\",\\n \\"description\\": \\"test_description\\",\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\\\\\\"key\\\\\\":\\\\\\"value\\\\\\"}\\"\\n },\\n \\"functionId\\": \\"aa715851-1c20-4b89-a8fb-***\\",\\n \\"functionName\\": \\"function_name\\",\\n \\"handler\\": \\"index.handler\\",\\n \\"lastModifiedTime\\": \\"2020-04-01T08:15:27Z\\",\\n \\"memorySize\\": 256,\\n \\"runtime\\": \\"python3\\",\\n \\"timeout\\": 60,\\n \\"initializationTimeout\\": 60,\\n \\"initializer\\": \\"index.handler\\",\\n \\"caPort\\": 9000,\\n \\"customContainerConfig\\": {\\n \\"args\\": \\"[\\\\\\"-arg1\\\\\\", \\\\\\"value1\\\\\\"]\\",\\n \\"command\\": \\"[\\\\\\"/code/myserver\\\\\\"]\\",\\n \\"image\\": \\"registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1\\",\\n \\"accelerationType\\": \\"Default\\",\\n \\"accelerationInfo\\": {\\n \\"status\\": \\"Preparing\\"\\n },\\n \\"instanceID\\": \\"cri-xxxxxxxxxx\\",\\n \\"webServerMode\\": true\\n },\\n \\"layers\\": [\\n \\"02f81d283888f5ec63442a88fe82b260#Layer-name#1\\"\\n ],\\n \\"instanceConcurrency\\": 10,\\n \\"instanceSoftConcurrency\\": 5,\\n \\"instanceType\\": \\"e1\\",\\n \\"instanceLifecycleConfig\\": {\\n \\"preFreeze\\": {\\n \\"handler\\": \\"\\",\\n \\"timeout\\": 0\\n },\\n \\"preStop\\": {\\n \\"handler\\": \\"\\",\\n \\"timeout\\": 0\\n }\\n },\\n \\"customDNS\\": {\\n \\"nameServers\\": [\\n \\"8.8.8.8\\"\\n ],\\n \\"searches\\": [\\n \\"ns1.svc.cluster-domain.example\\"\\n ],\\n \\"dnsOptions\\": [\\n {\\n \\"name\\": \\"ndots\\",\\n \\"value\\": \\"2\\"\\n }\\n ]\\n },\\n \\"customRuntimeConfig\\": {\\n \\"command\\": [\\n \\"/code/myBootstrap\\"\\n ],\\n \\"args\\": [\\n \\"args1\\"\\n ]\\n },\\n \\"customHealthCheckConfig\\": {\\n \\"httpGetUrl\\": \\"\\",\\n \\"initialDelaySeconds\\": 0,\\n \\"periodSeconds\\": 0,\\n \\"timeoutSeconds\\": 0,\\n \\"failureThreshold\\": 0,\\n \\"successThreshold\\": 0\\n },\\n \\"layersArnV2\\": [\\n \\"acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}\\"\\n ],\\n \\"cpu\\": 1.5,\\n \\"diskSize\\": 512,\\n \\"gpuMemorySize\\": 2048\\n}","errorExample":""},{"type":"xml","example":"\\n 2825179536350****\\n 421\\n 2020-04-01T08:15:27Z\\n test_description\\n aa715851-1c20-4b89-a8fb-***\\n function_name\\n index.handler\\n 2020-04-01T08:15:27Z\\n 256\\n python3\\n 60\\n 60\\n index.handler\\n 9000\\n \\n [\\"-arg1\\", \\"value1\\"]\\n [\\"/code/myserver\\"]\\n registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1\\n Default\\n \\n Preparing\\n \\n \\n 02f81d283888f5ec63442a88fe82b260#Layer-name#1\\n \\n \\n \\n \\n","errorExample":""}]', 'title' => 'GetFunction', ], 'GetFunctionCode' => [ 'summary' => 'Queries the code package of a function.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/code', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22386', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => 'service版本, 可以是versionId或者aliasName', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'demoQualifier', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '响应结构体', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'checksum' => [ 'title' => 'function code包的CRC64值', 'description' => 'The CRC-64 value of the function code package.'."\n", 'type' => 'string', 'example' => '1234567890', ], 'url' => [ 'title' => '获取function代码的URL', 'description' => 'The URL of the function code package.'."\n", 'type' => 'string', 'example' => 'http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f', ], ], ], ], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"checksum\\": \\"1234567890\\",\\n \\"url\\": \\"http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f\\"\\n}","type":"json"}]', 'title' => 'GetFunctionCode', ], 'ListFunctions' => [ 'summary' => 'Queries functions.', 'path' => '/2021-04-06/services/{serviceName}/functions', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22399', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => 'service版本, 可以是versionId或者aliasName', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '限定此次返回资源的数量。如果不设定,默认返回20,最大不能超过100。返回结果可能小于指定的数量,但不会多于指定的数量', 'description' => 'The maximum number of resources to return. Default value: 20. Maximum value: 100. The number of returned resources is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的token从返回结果中获取', 'description' => 'The token required to obtain more results. If the number of resources exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'required' => false, 'example' => '8bj81uI8n****', ], ], [ 'name' => 'prefix', 'in' => 'query', 'schema' => [ 'title' => '限定返回的资源名称必须以prefix作为前缀', 'description' => 'The prefix that the names of returned resources must contain.'."\n", 'type' => 'string', 'required' => false, 'example' => 'demoFunctionsPrefix', ], ], [ 'name' => 'startKey', 'in' => 'query', 'schema' => [ 'title' => '设定结果从startKey之后(包括startKey)按字母排序的第一个开始返回', 'description' => 'The starting position of the result list. The returned resources are sorted in alphabetical order, and the resources that include and follow the resource specified by the startKey parameter are returned.'."\n", 'type' => 'string', 'required' => false, 'example' => 'demoStartKey', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The format is **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'ListFunctions Response', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'functions' => [ 'title' => '函数列表', 'description' => 'The information about functions.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The definition of the function.'."\n", 'type' => 'object', 'properties' => [ 'codeChecksum' => [ 'title' => 'function code包的CRC64值', 'description' => 'The CRC64 value of the function code package.'."\n", 'type' => 'string', 'example' => '5434025278388143772', ], 'codeSize' => [ 'title' => '系统返回的function的code包大小,单位为byte Example : 1024', 'description' => 'The size of the function code package returned by the system. Unit: bytes.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1024', ], 'createdTime' => [ 'title' => 'function创建时间', 'description' => 'The time when the function was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T15:00:00.000+0000', ], 'customContainerConfig' => [ 'description' => 'The configurations of the Custom Container runtime.'."\n", '$ref' => '#/components/schemas/CustomContainerConfig', ], 'description' => [ 'title' => '函数描述', 'description' => 'The description of the function.'."\n", 'type' => 'string', 'example' => 'This is a demo hello world function', ], 'environmentVariables' => [ 'title' => '为函数设置的环境变量,可以在函数中获取环境变量的值', 'description' => 'The environment variables that are configured for the function. You can obtain the values of the environment variables from the function.'."\n", 'type' => 'object', 'additionalProperties' => [ 'type' => 'string', 'example' => '{"key":"value"}', 'description' => 'The environment variables that you configured for the function.'."\n", ], ], 'functionId' => [ 'title' => '系统为每个function生成的唯一ID', 'description' => 'The ID generated by the system for each function. The ID is globally unique.'."\n", 'type' => 'string', 'example' => '2d28e0e9-9ba5-4eed-8b1a-d3d9cd24****', ], 'functionName' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'example' => 'demo-function', ], 'handler' => [ 'title' => 'function的执行入口', 'description' => 'The handler of the function.'."\n", 'type' => 'string', 'example' => 'index.handler', ], 'lastModifiedTime' => [ 'title' => 'function上次修改时间', 'description' => 'The time when the function was last modified.'."\n", 'type' => 'string', 'example' => '2016-08-15T17:00:00.000+0000', ], 'memorySize' => [ 'title' => 'function的内存规格,单位为MB,为64MB的倍数', 'description' => 'The memory size of the function. Unit: MB.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '512', ], 'runtime' => [ 'title' => 'function运行的语言环境,目前支持nodejs6, nodejs8, python2.7, python3, java8', 'description' => 'The runtime of the function. Valid values: **nodejs16**, **nodejs14**, **nodejs12**, **nodejs10**, **nodejs8**, **nodejs6**, **nodejs4.4**, **python3.10**, **python3.9**, **python3**, **python2.7**, **java11**, **java8**, **go1**, **php7.2**, **dotnetcore3.1**, **dotnetcore2.1**, **custom.debian10**, **custom**, and **custom-container**. For more information, see [Runtimes that are supported by Function Compute](~~73338~~).'."\n", 'type' => 'string', 'example' => 'python3.9', ], 'timeout' => [ 'title' => '运行的超时时间,单位为秒', 'description' => 'The timeout period for the function to run. Unit: seconds. Default value: 60. Minimum value: 1. Maximum value: 600. When this period expires, the execution of the function is terminated.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '10', ], 'initializationTimeout' => [ 'title' => '初始化function运行的超时时间,单位为秒,最小1秒,默认3秒。初始化function超过这个时间后会被终止执行', 'description' => 'The timeout period for the Initializer hook to run. Unit: seconds. Default value: 3. Minimum value: 1. Maximum value: 300. When the period ends, the execution of the Initializer hook is terminated.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '60', ], 'initializer' => [ 'title' => '初始化 function 执行的入口,具体格式和语言相关', 'description' => 'The handler of the initializer function. The format of the value varies based on the programming language that you use. For more information, see [Initializer function](~~157704~~).'."\n", 'type' => 'string', 'example' => 'index.handler', ], 'caPort' => [ 'title' => '自定义、自定义容器运行时 HTTP Server 的监听端口', 'description' => 'The port on which the HTTP server listens for the custom runtime or Custom Container runtime.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '9000', ], 'instanceConcurrency' => [ 'description' => 'The number of requests that can be concurrently processed by a single instance.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '10', ], 'instanceSoftConcurrency' => [ 'description' => 'The soft concurrency of the instance. You can use this property to implement graceful scale-ups for instances. If the number of concurrent requests on an instance is greater than the soft concurrency value of the instance, an instance scale-up is triggered. For example, if your instance requires a long time to start, you can specify a suitable soft concurrency to start the instance in advance.'."\n" ."\n" .'The value must be less than or equal to that of **instanceConcurrency**.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '5', ], 'instanceType' => [ 'description' => 'The instance type of the function. Valid values:'."\n" ."\n" .'* **e1**: elastic instances'."\n" .'* **c1**: performance instances'."\n" .'* **fc.gpu.tesla.1**: GPU-accelerated instances with Tesla series cards'."\n" .'* **fc.gpu.ampere.1**: GPU-accelerated instances with Ampere series cards'."\n" .'* **fc.gpu.ada.1**: GPU-accelerated instances with Ada series cards'."\n" .'* **g1**: same as **fc.gpu.tesla.1**'."\n", 'type' => 'string', 'example' => 'e1', ], 'layers' => [ 'description' => 'A list of layers.'."\n" ."\n" .'> If multiple layers exist, the layers are merged based on the array subscripts in descending order. The content of a layer with a smaller subscript overwrites that of a larger subscript.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The ARN of the layer.'."\n", 'type' => 'string', 'example' => '02f81d283888f5ec63442a88fe82b260#Layer-name#1', ], ], 'layersArnV2' => [ 'title' => '层的arn列表', 'description' => 'A list of layer ARNs.'."\n", 'type' => 'array', 'items' => [ 'type' => 'string', 'example' => 'acs:fc:cn-hangzhou:official:layers/Python310/versions/2', 'description' => '', ], ], 'instanceLifecycleConfig' => [ 'description' => 'The lifecycle configurations of instances.'."\n", '$ref' => '#/components/schemas/InstanceLifecycleConfig', ], 'customDNS' => [ 'title' => '函数自定义DNS配置', 'description' => 'The custom Domain Name System (DNS) settings of the function.'."\n", '$ref' => '#/components/schemas/CustomDNS', ], 'customRuntimeConfig' => [ 'title' => 'Custom Runtime函数详细配置', 'description' => 'The custom runtime configurations.'."\n", '$ref' => '#/components/schemas/CustomRuntimeConfig', ], 'customHealthCheckConfig' => [ 'description' => 'The custom health check configurations of the function. This parameter is applicable only to custom runtimes and Custom Container runtimes.'."\n", '$ref' => '#/components/schemas/CustomHealthCheckConfig', ], 'cpu' => [ 'title' => 'function的CPU规格,单位为vCPU,为0.05vCPU的倍数', 'description' => 'The CPU size of the function. Unit: vCPUs. The value is a multiple of 0.05 vCPUs.'."\n", 'type' => 'number', 'format' => 'float', 'example' => '1.5', ], 'diskSize' => [ 'title' => 'function的磁盘规格,单位为MB,可选值为512MB或10240MB', 'description' => 'The disk size of the function. Unit: MB. Valid values: 512 MB and 10240 MB.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '512', ], 'gpuMemorySize' => [ 'title' => 'function的GPU显存规格,单位为MB,为1024MB的倍数', 'description' => 'The GPU memory size of the function. Unit: MB, which is a multiple of 1024MB.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '2048', ], ], ], ], 'nextToken' => [ 'title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果', 'description' => 'The token used to obtain more results. If this parameter is not returned, all the layers are returned.'."\n", 'type' => 'string', 'example' => '8bj81uI8n****', ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functions\\": [\\n {\\n \\"codeChecksum\\": \\"5434025278388143772\\",\\n \\"codeSize\\": 1024,\\n \\"createdTime\\": \\"2016-08-15T15:00:00.000+0000\\",\\n \\"customContainerConfig\\": {\\n \\"args\\": \\"[\\\\\\"-arg1\\\\\\", \\\\\\"value1\\\\\\"]\\",\\n \\"command\\": \\"[\\\\\\"/code/myserver\\\\\\"]\\",\\n \\"image\\": \\"registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1\\",\\n \\"accelerationType\\": \\"Default\\",\\n \\"instanceID\\": \\"cri-xxxxxxxxxx\\",\\n \\"webServerMode\\": true\\n },\\n \\"description\\": \\"This is a demo hello world function\\",\\n \\"environmentVariables\\": {\\n \\"key\\": \\"{\\\\\\"key\\\\\\":\\\\\\"value\\\\\\"}\\"\\n },\\n \\"functionId\\": \\"2d28e0e9-9ba5-4eed-8b1a-d3d9cd24****\\",\\n \\"functionName\\": \\"demo-function\\",\\n \\"handler\\": \\"index.handler\\",\\n \\"lastModifiedTime\\": \\"2016-08-15T17:00:00.000+0000\\",\\n \\"memorySize\\": 512,\\n \\"runtime\\": \\"python3.9\\",\\n \\"timeout\\": 10,\\n \\"initializationTimeout\\": 60,\\n \\"initializer\\": \\"index.handler\\",\\n \\"caPort\\": 9000,\\n \\"instanceConcurrency\\": 10,\\n \\"instanceSoftConcurrency\\": 5,\\n \\"instanceType\\": \\"e1\\",\\n \\"layers\\": [\\n \\"02f81d283888f5ec63442a88fe82b260#Layer-name#1\\"\\n ],\\n \\"layersArnV2\\": [\\n \\"acs:fc:cn-hangzhou:official:layers/Python310/versions/2\\"\\n ],\\n \\"instanceLifecycleConfig\\": {\\n \\"preFreeze\\": {\\n \\"handler\\": \\"\\",\\n \\"timeout\\": 0\\n },\\n \\"preStop\\": {\\n \\"handler\\": \\"\\",\\n \\"timeout\\": 0\\n }\\n },\\n \\"customDNS\\": {\\n \\"nameServers\\": [\\n \\"8.8.8.8\\"\\n ],\\n \\"searches\\": [\\n \\"ns1.svc.cluster-domain.example\\"\\n ],\\n \\"dnsOptions\\": [\\n {\\n \\"name\\": \\"ndots\\",\\n \\"value\\": \\"2\\"\\n }\\n ]\\n },\\n \\"customRuntimeConfig\\": {\\n \\"command\\": [\\n \\"/code/myBootstrap\\"\\n ],\\n \\"args\\": [\\n \\"args1\\"\\n ]\\n },\\n \\"customHealthCheckConfig\\": {\\n \\"httpGetUrl\\": \\"\\",\\n \\"initialDelaySeconds\\": 0,\\n \\"periodSeconds\\": 0,\\n \\"timeoutSeconds\\": 0,\\n \\"failureThreshold\\": 0,\\n \\"successThreshold\\": 0\\n },\\n \\"cpu\\": 1.5,\\n \\"diskSize\\": 512,\\n \\"gpuMemorySize\\": 2048\\n }\\n ],\\n \\"nextToken\\": \\"8bj81uI8n****\\"\\n}","type":"json"}]', 'title' => 'ListFunctions', ], 'InvokeFunction' => [ 'summary' => 'Invoke a function.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/invocations', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '22390', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'X-Fc-Invocation-Type', 'in' => 'header', 'schema' => [ 'title' => '调用方式:Sync或者Async,默认值:Sync', 'description' => 'The invocation method. Valid values:'."\n" ."\n" .'* **Sync**: synchronous invocations'."\n" .'* **Async**: asynchronous invocations'."\n" ."\n" .'Default value: Sync'."\n", 'type' => 'string', 'required' => false, 'example' => 'Sync', ], ], [ 'name' => 'X-Fc-Log-Type', 'in' => 'header', 'schema' => [ 'title' => '请求返回日志类型, Tail 为返回函数日志最后 4KB 数据,None 或空值则返回不带有日志,默认为 None', 'description' => 'The method used to return logs. Valid values:'."\n" ."\n" .'* **Tail**: returns the last 4 KB of logs that are generated for the current request.'."\n" .'* **None**: No logs are returned for the current request. Default value: None.'."\n", 'type' => 'string', 'required' => false, 'example' => 'None', ], ], [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'service名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => 'service版本, 可以是versionId或者aliasName', 'description' => 'The version ID or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'demoQualifier', 'default' => 'LATEST', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => 'function名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'body', 'in' => 'body', 'schema' => [ 'title' => '事件(event),binary type。函数计算服务将event传递给用户function来处理', 'description' => 'The event to be processed by the function. Set this parameter to a binary string. Function Compute passes the event to the function for processing.'."\n", 'type' => 'string', 'format' => 'byte', 'required' => false, 'example' => '{"key":"value"}', ], ], [ 'name' => 'X-Fc-Stateful-Async-Invocation-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of the asynchronous task. You must enable the asynchronous task feature in advance.'."\n" ."\n" .'> When you use an SDK to invoke a function, we recommend that you specify a business-related ID to facilitate subsequent operations. For example, you can use the video name as the invocation ID for a video-processing function. This way, you can use the ID to check whether the video is processed or terminate the processing of the video. The ID must start with a letter or an underscore (\\_) and can contain letters, digits, underscores (\\_), and hyphens (-). The ID can be up to 128 characters in length. If you do not specify the ID of the asynchronous invocation, Function Compute automatically generates an ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test-invoke-id', ], ], [ 'name' => 'X-Fc-Stateful-Async-Invocation-Enable', 'in' => 'header', 'schema' => [ 'description' => 'Specifies whether to enable the asynchronous task mode for requests. Default value: false. Valid values:'."\n" ."\n" .'* **true**'."\n" .'* **false**'."\n" ."\n" .'> This parameter takes effect only for asynchronous invocations. It does not take effect for synchronous invocations.'."\n", 'type' => 'string', 'required' => false, 'example' => 'true', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The format is **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API. The value is the same as that of the **requestId** parameter in the response.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test-trace-id', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'X-Fc-Error-Type' => [ 'schema' => [ 'title' => '调用function的错误类型,分为HandledInvocationError和UnhandledInvocationError两种', 'type' => 'string', 'example' => 'UnhandledInvocationError', ], ], 'X-Fc-Log-Result' => [ 'schema' => [ 'title' => '调用function产生的日志Tail结果', 'type' => 'string', 'example' => 'demo log result', ], ], 'X-Fc-Code-Checksum' => [ 'schema' => [ 'title' => '代码校验', 'type' => 'string', 'example' => '5697641582914695457', ], ], 'X-Fc-Invocation-Duration' => [ 'schema' => [ 'title' => '本次函数执行的时间,单位是毫秒', 'type' => 'number', ], ], 'X-Fc-Max-Memory-Usage' => [ 'schema' => [ 'title' => '本次函数执行消耗的最大内存,单位是MB', 'type' => 'number', ], ], ], 'schema' => [ 'title' => 'InvokeResponse', 'description' => 'The return value for the request.'."\n", 'type' => 'string', 'format' => 'byte', 'example' => 'hello world', ], ], 202 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"\\"hello world\\"","type":"json"}]', 'title' => 'InvokeFunction', ], 'PutFunctionAsyncInvokeConfig' => [ 'summary' => 'Creates or modifies an asynchronous invocation configuration for a function.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/async-invoke-config', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '22394', 'abilityTreeNodes' => [ 'FEATUREfcBKET2W', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'helloworld', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '别名或版本', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'enumValueTitles' => [], 'example' => 'test', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => '异步调用配置', 'description' => 'The asynchronous invocation configurations.'."\n", 'type' => 'object', 'properties' => [ 'destinationConfig' => [ 'description' => 'The configuration struct of the destination for asynchronous invocations.'."\n", 'required' => false, '$ref' => '#/components/schemas/DestinationConfig', 'example' => '', ], 'maxAsyncEventAgeInSeconds' => [ 'title' => '消息最大存活时长', 'description' => 'The maximum validity period of a message. Valid values: \\[1,604800]. Default value: 86400. Unit: seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '300', ], 'maxAsyncRetryAttempts' => [ 'title' => '异步调用失败后的最大重试次数', 'description' => 'Optional. The maximum number of retries if an asynchronous invocation fails. Valid values: \\[0,8]. If you do not configure this parameter, the default number of retries is 3.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3', ], 'statefulInvocation' => [ 'description' => 'Specifies whether to enable the asynchronous task feature.'."\n" ."\n" .'* **true**'."\n" .'* **false**'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'The information about the asynchronous invocation configuration. ', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for the Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'ksdfjkdmkki***', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '异步调用配置', 'description' => 'The asynchronous invocation configurations.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the alias was created.'."\n", 'type' => 'string', 'example' => '2020-09-10T02:45:02Z', ], 'destinationConfig' => [ 'description' => 'The configuration struct of the destination for asynchronous invocations.'."\n", 'example' => ' {"onSuccess": null,"onFailure": {"destination": "acs:mns:cn-shanghai:123:/queues/xxx/messages"}}', '$ref' => '#/components/schemas/DestinationConfig', ], 'function' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'example' => 'helloworld', ], 'lastModifiedTime' => [ 'title' => '最后更改时间', 'description' => 'The time when the configuration was last modified.'."\n", 'type' => 'string', 'example' => '2020-09-10T02:45:02Z', ], 'maxAsyncEventAgeInSeconds' => [ 'title' => '消息最大存活时长', 'description' => 'The maximum validity period of a message.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '300', ], 'maxAsyncRetryAttempts' => [ 'title' => '异步调用失败后的最大重试次数', 'description' => 'The maximum number of retries allowed after an asynchronous invocation fails.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '3', ], 'qualifier' => [ 'title' => '限定符', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'example' => 'test', ], 'service' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'example' => 'demo-service', ], 'statefulInvocation' => [ 'description' => 'Specifies whether to enable the asynchronous task feature.'."\n" ."\n" .'* **true**'."\n" .'* **false**'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2020-09-10T02:45:02Z\\",\\n \\"destinationConfig\\": {\\n \\"onSuccess\\": {\\n \\"destination\\": \\"\\"\\n },\\n \\"onFailure\\": {\\n \\"destination\\": \\"\\"\\n }\\n },\\n \\"function\\": \\"helloworld\\",\\n \\"lastModifiedTime\\": \\"2020-09-10T02:45:02Z\\",\\n \\"maxAsyncEventAgeInSeconds\\": 300,\\n \\"maxAsyncRetryAttempts\\": 3,\\n \\"qualifier\\": \\"test\\",\\n \\"service\\": \\"demo-service\\",\\n \\"statefulInvocation\\": true\\n}","type":"json"}]', 'title' => 'PutFunctionAsyncInvokeConfig', 'description' => 'StatefulAsyncInvocation specifies the configurations of an asynchronous task. Asynchronous tasks (StatefulAsyncInvocation) allow you to manage the states of asynchronous invocations. The asynchronous task feature is more suitable for task scenarios.'."\n", ], 'DeleteFunctionAsyncInvokeConfig' => [ 'summary' => 'Deletes an asynchronous invocation configuration.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/async-invoke-config', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '22387', 'abilityTreeNodes' => [ 'FEATUREfcBKET2W', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'helloworld', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '限定符', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf*****', ], ], ], 'responses' => [ 204 => [], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteFunctionAsyncInvokeConfig', ], 'GetFunctionAsyncInvokeConfig' => [ 'summary' => 'Obtains asynchronous invocation configurations of a function.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/async-invoke-config', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22398', 'abilityTreeNodes' => [ 'FEATUREfcBKET2W', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'helloworld', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '限定符', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the Function Compute is called. The format is **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Sat, 14 Jul 2017 07:02:38 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the invocation request of Function Compute.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '异步调用配置', 'description' => 'The asynchronous invocation configurations.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the desktop group was created.'."\n", 'type' => 'string', 'example' => '2020-09-10T02:45:02Z', ], 'destinationConfig' => [ 'description' => 'The configuration struct of the destination for asynchronous invocations.'."\n", 'example' => ' {"onSuccess": null,"onFailure": {"destination": "acs:mns:cn-shanghai:123:/queues/xxx/messages"}}', '$ref' => '#/components/schemas/DestinationConfig', ], 'function' => [ 'title' => '函数名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'example' => 'helloworld', ], 'lastModifiedTime' => [ 'title' => '最后更改时间', 'description' => 'The time when the configuration was last modified.'."\n", 'type' => 'string', 'example' => '2020-09-10T02:45:02Z', ], 'maxAsyncEventAgeInSeconds' => [ 'title' => '消息最大存活时长', 'description' => 'The maximum validity period of a message.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '300', ], 'maxAsyncRetryAttempts' => [ 'title' => '异步调用失败后的最大重试次数', 'description' => 'The maximum number of retries allowed after an asynchronous invocation fails.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '3', ], 'qualifier' => [ 'title' => '限定符', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'example' => 'test', ], 'service' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'example' => 'demo-service', ], 'statefulInvocation' => [ 'description' => 'Indicates whether the asynchronous task feature is enabled.'."\n" ."\n" .'* **true**: The asynchronous task feature is enabled.'."\n" .'* **false**: The asynchronous task feature is disabled.'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"createdTime\\": \\"2020-09-10T02:45:02Z\\",\\n \\"destinationConfig\\": {\\n \\"onSuccess\\": {\\n \\"destination\\": \\"\\"\\n },\\n \\"onFailure\\": {\\n \\"destination\\": \\"\\"\\n }\\n },\\n \\"function\\": \\"helloworld\\",\\n \\"lastModifiedTime\\": \\"2020-09-10T02:45:02Z\\",\\n \\"maxAsyncEventAgeInSeconds\\": 300,\\n \\"maxAsyncRetryAttempts\\": 3,\\n \\"qualifier\\": \\"test\\",\\n \\"service\\": \\"demo-service\\",\\n \\"statefulInvocation\\": true\\n}","type":"json"}]', 'title' => 'GetFunctionAsyncInvokeConfig', 'description' => 'StatefulAsyncInvocation indicates whether the asynchronous task feature is enabled. If the value of StatefulAsyncInvocation is true, the asynchronous task feature is enabled. All asynchronous invocations change to asynchronous task mode.', ], 'ListFunctionAsyncInvokeConfigs' => [ 'summary' => 'Queries all asynchronous invocation configurations of a function in a service. If the number of configurations exceeds the value of the limit parameter, the nextToken parameter is returned. You can use the nextToken parameter to query the next page of results.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/async-invoke-configs', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22406', 'abilityTreeNodes' => [ 'FEATUREfcBKET2W', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'helloworld', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '最多返回个数', 'description' => 'The maximum number of resources to return. Default value: 20. The value cannot exceed 100. The number of returned configurations is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'title' => '下次查询token', 'description' => 'The token required to obtain more results. If the number of resources exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'required' => false, 'example' => '8bj81uI8n****', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Code-Checksum', 'in' => 'header', 'schema' => [ 'description' => 'The CRC-64 value of the function code package. This value is used to check data integrity. The value is automatically calculated by the tool.'."\n", 'type' => 'string', 'required' => false, 'example' => '1506052139770049xxxx', ], ], [ 'name' => 'X-Fc-Log-Type', 'in' => 'header', 'schema' => [ 'description' => 'The method used to return logs. Valid values:'."\n" ."\n" .'* **Tail**: returns the last 4 KB of logs that are generated for the current request.'."\n" .'* **None**: No logs are returned for the current request. Default value: None.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Tail', ], ], [ 'name' => 'X-Fc-Invocation-Type', 'in' => 'header', 'schema' => [ 'description' => 'The invocation method.'."\n" ."\n" .'* **Sync**: synchronous'."\n" .'* **Async**: asynchronous'."\n", 'type' => 'string', 'required' => false, 'example' => 'Async', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the Function Compute is called. The format is **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Sat, 14 Jul 2017 07:02:38 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the invocation request of Function Compute.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], [ 'name' => 'AccountID', 'in' => 'host', 'schema' => [ 'type' => 'string', 'deprecated' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '查询异步配置响应', 'description' => 'The data struct returned.'."\n", 'type' => 'object', 'properties' => [ 'configs' => [ 'title' => '异步配置列表', 'description' => 'The list of asynchronous invocation configurations.'."\n", 'type' => 'array', 'items' => [ 'title' => '异步调用配置', 'description' => 'The asynchronous invocation configurations.'."\n", 'type' => 'object', 'properties' => [ 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the asynchronous invocation configuration was created.'."\n", 'type' => 'string', 'example' => '2020-09-10T02:45:02Z', ], 'destinationConfig' => [ 'description' => 'The configuration struct of the destination for asynchronous invocations. If you did not configure this parameter, this parameter is null.'."\n", 'example' => ' {"onSuccess": null,"onFailure": {"destination": "acs:mns:cn-shanghai:123:/queues/xxx/messages"}}', '$ref' => '#/components/schemas/DestinationConfig', ], 'function' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'example' => 'helloworld', ], 'lastModifiedTime' => [ 'title' => '最后更改时间', 'description' => 'The time when the configuration was last modified.'."\n", 'type' => 'string', 'example' => '2020-09-10T02:45:02Z', ], 'maxAsyncEventAgeInSeconds' => [ 'title' => '消息最大存活时长', 'description' => 'The maximum validity period of a message. If you have not configured this parameter, this parameter is null.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '300', ], 'maxAsyncRetryAttempts' => [ 'title' => '异步调用失败后的最大重试次数', 'description' => 'The maximum number of retries allowed after an asynchronous invocation fails. If you have not configured this parameter, this parameter is null.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '3', ], 'qualifier' => [ 'title' => '限定符', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'example' => 'test', ], 'service' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'example' => 'demo-service', ], 'statefulInvocation' => [ 'description' => 'Specifies whether to enable the asynchronous task feature. Valid values:'."\n" ."\n" .'* **true**'."\n" .'* **false**'."\n" ."\n" .'If you have not configured this parameter, this parameter is null.'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], 'nextToken' => [ 'title' => '下次查询token', 'description' => 'The token used to obtain more results.'."\n", 'type' => 'string', 'example' => 'caeba0be03****f84eb48b699f0a4883', ], ], ], ], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"configs\\": [\\n {\\n \\"createdTime\\": \\"2020-09-10T02:45:02Z\\",\\n \\"destinationConfig\\": {\\n \\"onSuccess\\": {\\n \\"destination\\": \\"\\"\\n },\\n \\"onFailure\\": {\\n \\"destination\\": \\"\\"\\n }\\n },\\n \\"function\\": \\"helloworld\\",\\n \\"lastModifiedTime\\": \\"2020-09-10T02:45:02Z\\",\\n \\"maxAsyncEventAgeInSeconds\\": 300,\\n \\"maxAsyncRetryAttempts\\": 3,\\n \\"qualifier\\": \\"test\\",\\n \\"service\\": \\"demo-service\\",\\n \\"statefulInvocation\\": true\\n }\\n ],\\n \\"nextToken\\": \\"caeba0be03****f84eb48b699f0a4883\\"\\n}","type":"json"}]', 'title' => 'ListFunctionAsyncInvokeConfigs', 'description' => 'StatefulAsyncInvocation indicates whether the asynchronous task feature is enabled. If StatefulAsyncInvocation is set to true, the asynchronous task is enabled. All asynchronous invocations to the function corresponding to this configuration change to asynchronous task mode.'."\n", ], 'DeleteFunctionOnDemandConfig' => [ 'summary' => 'Deletes a concurrency configuration of a function.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/on-demand-config', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '34735', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'service_Name', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-function', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '服务别名或LATEST,不支持版本。', 'description' => 'The service alias or LATEST. Versions are not supported.'."\n", 'type' => 'string', 'required' => true, 'example' => 'prod', ], ], [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'description' => 'If the ETag specified in a request matches the ETag value of the object, OSS transmits the object and returns 200 OK. If the ETag specified in a request does not match the ETag value of the object, OSS returns 412 Precondition Failed.'."\n", 'type' => 'string', 'required' => false, 'example' => 'e19d5cd5af0378da05f63f891c7467af', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID, which is the unique identifier of a trace.'."\n", 'type' => 'string', 'required' => false, 'example' => 'r9s89isisi****', ], ], ], 'responses' => [ 200 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteFunctionOnDemandConfig', ], 'GetFunctionOnDemandConfig' => [ 'summary' => 'Obtains configurations of on-demand instances.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/on-demand-config', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '34736', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'description' => 'Service alias or LATEST. Other versions are not supported.'."\n", 'type' => 'string', 'required' => true, 'example' => 'prod', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time on which the function is invoked. The format of the value is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The unique ID of the trace.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => '当前按量配置的标识,用于修改时提供条件校验(If-Match),若传入的ETag与实际的不一致,则返回412 PreconditionFailed错误。', 'type' => 'string', ], ], ], 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'resource' => [ 'title' => 'Id of the request', 'description' => 'The description of the resource.'."\n", 'type' => 'string', 'example' => '12345#servierName#qualifier#functionName', ], 'maximumInstanceCount' => [ 'description' => 'The maximum number of instances.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '10', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"resource\\": \\"12345#servierName#qualifier#functionName\\",\\n \\"maximumInstanceCount\\": 10\\n}","type":"json"}]', 'title' => 'GetFunctionOnDemandConfig', ], 'ListOnDemandConfigs' => [ 'summary' => 'Queries on-demand instance configurations a function.', 'path' => '/2021-04-06/on-demand-configs', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '28632', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'prefix', 'in' => 'query', 'schema' => [ 'title' => '限定返回的资源名称,名称必须以Prefix作为前缀,例如Prefix是a,则返回的资源名均是以a开始的。', 'description' => 'The prefix that names of returned resources must contain. For example, if you set prefix to a, the names of returned resources must start with a.'."\n", 'type' => 'string', 'required' => false, 'example' => 'prefix_text', ], ], [ 'name' => 'startKey', 'in' => 'query', 'schema' => [ 'title' => '设定结果从startKey之后(包括startKey)按字母排序的第一个开始返回。', 'description' => 'The position from which the list begins. Results are sorted in alphabetical order and those results following startKey (inclusive) are listed.'."\n", 'type' => 'string', 'required' => false, 'example' => 'nextservice', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的Token从返回结果中获取。', 'description' => 'The token required to obtain more results. If the number of layers exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'required' => false, 'example' => '8bj81uI8n****', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '限定此次返回资源的数量。如果不设定,默认返回20,最大不能超过100。返回结果可以小于指定的数量,但不会多于指定的数量。', 'description' => 'The maximum number of results to return. If this parameter is not set, 20 is returned by default, and the maximum value cannot exceed 100. The number of returned configurations is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The returned body.'."\n", 'type' => 'object', 'properties' => [ 'configs' => [ 'title' => '预留实例配置', 'description' => 'The configurations of on-demand instances.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The configured parameters.'."\n", 'example' => '[{\'maximumInstanceCount\': 10, \'resource\': \'services/serviceName-bb7f36eb-7f1b-4c42-8f64-401b32ecbf31.aliasName/functions/functionName\'}]', '$ref' => '#/components/schemas/OnDemandConfig', ], ], 'nextToken' => [ 'title' => '用来返回更多的查询结果。如果这个值没有返回,则说明没有更多结果。', 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. If this parameter is not returned, all the layers are returned.'."\n", 'type' => 'string', 'example' => 'next_token', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"configs\\": [\\n {\\n \\"resource\\": \\"services/serviceName/function/functionName\\",\\n \\"maximumInstanceCount\\": 10\\n }\\n ],\\n \\"nextToken\\": \\"next_token\\"\\n}","type":"json"}]', 'title' => 'ListOnDemandConfigs', ], 'PutFunctionOnDemandConfig' => [ 'summary' => 'Creates a function rule.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/on-demand-config', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '34734', 'abilityTreeNodes' => [ 'FEATUREfcVF016G', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-function', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'description' => 'The service alias or latest version. Other versions are not supported.'."\n", 'type' => 'string', 'required' => true, 'example' => 'prod', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'description' => 'The request body.'."\n", 'type' => 'object', 'properties' => [ 'maximumInstanceCount' => [ 'description' => 'The maximum number of on-demand instances. For more information, see [Configure provisioned instances and auto scaling rules](~~185038~~).'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10', ], ], 'required' => false, ], ], [ 'name' => 'If-Match', 'in' => 'header', 'schema' => [ 'description' => 'If the ETag specified in the request matches the ETag value of the object, the object and 200 OK are returned. Otherwise, 412 Precondition Failed is returned.'."\n", 'type' => 'string', 'required' => false, 'example' => 'e19d5cd5af0378da05f63f891c7467af', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The unique ID of the trace.'."\n", 'type' => 'string', 'required' => false, 'example' => 'r9s89isisi****', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => '当前按量配置的标识,用于修改时提供条件校验(If-Match),若传入的ETag与实际的不一致,则返回412 PreconditionFailed错误。', 'type' => 'string', ], ], ], 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The response body.'."\n", 'type' => 'object', 'properties' => [ 'resource' => [ 'description' => 'The description of the resource.'."\n", 'type' => 'string', 'example' => '12345#servierName#qualifier#functionName', ], 'maximumInstanceCount' => [ 'description' => 'The maximum number of instances.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '10', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"resource\\": \\"12345#servierName#qualifier#functionName\\",\\n \\"maximumInstanceCount\\": 10\\n}","type":"json"}]', 'title' => 'PutFunctionOnDemandConfig', ], 'GetProvisionConfig' => [ 'summary' => 'Queries the details of provisioned configurations.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/provision-config', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22380', 'abilityTreeNodes' => [ 'FEATUREfcHRC0TU', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'allowEmptyValue' => false, 'schema' => [ 'title' => '别名名称', 'description' => 'The name of the alias.'."\n", 'type' => 'string', 'required' => true, 'example' => 'prod', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => 'provision config etag, 以确保实际更改的 provision config 和期望更改的 provision config 是一致的', 'type' => 'string', ], ], ], 'schema' => [ 'title' => 'provisionConfigResponse', 'description' => 'The provisioned instance configurations of the function.'."\n", 'type' => 'object', 'properties' => [ 'resource' => [ 'title' => '资源描述', 'description' => 'The resource description.'."\n", 'type' => 'string', 'example' => '12345#servierName#qualifier#functionName', ], 'target' => [ 'title' => '目标资源个数', 'description' => 'The expected number of resources.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '5', ], 'current' => [ 'title' => '实际资源个数', 'description' => 'The number of current resources.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1', ], 'scheduledActions' => [ 'title' => '定时策略配置', 'description' => 'The scheduled auto scaling policy.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The details about the scheduled scaling policy. You can use a scheduled scaling policy to flexibly configure provisioned instances. You can set the number of provisioned instances to a specific value at the scheduled time. This way, the number of provisioned instances can meet the concurrency requirements of your business.'."\n", 'example' => '[ { "Name":"action_1", "StartTime":"2020-11-01T10:00:00Z", "EndTime":"2020-11-30T10:00:00Z", "TargetValue":50, "ScheduleExpression":"cron(0 0 20 * * *)" }, { "Name":"action_2", "StartTime":"2020-11-01T10:00:00Z", "EndTime":"2020-11-30T10:00:00Z", "TargetValue":10, "ScheduleExpression":"cron(0 0 22 * * *)" } ]', '$ref' => '#/components/schemas/ScheduledActions', ], ], 'targetTrackingPolicies' => [ 'title' => '指标追踪伸缩策略配置', 'description' => 'The configurations of the metric-based scaling policy.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The details about the metric-based scaling policy. Provisioned instances are scaled every minute based on the concurrency usage rate of provisioned instances.'."\n" ."\n" .'* When the metric value exceeds the value of metricTarget, the system starts to scale out provisioned instances with an active policy to restore the metric value close to the value of metricTarget.'."\n" .'* When the metric value is lower than the value metricTarget, the system starts to scale in provisioned instances with a conservative policy so that the metric value gradually reaches the value metricTarget.'."\n" ."\n" .'After you specify the maximum and minimum numbers of provisioned instances, the system scales in or out provisioned instances within the range from the minimum number to the maximum number. If the number of provisioned instances reaches the specified maximum or minimum number, scaling stops.'."\n", 'example' => '[ { "Name": "action_1", "StartTime": "2020-11-01T10:00:00Z", "EndTime": "2020-11-30T10:00:00Z", "MetricType": "ProvisionedConcurrencyUtilization", "MetricTarget": 0.6, "MinCapacity": 10, "MaxCapacity": 100 } ]', '$ref' => '#/components/schemas/TargetTrackingPolicies', ], ], 'currentError' => [ 'title' => '预留实例创建失败时的错误信息', 'description' => 'The error message returned if a provisioned instance fails to be created.'."\n", 'type' => 'string', 'example' => 'image not found', ], 'alwaysAllocateCPU' => [ 'title' => '是否始终分配CPU给函数实例。', 'description' => 'Specifies whether to always allocate CPU resources to function instances.'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"resource\\": \\"12345#servierName#qualifier#functionName\\",\\n \\"target\\": 5,\\n \\"current\\": 1,\\n \\"scheduledActions\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"target\\": 0,\\n \\"scheduleExpression\\": \\"\\"\\n }\\n ],\\n \\"targetTrackingPolicies\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"metricType\\": \\"\\",\\n \\"metricTarget\\": 0,\\n \\"minCapacity\\": 0,\\n \\"maxCapacity\\": 0\\n }\\n ],\\n \\"currentError\\": \\"image not found\\",\\n \\"alwaysAllocateCPU\\": true\\n}","type":"json"}]', 'title' => 'GetProvisionConfig', ], 'ListProvisionConfigs' => [ 'summary' => 'Queries configurations of provisioned instances.', 'path' => '/2021-04-06/provision-configs', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22391', 'abilityTreeNodes' => [ 'FEATUREfcHRC0TU', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '限定此次返回资源的数量。如果不设定,默认返回20,最大不能超过100。返回结果可能小于指定的数量,但不会多于指定的数量 ', 'description' => 'The maximum number of results to return. Default value: 20. Maximum value: 100. The number of returned resources is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '20', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'allowEmptyValue' => false, 'schema' => [ 'title' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询的token从返回结果中获取', 'description' => 'The token required to obtain more results. You do not need to specify this parameter in the first call. If a NextToken value is returned by a previous call, more results are available.'."\n", 'type' => 'string', 'required' => false, 'example' => 'demoNextToken', ], ], [ 'name' => 'serviceName', 'in' => 'query', 'schema' => [ 'title' => '限定返回的资源名称必须属于该service', 'description' => 'The name of the service to which resources belong.'."\n", 'type' => 'string', 'required' => false, 'example' => 'serviceName', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '限定返回的资源名称必须属于该qualifier。qualifier只能是aliasName,且必须和serviceName共同使用', 'description' => 'The qualifier of the service to which resources belong. The qualifier must be aliasName and used together with the serviceName parameter.'."\n", 'type' => 'string', 'required' => false, 'example' => 'prod', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'listProvisionConfigResponse', 'description' => 'The list of provisioned instance configurations.'."\n", 'type' => 'object', 'properties' => [ 'nextToken' => [ 'title' => '下次查询的起始token ', 'description' => 'The token used to obtain more results.'."\n", 'type' => 'string', 'example' => 'demoNextToken', ], 'provisionConfigs' => [ 'title' => '预留实例列表', 'description' => 'The provisioned instance configurations.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The provisioned configuration details.'."\n", 'type' => 'object', 'properties' => [ 'resource' => [ 'title' => '资源描述', 'description' => 'The description of the resource.'."\n", 'type' => 'string', 'example' => '12345#servierName#qualifier#functionName', ], 'target' => [ 'title' => '目标资源个数', 'description' => 'The expected number of resources.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '5', ], 'current' => [ 'title' => '实际资源个数', 'description' => 'The number of current resources.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '5', ], 'scheduledActions' => [ 'title' => '定时策略配置', 'description' => 'The configurations of scheduled auto scaling.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The details about the scheduled scaling policy. You can use the scheduled scaling policy to flexibly configure provisioned instances. You can set the number of provisioned instances to a desired value at the scheduled time. This way, the number of provisioned instances can meet the concurrency requirements of your business.'."\n", 'example' => '[ { "Name": "action_1", "StartTime": "2020-11-01T10:00:00Z", "EndTime": "2020-11-30T10:00:00Z", "TargetValue": 50, "ScheduleExpression": "cron(0 0 20 * * *)" }, { "Name": "action_2", "StartTime": "2020-11-01T10:00:00Z", "EndTime": "2020-11-30T10:00:00Z", "TargetValue": 10, "ScheduleExpression": "cron(0 0 22 * * *)" } ]', '$ref' => '#/components/schemas/ScheduledActions', ], ], 'targetTrackingPolicies' => [ 'title' => '指标追踪伸缩策略配置', 'description' => 'The metric-based scaling policy.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The details about the metric-based scaling policy. Provisioned instances are scaled every minute based on the concurrency usage rate of provisioned instances.'."\n" ."\n" .'* When the metric value exceeds the value of metricTarget, the system starts to scale out provisioned instances with an active policy to restore the metric value close to the value of metricTarget.'."\n" .'* When the metric value is lower than the value metricTarget, the system starts to scale in provisioned instances with a conservative policy so that the metric value gradually reaches the value metricTarget.'."\n" ."\n" .'If you specify the maximum and minimum numbers of provisioned instances, the system scales provisioned instances within the range. If the number of provisioned instances reaches the specified maximum or minimum number, scaling stops.'."\n", 'example' => '[ { "Name": "action_1", "StartTime": "2020-11-01T10:00:00Z", "EndTime": "2020-11-30T10:00:00Z", "MetricType": "ProvisionedConcurrencyUtilization", "MetricTarget": 0.6, "MinCapacity": 10, "MaxCapacity": 100, } ]', '$ref' => '#/components/schemas/TargetTrackingPolicies', ], ], 'currentError' => [ 'title' => '预留实例创建失败时的错误信息', 'description' => 'The error message returned if a provisioned instance fails to be created.'."\n", 'type' => 'string', 'example' => 'image not found', ], 'alwaysAllocateCPU' => [ 'title' => '是否始终分配CPU给函数实例。', 'description' => 'Specifies whether to always allocate CPU resources to function instances.'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], ], ], ], 400 => [], 403 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"demoNextToken\\",\\n \\"provisionConfigs\\": [\\n {\\n \\"resource\\": \\"12345#servierName#qualifier#functionName\\",\\n \\"target\\": 5,\\n \\"current\\": 5,\\n \\"scheduledActions\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"target\\": 0,\\n \\"scheduleExpression\\": \\"\\"\\n }\\n ],\\n \\"targetTrackingPolicies\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"metricType\\": \\"\\",\\n \\"metricTarget\\": 0,\\n \\"minCapacity\\": 0,\\n \\"maxCapacity\\": 0\\n }\\n ],\\n \\"currentError\\": \\"image not found\\",\\n \\"alwaysAllocateCPU\\": true\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListProvisionConfigs', ], 'PutProvisionConfig' => [ 'summary' => 'Creates provisioned configurations.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/provision-config', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '22389', 'abilityTreeNodes' => [ 'FEATUREfcHRC0TU', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'allowEmptyValue' => false, 'schema' => [ 'title' => '别名名称', 'description' => 'The service alias or latest version. Other versions are not supported.'."\n", 'type' => 'string', 'required' => true, 'example' => 'prod', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'title' => '预留实例的配置', 'description' => 'The provisioned instance configurations.'."\n", 'type' => 'object', 'properties' => [ 'target' => [ 'title' => '预留的目标资源个数', 'description' => 'The number of provisioned instances. Valid values: \\[0,10000].'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1', ], 'scheduledActions' => [ 'title' => '定时策略配置', 'description' => 'The configurations of scheduled auto scaling.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The detailed configurations of the scheduled auto scaling.'."\n", 'required' => false, '$ref' => '#/components/schemas/ScheduledActions', ], 'required' => false, ], 'targetTrackingPolicies' => [ 'title' => '指标追踪伸缩策略配置', 'description' => 'The configurations of metric-based auto scaling.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The detailed configurations of metric-based auto scaling.'."\n", 'required' => false, '$ref' => '#/components/schemas/TargetTrackingPolicies', ], 'required' => false, ], 'alwaysAllocateCPU' => [ 'title' => '当实例进入空闲状态时,是否继续分配CPU。', 'description' => 'Specify whether to always allocate CPUs. Default value: true.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value follows the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the invocation request of Function Compute.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'provisionConfigResponse', 'description' => 'The provisioned instance configurations.'."\n", 'type' => 'object', 'properties' => [ 'resource' => [ 'title' => '资源描述', 'description' => 'The description of the resource.'."\n", 'type' => 'string', 'example' => '"12345#servierName#qualifier#functionName"', ], 'target' => [ 'title' => '目标资源个数', 'description' => 'The number of target provisioned instances.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '5', ], 'current' => [ 'title' => '实际资源个数', 'description' => 'The actual number of provisioned instances.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1', ], 'scheduledActions' => [ 'title' => '定时策略配置', 'description' => 'The configuration of scheduled auto scaling.'."\n", 'type' => 'array', 'items' => [ 'description' => 'Details about the scheduled scaling policy. You can use the scheduled scaling policy to flexibly configure provisioned instances. You can specify the number of provisioned instances to the desired value at the scheduled time. This way, the number of provisioned instances can meet the concurrency requirements of your business.'."\n", 'example' => '[ { "Name": "action_1", "StartTime": "2020-11-01T10:00:00Z", "EndTime": "2020-11-30T10:00:00Z", "TargetValue": 50, "ScheduleExpression": "cron(0 0 20 * * *)" }, { "Name": "action_2", "StartTime": "2020-11-01T10:00:00Z", "EndTime": "2020-11-30T10:00:00Z", "TargetValue": 10, "ScheduleExpression": "cron(0 0 22 * * *)" } ]', '$ref' => '#/components/schemas/ScheduledActions', ], ], 'targetTrackingPolicies' => [ 'title' => '指标追踪伸缩策略配置', 'description' => 'The configurations of metric-based auto scaling.'."\n", 'type' => 'array', 'items' => [ 'description' => 'Details about the metric-based scaling policy. Provisioned instances are scaled every minute based on the concurrency usage rate of provisioned instances.'."\n" ."\n" .'* When the metric value exceeds the value of metricTarget, the system starts to scale out provisioned instances with an active policy to restore the metric value close to the value of metricTarget.'."\n" .'* When the metric value is lower than the value metricTarget, the system starts to scale in provisioned instances with a conservative policy so that the metric value gradually reaches the value metricTarget.'."\n" ."\n" .'If you specify the maximum and minimum numbers of provisioned instances, the system scales provisioned instances within the range. If the number of provisioned instances reaches the specified maximum or minimum number, scaling stops.'."\n", 'example' => '[ { "Name": "action_1", "StartTime": "2020-11-01T10:00:00Z", "EndTime": "2020-11-30T10:00:00Z", "MetricType": "ProvisionedConcurrencyUtilization", "MetricTarget": 0.6, "MinCapacity": 10, "MaxCapacity": 100, } ]', '$ref' => '#/components/schemas/TargetTrackingPolicies', ], ], 'alwaysAllocateCPU' => [ 'title' => '是否始终分配CPU给函数实例。', 'description' => 'Specifies whether to always allocate CPU to a function instance.'."\n", 'type' => 'boolean', 'example' => 'true', ], ], ], ], 400 => [], 403 => [], [], 409 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"resource\\": \\"\\\\\\"12345#servierName#qualifier#functionName\\\\\\"\\",\\n \\"target\\": 5,\\n \\"current\\": 1,\\n \\"scheduledActions\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"target\\": 0,\\n \\"scheduleExpression\\": \\"\\"\\n }\\n ],\\n \\"targetTrackingPolicies\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"startTime\\": \\"\\",\\n \\"endTime\\": \\"\\",\\n \\"metricType\\": \\"\\",\\n \\"metricTarget\\": 0,\\n \\"minCapacity\\": 0,\\n \\"maxCapacity\\": 0\\n }\\n ],\\n \\"alwaysAllocateCPU\\": true\\n}","type":"json"}]', 'title' => 'PutProvisionConfig', ], 'StopStatefulAsyncInvocation' => [ 'summary' => 'Stops an asynchronous task.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/stateful-async-invocations/{invocationId}', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '35586', 'abilityTreeNodes' => [ 'FEATUREfcBKET2W', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the service to which the asynchronous task belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the function to which the asynchronous task belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-function', ], ], [ 'name' => 'invocationId', 'in' => 'path', 'schema' => [ 'description' => 'The ID of the instance that is used to run the asynchronous task.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-id', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'description' => 'The version or alias of the service to which the asynchronous task belongs.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Sat, 14 Jul 2017 07:02:38 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [], ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'StopStatefulAsyncInvocation', 'description' => 'StatefulAsyncInvocation represents asynchronous tasks. Asynchronous tasks (StatefulAsyncInvocation) allow you to manage the states of asynchronous invocations. The asynchronous task feature is more suitable for task scenarios.'."\n", ], 'ListStatefulAsyncInvocationFunctions' => [ 'summary' => 'Queries all function resources that have enabled asynchronous tasks within the current account.', 'path' => '/2021-04-06/stateful-async-invocation-functions', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '123877', 'abilityTreeNodes' => [ 'FEATUREfcBKET2W', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '限定此次返回资源的数量。如果不设定,默认返回20,最大不能超过100。返回结果可以小于指定的数量,但不会多于指定的数量。', 'description' => 'The maximum number of results to return. Default value: 20. Maximum value: 100. The number of returned results is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '0', 'example' => '20', 'default' => '20', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'title' => '用来标记当前开始读取的位置,置空表示从头开始。第一次查询不需要提供这个参数,后续查询的Token从前一次查询的返回结果中获取。', 'description' => 'The starting position of the query. If this parameter is left empty, the query starts from the beginning. You do not need to specify this parameter in the first call. The tokens for subsequent queries are obtained from previous returned results.'."\n", 'type' => 'string', 'required' => false, 'example' => '""', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'title' => '您的阿里云账号(主账号)ID。', 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '12348*****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'title' => '发起API调用的日期,用于对请求签名。格式为yyyy-mm-ddhh:mm:ss。', 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'title' => '用于链路追踪的ID。', 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'duytnd-Xsdfasfd***', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '返回结构体。', 'description' => 'The returned struct.'."\n", 'type' => 'object', 'properties' => [ 'nextToken' => [ 'title' => '用来表示当前调用返回读取到的位置,空代表数据已经读取完毕。', 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.'."\n", 'type' => 'string', 'example' => '""', ], 'data' => [ 'title' => '返回的实际数据列表。', 'description' => 'The details of returned data.'."\n", 'type' => 'array', 'items' => [ 'title' => '任务配置所属的服务及函数元数据。', 'description' => 'The metadata of the service and function to which the asynchronous task belongs.'."\n", '$ref' => '#/components/schemas/AsyncConfigMeta', ], ], ], ], ], ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"serviceName\\": \\"serviceName\\",\\n \\"functionName\\": \\"functionName\\",\\n \\"qualifier\\": \\"LATEST\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListStatefulAsyncInvocationFunctions', 'description' => 'StatefulAsyncInvocation represents asynchronous tasks. Asynchronous tasks (StatefulAsyncInvocation) allow you to manage the states of asynchronous invocations. The asynchronous task feature is more suitable for task scenarios.'."\n", ], 'GetStatefulAsyncInvocation' => [ 'summary' => 'Gets asynchronous task records that meet specified conditions.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/stateful-async-invocations/{invocationId}', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '35585', 'abilityTreeNodes' => [ 'FEATUREfcBKET2W', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'description' => 'The name of service to which the asynchronous tasks belong.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'description' => 'The name of function to which the asynchronous task belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-function', ], ], [ 'name' => 'invocationId', 'in' => 'path', 'schema' => [ 'description' => 'The ID of the asynchronous task.'."\n" ."\n" .'> If you use an SDK to invoke a function, we recommend that you specify a business-related ID to facilitate subsequent operations. For example, a video processing function can use video file names as invocation IDs. This way, you can easily check whether a video is successfully processed or terminated before it is processed. The ID must start with a letter or an underscore (\\_) and can contain letters, digits (0-9), underscores (\\_), and hyphens (-). The ID can be up to 128 characters in length. If you do not specify the ID of an asynchronous invocation, Function Compute automatically generates an ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'e026ae92-61e5-472f-b32d-1c9e3c4e****', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'description' => 'The version or alias of the service to which the asynchronous task belongs.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Code-Checksum', 'in' => 'header', 'schema' => [ 'description' => 'The CRC-64 value of the function code package. This value is used to check data integrity. The value is automatically calculated by a tool.'."\n", 'type' => 'string', 'required' => false, 'example' => '1506052139770049xxxx', ], ], [ 'name' => 'X-Fc-Log-Type', 'in' => 'header', 'schema' => [ 'description' => 'The method used to return logs. Default value: None. Valid values:'."\n" ."\n" .'* **Tail**: returns the last 4 KB of logs that are generated for the current request.'."\n" .'* **None**: does not return logs for the request.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Tail', ], ], [ 'name' => 'X-Fc-Invocation-Type', 'in' => 'header', 'schema' => [ 'description' => 'The method used to invoke the function. Valid values:'."\n" ."\n" .'* **Sync**: synchronous invocation mode'."\n" .'* **Async**: asynchronous invocation mode'."\n", 'type' => 'string', 'required' => false, 'example' => 'Async', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Sat, 14 Jul 2017 07:02:38 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'description' => 'The information about the asynchronous task. The returnPayload parameter is in beta test. If you want to use this parameter, [contact us](~~53087~~).'."\n", 'example' => 'Alibaba Cloud CLI', '$ref' => '#/components/schemas/StatefulAsyncInvocation', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"functionName\\": \\"functionName\\",\\n \\"serviceName\\": \\"serviceName\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"invocationId\\": \\"cxxdfd\\",\\n \\"status\\": \\"Running\\",\\n \\"startedTime\\": 1633449590,\\n \\"endTime\\": 1633449599,\\n \\"destinationStatus\\": \\"Succeeded\\",\\n \\"invocationErrorMessage\\": \\"UnhandledInvocationError\\",\\n \\"invocationPayload\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"alreadyRetriedTimes\\": 3,\\n \\"requestId\\": \\"ABA740D4-4BA6-5293-9FD1-882707EADC37\\",\\n \\"instanceId\\": \\"D4-4BA6-5293-9FD1-882707E\\",\\n \\"events\\": [\\n {\\n \\"eventId\\": 1,\\n \\"status\\": \\"Enqueued\\",\\n \\"timestamp\\": 1647420449721,\\n \\"eventDetail\\": \\"{\\\\\\"Error\\\\\\":\\\\\\"UnhandledInvocationError\\\\\\"}\\"\\n }\\n ],\\n \\"durationMs\\": 100,\\n \\"returnPayload\\": \\"my-result\\"\\n}","type":"json"}]', 'title' => 'GetStatefulAsyncInvocation', 'description' => 'StatefulAsyncInvocation represents asynchronous tasks. Asynchronous tasks (StatefulAsyncInvocation) allow you to manage the states of asynchronous invocations. The asynchronous task feature is more suitable for task scenarios.'."\n", ], 'ListStatefulAsyncInvocations' => [ 'summary' => 'Queries all asynchronous invocations in an asynchronous task that meets specific conditions.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/stateful-async-invocations', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '35581', 'abilityTreeNodes' => [ 'FEATUREfcBKET2W', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the service to which the asynchronous task belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the function to which the asynchronous task belongs.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-function', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'description' => 'The version or alias of the service to which the asynchronous task belongs.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', ], ], [ 'name' => 'status', 'in' => 'query', 'schema' => [ 'description' => 'The state of the asynchronous task.'."\n" ."\n" .'* **Enqueued**: The asynchronous task is enqueued and is waiting to be executed.'."\n" .'* **Succeeded**: The invocation succeeded.'."\n" .'* **Failed**: The invocation failed.'."\n" .'* **Running**: The invocation is being executed.'."\n" .'* **Stopped**: The invocation was terminated.'."\n" .'* **Stopping**: The invocation is being terminated.'."\n" .'* **Invalid**: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.'."\n" .'* **Expired**: The maximum validity period of messages is specified for the asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of messages elapsed.'."\n" .'* **Retrying**: The asynchronous task is being retried due to an execution error.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Running', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'description' => 'The token required to obtain more results. You do not need to specify this parameter in the first call. If a NextToken value is returned by a previous call, more results are available.'."\n", 'type' => 'string', 'required' => false, 'example' => 'caeba0****be03f84eb48b699f0a4883', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'description' => 'The maximum number of asynchronous tasks to be returned. The default value is 20. Valid values: \\[1,100].'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'startedTimeBegin', 'in' => 'query', 'schema' => [ 'description' => 'The start time of the asynchronous task.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1640966400000', ], ], [ 'name' => 'startedTimeEnd', 'in' => 'query', 'schema' => [ 'description' => 'The end time of the asynchronous task.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1640966400000', ], ], [ 'name' => 'sortOrderByTime', 'in' => 'query', 'schema' => [ 'description' => 'The method that you want to use to sort the returned asynchronous tasks.'."\n" ."\n" .'* **asc**: the ascending order'."\n" .'* **desc**: the descending order'."\n", 'type' => 'string', 'required' => false, 'example' => 'desc', ], ], [ 'name' => 'invocationIdPrefix', 'in' => 'query', 'schema' => [ 'description' => 'The name prefix of the asynchronous tasks. This parameter is used to limit the names of the returned asynchronous tasks. For example, if you set the `invocationidPrefix` parameter to `job`, the names of the returned invocations must start with `job`.'."\n", 'type' => 'string', 'required' => false, 'example' => 'abcxxx', ], ], [ 'name' => 'includePayload', 'in' => 'query', 'schema' => [ 'description' => '* Specifies whether to return the invocationPayload parameter in the response. **true**: returns the `invocationPayload` parameter in the response.``'."\n" .'* **false**: does not return the `invocationPayload` parameter in the response.``'."\n" ."\n" .'> The `invocationPayload` parameter indicates the input parameters of an asynchronous task.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Code-Checksum', 'in' => 'header', 'schema' => [ 'description' => 'The CRC-64 value of the function code package. This value is used to check data integrity. The value is automatically calculated by the tool.'."\n", 'type' => 'string', 'required' => false, 'example' => '1506052139770049xxxx', ], ], [ 'name' => 'X-Fc-Log-Type', 'in' => 'header', 'schema' => [ 'description' => 'The method used to return logs.'."\n" ."\n" .'* **Tail**: returns the last 4 KB of logs that are generated for the current request.'."\n" .'* **None**: does not return logs for the current request. Default value: None.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Tail', ], ], [ 'name' => 'X-Fc-Invocation-Type', 'in' => 'header', 'schema' => [ 'description' => 'The method used to invoke the function.'."\n" ."\n" .'* **Sync**: synchronous invocations'."\n" .'* **Async**: asynchronous invocations'."\n", 'type' => 'string', 'required' => false, 'example' => 'Async', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Sat, 14 Jul 2017 07:02:38 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'abcxxx', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The data struct returned.'."\n", 'type' => 'object', 'properties' => [ 'nextToken' => [ 'description' => 'The token used to obtain more results. If this parameter is left empty, all the results are returned.'."\n", 'type' => 'string', 'example' => '8bj81uI8n****', ], 'invocations' => [ 'description' => 'The list of asynchronous tasks.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The information about the asynchronous task.'."\n", 'example' => '[{"functionName": "demo-function","serviceName": "demo-service","qualifier": "LATEST","invocationId": "id","status": "Succeeded","startedTime": 1640966400000,"endTime": 1640966500000,"destinationStatus": "Succeeded","invocationErrorMessage": "","invocationPayload": "","requestId": "id","alreadyRetriedTimes": 0,}]', '$ref' => '#/components/schemas/StatefulAsyncInvocation', ], ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"8bj81uI8n****\\",\\n \\"invocations\\": [\\n {\\n \\"functionName\\": \\"functionName\\",\\n \\"serviceName\\": \\"serviceName\\",\\n \\"qualifier\\": \\"LATEST\\",\\n \\"invocationId\\": \\"cxxdfd\\",\\n \\"status\\": \\"Running\\",\\n \\"startedTime\\": 1633449590,\\n \\"endTime\\": 1633449599,\\n \\"destinationStatus\\": \\"Succeeded\\",\\n \\"invocationErrorMessage\\": \\"UnhandledInvocationError\\",\\n \\"invocationPayload\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"alreadyRetriedTimes\\": 3,\\n \\"requestId\\": \\"ABA740D4-4BA6-5293-9FD1-882707EADC37\\",\\n \\"instanceId\\": \\"D4-4BA6-5293-9FD1-882707E\\",\\n \\"events\\": [\\n {\\n \\"eventId\\": 1,\\n \\"status\\": \\"Enqueued\\",\\n \\"timestamp\\": 1647420449721,\\n \\"eventDetail\\": \\"{\\\\\\"Error\\\\\\":\\\\\\"UnhandledInvocationError\\\\\\"}\\"\\n }\\n ],\\n \\"durationMs\\": 100,\\n \\"returnPayload\\": \\"my-result\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListStatefulAsyncInvocations', 'description' => 'StatefulAsyncInvocation represents asynchronous tasks. Asynchronous tasks (StatefulAsyncInvocation) allow you to manage the states of asynchronous invocations. The asynchronous task feature is more suitable for task scenarios.'."\n", ], 'CreateLayerVersion' => [ 'summary' => 'Releases a layer version.', 'path' => '/2021-04-06/layers/{layerName}/versions', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeNodes' => [ 'FEATUREfcN46UH2', ], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'layerName', 'in' => 'path', 'schema' => [ 'title' => 'A short description of struct', 'description' => 'The layer name. The name can be up to 128 character in length.'."\n", 'type' => 'string', 'required' => true, 'example' => 'MyLayer', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'description' => 'The information about the layer.'."\n", 'type' => 'object', 'properties' => [ 'description' => [ 'description' => 'The layer description. The description can be up to 256 characters.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test', ], 'compatibleRuntime' => [ 'description' => 'The runtimes that are supported by the layer.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The runtimes. Valid values: **nodejs20**, **nodejs18**, **nodejs16**, **nodejs14**, **nodejs12**, **nodejs10**, **nodejs8**, **nodejs6**, **python3.10**, **python3.9**, **python3**, **python2.7**, **java11**, **java8**, **php7.2**, **go1**, **dotnetcore3.1**, **dotnetcore2.1**, **custom.debian10**, and **custom**.'."\n", 'type' => 'string', 'required' => false, 'enumValueTitles' => [], 'example' => 'python3', ], 'required' => false, ], 'Code' => [ 'description' => 'The layer code.'."\n", 'required' => true, '$ref' => '#/components/schemas/Code', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the invocation request of Function Compute.'."\n", 'type' => 'string', 'required' => false, 'example' => 'r4isu4sls****', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'type' => 'string', ], ], ], 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The details of the layer.'."\n", 'type' => 'object', 'properties' => [ 'layerName' => [ 'description' => 'The layer name.'."\n", 'type' => 'string', 'example' => 'MyLayer', ], 'version' => [ 'description' => 'The layer version.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', ], 'description' => [ 'description' => 'The description of the layer version.'."\n", 'type' => 'string', 'example' => 'the first layer', ], 'code' => [ 'description' => 'The information about the layer code package.'."\n", '$ref' => '#/components/schemas/OutputCodeLocation', ], 'codesize' => [ 'description' => 'The size of the layer code package. Unit: bytes.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '421', ], 'codeChecksum' => [ 'description' => 'The CRC-64 value of the layer code package. The value is calculated based on the **ECMA-182 **standard.'."\n", 'type' => 'string', 'example' => '2825179536350****', ], 'createTime' => [ 'description' => 'The time when the layer version was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format.'."\n", 'type' => 'string', 'example' => '2022-01-01T11:08:00Z', ], 'acl' => [ 'description' => 'The access mode of the layer. Digit 0 specifies that the layer is private and digit 1 specifies that the layer is public. By default, public layers are public. Custom layers can be set to private or public.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', ], 'compatibleRuntime' => [ 'description' => 'The runtimes that are supported by the layer.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The runtime. Valid values: **nodejs20**, **nodejs18**, **nodejs16**, **nodejs14**, **nodejs12**, **nodejs10**, **nodejs8**, **nodejs6**, **python3.10**, **python3.9**, **python3**, **python2.7**, **java11**, **java8**, **php7.2**, **go1**, **dotnetcore3.1**, **dotnetcore2.1**, **custom.debian10**, and **custom**.'."\n", 'type' => 'string', 'enumValueTitles' => [], 'example' => 'python3', ], ], 'arn' => [ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the layer.'."\n", 'type' => 'string', 'example' => 'xxxxxxxx#Layer-name#1', ], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"layerName\\": \\"MyLayer\\",\\n \\"version\\": 1,\\n \\"description\\": \\"the first layer\\",\\n \\"code\\": {\\n \\"repositoryType\\": \\"\\",\\n \\"location\\": \\"\\"\\n },\\n \\"codesize\\": 421,\\n \\"codeChecksum\\": \\"2825179536350****\\",\\n \\"createTime\\": \\"2022-01-01T11:08:00Z\\",\\n \\"acl\\": 0,\\n \\"compatibleRuntime\\": [\\n \\"python3\\"\\n ],\\n \\"arn\\": \\"xxxxxxxx#Layer-name#1\\"\\n}","type":"json"}]', 'title' => 'CreateLayerVersion', ], 'DeleteLayerVersion' => [ 'summary' => 'Deletes a layer version.', 'path' => '/2021-04-06/layers/{layerName}/versions/{version}', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '22403', 'abilityTreeNodes' => [ 'FEATUREfcN46UH2', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'layerName', 'in' => 'path', 'schema' => [ 'title' => '层名称', 'description' => 'The name of the layer.'."\n", 'type' => 'string', 'required' => true, 'example' => 'MyLayer', ], ], [ 'name' => 'version', 'in' => 'path', 'schema' => [ 'title' => '层版本', 'description' => 'The layer version.'."\n", 'type' => 'string', 'required' => true, 'example' => '1', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteLayerVersion', 'responseParamsDescription' => 'No response parameters are returned.'."\n", ], 'ListLayers' => [ 'summary' => 'Gets a list of layers.', 'path' => '/2021-04-06/layers', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22411', 'abilityTreeNodes' => [ 'FEATUREfcN46UH2', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'prefix', 'in' => 'query', 'schema' => [ 'title' => '层名称前缀', 'description' => 'The name prefix of the layer. The names of returned resources must contain the prefix. If the name prefix is a, the names of returned resources must start with a.'."\n", 'type' => 'string', 'required' => false, 'example' => 'prefix-Layer', ], ], [ 'name' => 'startKey', 'in' => 'query', 'schema' => [ 'title' => '起始层名称', 'description' => 'The name of the start layer. The returned layers are sorted in alphabetical order, and the layers that include and follow the layer specified by the startKey parameter are returned.'."\n", 'type' => 'string', 'required' => false, 'example' => 'start-layer-name', ], ], [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'title' => '下一个层名称', 'description' => 'The token required to obtain more results. If the number of resources exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'required' => false, 'example' => 'next-layer-name', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '最大返回条目数', 'description' => 'The maximum number of resources to return. Default value: 20. Maximum value: 100. The number of returned configurations is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'public', 'in' => 'query', 'schema' => [ 'description' => 'Specifies whether to obtain only the common layer. Default value: false.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', ], ], [ 'name' => 'official', 'in' => 'query', 'schema' => [ 'description' => 'Specifies whether to obtain the official public layer. When the official parameter is set to true, the public field does not take effect. The default value is false.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The format is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'layers' => [ 'title' => '层列表', 'description' => 'The list of layers.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The details of the layer.'."\n", 'example' => 'None'."\n", '$ref' => '#/components/schemas/Layer', ], ], 'nextToken' => [ 'title' => '剩余列表起始层名', 'description' => 'The name of the start layer for the next query, which is also the token used to obtain more results.'."\n", 'type' => 'string', 'example' => 'next-layer-name', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"layers\\": [\\n {\\n \\"layerName\\": \\"\\",\\n \\"version\\": 0,\\n \\"description\\": \\"\\",\\n \\"code\\": {\\n \\"repositoryType\\": \\"\\",\\n \\"location\\": \\"仅在查询具体层版本时返回\\"\\n },\\n \\"codeSize\\": 0,\\n \\"codeChecksum\\": \\"\\",\\n \\"createTime\\": \\"\\",\\n \\"acl\\": 0,\\n \\"arn\\": \\"\\",\\n \\"arnV2\\": \\"\\",\\n \\"license\\": \\"\\",\\n \\"compatibleRuntime\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"nextToken\\": \\"next-layer-name\\"\\n}","type":"json"}]', 'title' => 'ListLayers', ], 'ListLayerVersions' => [ 'summary' => 'Gets a list of layer versions.', 'path' => '/2021-04-06/layers/{layerName}/versions', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22404', 'abilityTreeNodes' => [ 'FEATUREfcN46UH2', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'layerName', 'in' => 'path', 'schema' => [ 'title' => '层名称', 'description' => 'The layer name. You can query only custom layer versions. You cannot query versions of official public layers.'."\n", 'type' => 'string', 'required' => true, 'example' => 'MyLayer', ], ], [ 'name' => 'startVersion', 'in' => 'query', 'allowEmptyValue' => true, 'schema' => [ 'title' => '起始版本', 'description' => 'The initial version of the layer.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', ], ], [ 'name' => 'limit', 'in' => 'query', 'allowEmptyValue' => true, 'schema' => [ 'title' => '本次读取的最大数据记录数量', 'description' => 'The maximum number of resources to return. Default value: 20. The value cannot exceed 100. The number of returned configurations is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the operation is called. The format is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The data struct returned.'."\n", 'type' => 'object', 'properties' => [ 'layers' => [ 'title' => '层版本列表', 'description' => 'The list of layer versions.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The details of the layer.'."\n", 'example' => 'None', '$ref' => '#/components/schemas/Layer', ], ], 'nextVersion' => [ 'title' => '剩余列表起始版本号', 'description' => 'The initial version of the layer for the next query.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '21', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"layers\\": [\\n {\\n \\"layerName\\": \\"\\",\\n \\"version\\": 0,\\n \\"description\\": \\"\\",\\n \\"code\\": {\\n \\"repositoryType\\": \\"\\",\\n \\"location\\": \\"仅在查询具体层版本时返回\\"\\n },\\n \\"codeSize\\": 0,\\n \\"codeChecksum\\": \\"\\",\\n \\"createTime\\": \\"\\",\\n \\"acl\\": 0,\\n \\"arn\\": \\"\\",\\n \\"arnV2\\": \\"\\",\\n \\"license\\": \\"\\",\\n \\"compatibleRuntime\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"nextVersion\\": 21\\n}","type":"json"}]', 'title' => 'ListLayerVersions', ], 'GetLayerVersion' => [ 'summary' => 'Queries versions of a layer.', 'path' => '/2021-04-06/layers/{layerName}/versions/{version}', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22384', 'abilityTreeNodes' => [ 'FEATUREfcN46UH2', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'layerName', 'in' => 'path', 'schema' => [ 'title' => '层名称', 'description' => 'The name of the layer.'."\n", 'type' => 'string', 'required' => true, 'example' => 'MyLayer', ], ], [ 'name' => 'version', 'in' => 'path', 'schema' => [ 'title' => '层版本', 'description' => 'The layer version.'."\n", 'type' => 'string', 'required' => true, 'example' => '1', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [ 'headers' => [ 'ETag' => [ 'schema' => [ 'title' => '层版本标识符', 'type' => 'string', ], ], ], 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The details of the layer.'."\n", 'example' => '', '$ref' => '#/components/schemas/Layer', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"layerName\\": \\"\\",\\n \\"version\\": 0,\\n \\"description\\": \\"\\",\\n \\"code\\": {\\n \\"repositoryType\\": \\"\\",\\n \\"location\\": \\"仅在查询具体层版本时返回\\"\\n },\\n \\"codeSize\\": 0,\\n \\"codeChecksum\\": \\"\\",\\n \\"createTime\\": \\"\\",\\n \\"acl\\": 0,\\n \\"arn\\": \\"\\",\\n \\"arnV2\\": \\"\\",\\n \\"license\\": \\"\\",\\n \\"compatibleRuntime\\": [\\n \\"\\"\\n ]\\n}","type":"json"}]', 'title' => 'GetLayerVersion', ], 'PutLayerACL' => [ 'summary' => 'Modifies permissions of a layer.', 'path' => '/2021-04-06/layers/{layerName}/acl', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '149819', 'abilityTreeNodes' => [ 'FEATUREfcN46UH2', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'layerName', 'in' => 'path', 'schema' => [ 'title' => '', 'description' => 'The name of the layer.'."\n", 'type' => 'string', 'required' => true, 'example' => 'MyLayer', ], ], [ 'name' => 'public', 'in' => 'query', 'schema' => [ 'description' => 'Specifies whether the layer is public.'."\n" ."\n" .'* **true**: Public.'."\n" .'* **false**: Not public.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the operation is called. The format is: **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'PutLayerACL', ], 'ListEventSources' => [ 'summary' => 'Queries a list of event sources for function invocations.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/event-sources', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '59590', 'abilityTreeNodes' => [ 'FEATUREfcBAQXYJ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-function', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '别名或版本', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Sat, 14 Jul 2017 07:02:38 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'eventSources' => [ 'title' => '事件源列表', 'description' => 'The event sources.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The information about the event source. ', 'type' => 'object', 'properties' => [ 'sourceArn' => [ 'title' => '事件源资源标识符', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the event source.'."\n", 'type' => 'string', 'example' => 'acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc', ], 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the event source was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], ], ], ], ], ], ], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"eventSources\\": [\\n {\\n \\"sourceArn\\": \\"acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc\\",\\n \\"createdTime\\": \\"2016-08-15T16:06:05.000+0000\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListEventSources', ], 'DeregisterEventSource' => [ 'summary' => 'Deregisters an event source for a function invocation. This API operation has been deprecated. We recommend that you do not continue to use it.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/event-sources/{sourceArn}', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '59589', 'abilityTreeNodes' => [ 'FEATUREfcBAQXYJ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-function', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '别名或版本', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', ], ], [ 'name' => 'sourceArn', 'in' => 'path', 'schema' => [ 'title' => '事件源资源标识符', 'description' => 'The ARN of the event source.'."\n", 'type' => 'string', 'required' => true, 'example' => 'acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Sat, 14 Jul 2017 07:02:38 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 204 => [], 400 => [], 403 => [], [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeregisterEventSource', ], 'RegisterEventSource' => [ 'summary' => 'Registers an event source.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/event-sources', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '55511', 'abilityTreeNodes' => [ 'FEATUREfcBAQXYJ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务名称', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数名称', 'description' => 'The function name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-function', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '别名或版本', 'description' => 'The version or alias of the service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'LATEST', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'description' => 'The request parameters.'."\n", 'type' => 'object', 'properties' => [ 'sourceArn' => [ 'title' => '事件源资源标识符', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the event source.'."\n", 'type' => 'string', 'required' => true, 'example' => 'acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Sat, 14 Jul 2017 07:02:38 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'sourceArn' => [ 'title' => '事件源资源标识符', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the event source.'."\n", 'type' => 'string', 'example' => 'acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc', ], 'createdTime' => [ 'title' => '创建时间', 'description' => 'The time when the event source was created.'."\n", 'type' => 'string', 'example' => '2016-08-15T16:06:05.000+0000', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"sourceArn\\": \\"acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc\\",\\n \\"createdTime\\": \\"2016-08-15T16:06:05.000+0000\\"\\n}","type":"json"}]', 'title' => 'RegisterEventSource', ], 'CreateVpcBinding' => [ 'summary' => 'Creates a VPC connection.', 'path' => '/2021-04-06/services/{serviceName}/bindings', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '34765', 'abilityTreeNodes' => [ 'FEATUREfcL3E8J5', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => 'A short description of struct', 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demo-service', ], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'description' => 'The request body.'."\n", 'type' => 'object', 'properties' => [ 'vpcId' => [ 'description' => 'The ID of the VPC to be bound.'."\n", 'type' => 'string', 'required' => true, 'example' => 'v-xxxx', ], ], 'required' => false, ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'CreateVpcBinding', ], 'DeleteVpcBinding' => [ 'summary' => 'Deletes an access control policy from a specified policy group for a VPC firewall.', 'path' => '/2021-04-06/services/{serviceName}/bindings/{vpcId}', 'methods' => [ 'delete', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '34766', 'abilityTreeNodes' => [ 'FEATUREfcL3E8J5', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'description' => 'The service name.'."\n", 'type' => 'string', 'required' => true, 'example' => 'demoService', ], ], [ 'name' => 'vpcId', 'in' => 'path', 'schema' => [ 'description' => 'The VPC ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'vpc-xxxx', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of the Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'asdf****', ], ], ], 'responses' => [ 200 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'DeleteVpcBinding', ], 'ListVpcBindings' => [ 'summary' => 'Queries a list of existing VPC connections.', 'path' => '/2021-04-06/services/{serviceName}/bindings', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '34767', 'abilityTreeNodes' => [ 'FEATUREfcL3E8J5', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'serviceName', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'rid281s******', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'Returns a list of IDs of bound VPCs.'."\n", 'type' => 'object', 'properties' => [ 'vpcIds' => [ 'description' => 'The IDs of bound VPCs.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The IDs of bound VPCs.'."\n", 'type' => 'string', 'example' => 'vpc-xxxx', ], ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"vpcIds\\": [\\n \\"vpc-xxxx\\"\\n ]\\n}","type":"json"}]', 'title' => 'ListVpcBindings', ], 'GetResourceTags' => [ 'summary' => 'Queries all the tags of a resource.', 'path' => '/2021-04-06/tag', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '22375', 'abilityTreeNodes' => [ 'FEATUREfcWG6KAJ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'resourceArn', 'in' => 'query', 'allowEmptyValue' => false, 'schema' => [ 'title' => 'Resource ARN 全称或者简称', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n" ."\n" .'> You can use the value of this parameter to query information about the resource, such as the account, service, and region of the resource. You can manage tags only for services for top level resources.'."\n", 'type' => 'string', 'required' => true, 'example' => 'acs:fc:cn-shanghai:188077086902****:services/demo', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-test-trace-id', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'getResourceTagsResponse', 'description' => 'The returned data.'."\n", 'type' => 'object', 'properties' => [ 'resourceArn' => [ 'title' => 'Resource ARN 全称', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n" ."\n" .'> You can use the value of this parameter to query information about the resource, such as the account, service, and region of the resource.'."\n", 'type' => 'string', 'example' => 'acs:fc:cn-shanghai:188077086902****:services/demo', ], 'tags' => [ 'title' => 'tag 列表', 'description' => 'The tag dictionary.'."\n", 'type' => 'object', 'additionalProperties' => [ 'type' => 'string', 'example' => '{"k1":"v1"}', 'description' => 'A tag. A tag consists of the following parameters:'."\n" ."\n" .'* **key**: the key of a tag'."\n" .'* **value**: the value of a tag'."\n", ], 'example' => '{"k1":"v1"}', ], ], 'example' => 'acs:fc:cn-shanghai:188077086902****:services/demo', ], ], 400 => [], 403 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"resourceArn\\": \\"acs:fc:cn-shanghai:188077086902****:services/demo\\",\\n \\"tags\\": {\\n \\"key\\": \\"{\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\"}\\"\\n }\\n}","type":"json"}]', 'title' => 'GetResourceTags', ], 'ListTaggedResources' => [ 'summary' => 'Queries all tagged services.', 'path' => '/2021-04-06/tags', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '34764', 'abilityTreeNodes' => [ 'FEATUREfcWG6KAJ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'nextToken', 'in' => 'query', 'schema' => [ 'description' => 'The token required to obtain more results. If the number of layers exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'required' => false, 'example' => 'a-service', ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'description' => 'The maximum number of results to return. Default value: 20. Maximum value: 100. The number of returned resources is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The trace ID of the request for Function Compute API.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-test-trace-id', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The response parameters.'."\n", 'type' => 'object', 'properties' => [ 'nextToken' => [ 'description' => 'The token required to obtain more results. If the number of layers exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.'."\n", 'type' => 'string', 'example' => 'a-service', ], 'resources' => [ 'description' => 'The information about tagged services.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The information about the tagged resource.'."\n", '$ref' => '#/components/schemas/Resource', ], ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"nextToken\\": \\"a-service\\",\\n \\"resources\\": [\\n {\\n \\"resourceArn\\": \\"\\",\\n \\"tags\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListTaggedResources', ], 'TagResource' => [ 'summary' => 'Adds tags to a resource.', 'path' => '/2021-04-06/tag', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '22374', 'abilityTreeNodes' => [ 'FEATUREfcWG6KAJ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'allowEmptyValue' => false, 'style' => 'json', 'schema' => [ 'title' => '标签详情', 'description' => 'The details of tags.'."\n", 'type' => 'object', 'properties' => [ 'resourceArn' => [ 'description' => 'The ARN of the resource.'."\n" ."\n" .'> You can use the value of this parameter to query the information about the resource, such as the account, service, and region information of the resource. You can manage tags only for services for top level resources.'."\n", 'type' => 'string', 'required' => true, 'example' => 'acs:fc:cn-shanghai:188077086902****:services/demo', ], 'tags' => [ 'description' => 'The tag dictionary.'."\n", 'type' => 'object', 'required' => true, 'additionalProperties' => [ 'type' => 'string', 'description' => 'The tag dictionary. A tag consists of the following parameters:'."\n" ."\n" .'* **key**: the tag key. It cannot exceed 128 characters in length.'."\n" .'* **value**: the tag value. It cannot exceed 128 characters in length.'."\n" ."\n" .'Tag keys and tag values are case-sensitive. If you specify multiple tags, the system adds all the tags to the specified resources. Each tag key on a resource can have only one tag value. If you attempt to add a tag that has the same key as an existing tag, the value of the existing tag is overwritten.'."\n" ."\n" .'`http://` or `https://` cannot be contained. The tag value cannot start with aliyun or acs:.'."\n", 'example' => '{"k1":"v1" , "k2":"v2"}', ], 'example' => '{"k1":"v1"}', ], ], 'required' => false, 'example' => ' acs:fc:cn-shanghai:188077086902****:services/demo', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The format is **EEE,d MMM yyyy HH:mm:ss GMT**.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-test-trace-id', ], ], ], 'responses' => [ 200 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'TagResource', ], 'UntagResource' => [ 'summary' => 'Removes tags from resources.', 'path' => '/2021-04-06/tag', 'methods' => [ 'put', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '22410', 'abilityTreeNodes' => [ 'FEATUREfcWG6KAJ', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'allowEmptyValue' => false, 'style' => 'json', 'schema' => [ 'title' => '取消标签资源详情', 'description' => 'The details of the resource from which you want to remove tags.'."\n", 'type' => 'object', 'properties' => [ 'resourceArn' => [ 'title' => '目前只能给 top level 资源 service 进行标签的相关操作, ARN 可以是类似 services/foo 或者 acs:fc:cn-shanghai:123456789:services/foo', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n" ."\n" .'> You can use the value of this parameter to query information about the resource, such as the account, service, and region of the resource. You can manage tags only for services for top level resources.'."\n", 'type' => 'string', 'required' => true, 'example' => 'acs:fc:cn-shanghai:188077086902****:services/demo', ], 'tagKeys' => [ 'title' => 'tag key 值列表, 最大为 20,当 all=false, length 至少为 1. 当 length 大于 1 时, 可以忽略 all 值', 'description' => 'The keys of the tags that you want to remove.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The tag key.'."\n", 'type' => 'string', 'required' => false, 'example' => 'k1', ], 'required' => false, ], 'all' => [ 'title' => '删除所有 tag,默认值为 false', 'description' => 'Specifies whether to remove all tags. This parameter takes effect only when no tag key is specified. Valid values:'."\n" ."\n" .'* **true**'."\n" .'* **false**'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false', ], ], 'required' => false, 'example' => 'acs:fc:cn-shanghai:188077086902****:services/demo', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'description' => 'The time when the function is invoked. The value is in the **EEE,d MMM yyyy HH:mm:ss GMT** format.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Wed, 11 May 2022 09:00:00 GMT', ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'description' => 'The custom request ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-test-trace-id', ], ], ], 'responses' => [ 200 => [], 400 => [], 403 => [], 500 => [], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]', 'title' => 'UntagResource', ], 'ListInstances' => [ 'summary' => 'Query a list of available instances of a function.', 'path' => '/2021-04-06/services/{serviceName}/functions/{functionName}/instances', 'methods' => [ 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'produces' => [ 'application/json', ], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '106320', 'abilityTreeNodes' => [ 'FEATUREfcW4XOQV', ], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'serviceName', 'in' => 'path', 'schema' => [ 'title' => '服务的名称', 'description' => 'The name of the service.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'demoService', ], ], [ 'name' => 'functionName', 'in' => 'path', 'schema' => [ 'title' => '函数的名称', 'description' => 'The name of the function.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'demoFunction', ], ], [ 'name' => 'qualifier', 'in' => 'query', 'schema' => [ 'title' => '服务的版本或别名。默认是LATEST。'."\n" ."\n" .'此处的qualifier同InvokeFunction的qualifier含义一致,即调用ListInstances时指定qualifier=test查询出来的实例,就是调用InvokeFunction时qualifier=test链路上的实例。', 'description' => 'The version or alias.'."\n", 'type' => 'string', 'required' => false, 'example' => 'dev', ], ], [ 'name' => 'instanceIds', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'title' => '实例ID', 'description' => 'The instance ID.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => false, 'example' => '["1ef6b6ff-7f7b-485e-ab49-501ac681****", "04db0821-c6d2-4c10-970b-93e36f1a****"]', ], 'required' => false, 'maxItems' => 1000, 'minItems' => 1, ], ], [ 'name' => 'limit', 'in' => 'query', 'schema' => [ 'title' => '限定此次返回资源的数量,取值范围[0,1000]。'."\n" ."\n" .'返回结果可以小于指定的数量,但不能多于指定的数量。', 'description' => 'The maximum number of resources to return. Valid values: \\[0,1000].'."\n" ."\n" .'The number of returned resources is less than or equal to the specified number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', ], ], [ 'name' => 'X-Fc-Account-Id', 'in' => 'header', 'schema' => [ 'description' => 'The ID of your Alibaba Cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '188077086902****', ], ], [ 'name' => 'X-Fc-Date', 'in' => 'header', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'X-Fc-Trace-Id', 'in' => 'header', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'The information about instances.'."\n", 'type' => 'object', 'properties' => [ 'instances' => [ 'description' => 'The information about instances.'."\n", 'type' => 'array', 'items' => [ 'description' => 'The instances that are queried.'."\n", 'type' => 'object', 'properties' => [ 'instanceId' => [ 'title' => '实例ID。'."\n" ."\n", 'description' => 'The instance ID.'."\n", 'type' => 'string', 'example' => '1ef6b6ff-7f7b-485e-ab49-501ac681****', ], 'versionId' => [ 'title' => '实例所属的服务版本。如果是LATEST别名下的函数实例,则返回版本号为0。'."\n" ."\n", 'description' => 'The version of service to which the instance belongs. If the instance belongs to the LATEST alias, 0 is returned as the version.'."\n", 'type' => 'string', 'example' => '1', ], ], ], ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"instances\\": [\\n {\\n \\"instanceId\\": \\"1ef6b6ff-7f7b-485e-ab49-501ac681****\\",\\n \\"versionId\\": \\"1\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => 'ListInstances', 'description' => 'The ListInstances operation allows you to query available instances of a function.'."\n" ."\n" .'Available instances are instances that are processing requests or can be scheduled to process requests. Available instances queried by the ListInstances operation are the same as the active instances queried by using the InvokeFunction operation if values of `ServiceName`, `FunctionName`, and `Qualifier` are the same.'."\n", ], ], 'endpoints' => [ [ 'regionId' => 'ap-northeast-2', 'endpoint' => 'fc.ap-northeast-2.aliyuncs.com', ], [ 'regionId' => 'cn-qingdao', 'endpoint' => 'fc.cn-qingdao.aliyuncs.com', ], [ 'regionId' => 'cn-beijing', 'endpoint' => 'fc.cn-beijing.aliyuncs.com', ], [ 'regionId' => 'cn-zhangjiakou', 'endpoint' => 'fc.cn-zhangjiakou.aliyuncs.com', ], [ 'regionId' => 'cn-huhehaote', 'endpoint' => 'fc.cn-huhehaote.aliyuncs.com', ], [ 'regionId' => 'cn-hangzhou', 'endpoint' => 'fc.cn-hangzhou.aliyuncs.com', ], [ 'regionId' => 'cn-shanghai', 'endpoint' => 'fc.cn-shanghai.aliyuncs.com', ], [ 'regionId' => 'cn-shenzhen', 'endpoint' => 'fc.cn-shenzhen.aliyuncs.com', ], [ 'regionId' => 'cn-chengdu', 'endpoint' => 'fc.cn-chengdu.aliyuncs.com', ], [ 'regionId' => 'cn-hongkong', 'endpoint' => 'fc.cn-hongkong.aliyuncs.com', ], [ 'regionId' => 'ap-northeast-1', 'endpoint' => 'fc.ap-northeast-1.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-1', 'endpoint' => 'fc.ap-southeast-1.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-2', 'endpoint' => 'fc.ap-southeast-2.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-3', 'endpoint' => 'fc.ap-southeast-3.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-5', 'endpoint' => 'fc.ap-southeast-5.aliyuncs.com', ], [ 'regionId' => 'us-east-1', 'endpoint' => 'fc.us-east-1.aliyuncs.com', ], [ 'regionId' => 'us-west-1', 'endpoint' => 'fc.us-west-1.aliyuncs.com', ], [ 'regionId' => 'eu-west-1', 'endpoint' => 'fc.eu-west-1.aliyuncs.com', ], [ 'regionId' => 'eu-central-1', 'endpoint' => 'fc.eu-central-1.aliyuncs.com', ], [ 'regionId' => 'ap-south-1', 'endpoint' => 'fc.ap-south-1.aliyuncs.com', ], [ 'regionId' => 'cn-hangzhou-finance', 'endpoint' => 'account-id.cn-hangzhou-finance.fc.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-7', 'endpoint' => 'fc.ap-southeast-7.aliyuncs.com', ], ], ];