检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Scenarios Cloud product integration: OBS real-time file processing and LTS log processing. ETL data processing: database data cleaning and message queue processing. Regular tasks: scheduled, periodic, and script tasks.
GetObject(obs_address, srcBucket, srcObjName, ak, sk) outFile = watermark_image(srcObjName) # Upload converted files to a new OBS bucket.
FunctionGraph OBS DIS SMN Failure Notification Target Service: to which a notification will be sent if a function fails to be executed. FunctionGraph OBS DIS SMN Click OK.
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.
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.
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.
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 (dedicated) and APIC triggers can
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.
16.17, 18.15, 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 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.
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.
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.