检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
(available at all regions except LA-Sao Paulo1) OBS: Object Storage Service (OBS) (available at CN-Hong Kong, AP-Bangkok, AP-Singapore, AP-Jakarta, TR-Istanbul, and LA-Mexico City2) SMN: Simple Message Notification (SMN) (available at CN North-Beijing4, CN East-Shanghai1, CN-Hong
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.
Types The Serverless Framework supports OBS and APIG events of the FunctionGraph. For details, see Event list. Deployment To deploy or update your functions and events, run: serverless deploy Parent topic: User Guide
Cloud service access: To access other cloud services, such as OBS and LTS, grant FunctionGraph with the corresponding access permissions. IAM account authorization: FunctionGraph can use IAM to grant different function operation permissions to IAM users. Parent Topic: Security
This combination is suitable for processing device data and storing them to OBS, structuring and cleansing data and storing them to a database, and sending event notifications for device status changes. This best practice focuses on how to combine IoTDA and FunctionGraph.
OBS Create a function for processing OBS events, such as object creation or deletion (OBS example events). When an image is uploaded to a specified bucket, OBS invokes the function to read the image and create a thumbnail. For details, see: Using an OBS Trigger.
With the Eclipse plug-in, you can quickly create Java function templates, package function project files, upload function packages to OBS, and deploy functions. Obtain the Eclipse plug-in (software package verification file: Eclipse plug-in.sha256).
Others When you create a function or dependency, your code is stored in a private OBS bucket. You can configure an ACL for each object to ensure that only the specified tenant can read and write the object, isolating access from other tenants.
For a larger file, upload it through OBS. depend_link No String URL of the dependency in the OBS console when depend_type is set to obs. depend_type Yes String Import mode. Options: obs and zip. runtime Yes String Environment for executing a function.
Minimum length: 0 Maximum length: 1024 suffix String Suffix (OBS trigger parameter). Enter a suffix to limit notifications to objects whose names end with the matching characters. Minimum length: 0 Maximum length: 1024 events Array of strings Events (OBS trigger parameter).
(available at all regions except LA-Sao Paulo1) OBS: Object Storage Service (OBS) (available at CN-Hong Kong, AP-Bangkok, AP-Singapore, AP-Jakarta, TR-Istanbul, and LA-Mexico City2) SMN: Simple Message Notification (SMN) (available at CN North-Beijing4, CN East-Shanghai1, CN-Hong
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.
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.
20.15 Python 2.7, 3.6, 3.9, 3.10, 3.12 Java 8, 11, 17, 21 Go 1.x C# .NET Core 2.1, .NET Core 3.1, .NET Core 6.0, .NET Core 8.0 PHP 7.3, 8.3 Cangjie 1.0 Custom - 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.
Using environment variable obs_output_bucket, you can flexibly set the OBS bucket used for storing output images. Figure 4 Environment variables Use environment variables in function code.
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
For example, you can restrict the read and write permissions of a function on a specific OBS bucket to prevent unauthorized access.
If Upload from OBS is selected, enter the OBS object URL that points to the code file object. The object must be in ZIP format and must be stored in the OBS bucket in the same region as the function.
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.