检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Enumeration values: inline zip obs jar Custom-Image-Swr code_url String If code_type is set to obs, enter the OBS URL of the function code package. If code_type is not set to obs, leave this parameter blank. code_filename String Name of a function file.
Table 1 Invocation mode Event Source Invocation Mode SMN Asynchronous OBS Asynchronous DIS Asynchronous Timer Asynchronous LTS Asynchronous DDS Asynchronous DMS for Kafka Asynchronous DMS for RabbitMQ Asynchronous GeminiDB Mongo Asynchronous APIG, APIG (dedicated), and APIC triggers
Object Storage Service (OBS) Simulates an OBS event to trigger your function. Simple Message Notification (SMN) Simulates an SMN event to trigger your function. Timer Simulates a timer event to trigger your function.
Options: inline: inline code zip: ZIP file jar: JAR file (mainly for Java functions) obs: function code stored in an Object Storage Service (OBS) bucket code_url When code_type is set to obs, this parameter indicates the address of a function code package in OBS.
Node.js 6.10, 8.10, 10.16, 12.13, 14.18, 16.17, 18.15 Python 2.7, 3.6, 3.9, 3.10 Java 8.0, 11 Go 1.x C# .NET Core 2.1, .NET Core 3.1 PHP 7.3 Custom - Cangjie 1.0 Multiple code entry modes FunctionGraph allows you to edit code inline, upload a ZIP file from Object Storage Service (OBS
Options: inline: inline code zip: ZIP file obs: function code stored in an OBS bucket jar: JAR file, mainly for Java functions Custom-Image-Swr: The function code comes from the SWR custom image.
Response Parameters Status code: 200 Table 4 Response body parameters Parameter Type Description [items] Array of ServiceBridgeVersion objects Table 5 ServiceBridgeVersion Parameter Type Description name String Code package name. version String Code version. code_url String OBS path
Obtain it from Regions and Endpoints. code_url: OBS object link obtained in step 2 apig_id: APIG gateway ID On the Configure Stack page, specify an IAM agency, retain the default values for other parameters, and click Next to confirm the deployment of this stack.
Enumeration values: inline zip obs jar Custom-Image-Swr code_url String If code_type is set to obs, enter the OBS URL of the function code package. If code_type is not set to obs, leave this parameter blank. code_filename String Name of a function file.
Minimal permissions You need to configure an agency and permissions (for accessing other Huawei Cloud services, such as ECS and OBS) compliant with the minimum permissions to reduce security risks caused by authorization token leakage. Parent Topic: Security
Response Parameters Status code: 200 Table 3 Response body parameters Parameter Type Description id String Dependency ID. owner String Dependency owner. link String URL of the dependency in the OBS console. runtime String Environment for executing a function.
Other fees Additional charges will apply if other cloud services, such as OBS and SMN, are used with FunctionGraph. For more information, see FunctionGraph Pricing Details. Billed Usage Period You pay only for what you use, and there is no minimum charge.
If needed, you can modify the code to save data to OBS or LTS or to directly process the data. Figure 3 View logs Parent topic: Procedure
NOTE: If Service Type is set to a global cloud service, such as OBS or IAM, CTS triggers can be triggered only in CN-Hong Kong. For more information about global cloud services, contact technical support.
ZIP file: 1.5 GB (after decompression) OBS bucket: 300 MB (after compression) 259,200s If the execution takes longer than 900s, use asynchronous invocation. The value can be 512 MB (default) or 10 GB. GPU instance GPU instances have the following specifications.
Table 5 ListDependenciesResult Parameter Type Description id String Dependency ID. owner String Dependency owner. public indicates a public dependency. link String URL of the dependency in the OBS console. runtime String Environment for executing a function.
Function flows created on OBS DWR cannot be edited or deleted on the FunctionGraph console. If you need to do so, go to OBS DWR. Orchestrate a flow for your application. Orchestrate the flow by dragging components. Take the flow in Figure 1 as an example.
It is an OBS address where the function code package is stored. projectID Yes No Project ID. handler Yes Yes Function handler. runtime Yes No Execution environment.
Others Additional charges will apply if other cloud services, such as OBS and SMN, are used with FunctionGraph. Billing modes of involved services The billing modes of other cloud services are different. For details, see Pricing Details.
If needed, you can modify the code to save data to OBS or LTS or to directly process the data. Parent topic: Procedure