检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 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.
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
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
ZIP file: 1.5 GB (after decompression) OBS bucket: 300 MB (after compression) 259,200s If the execution takes longer than 900 seconds, 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.
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
The following uses the OBS dependency as an example. <dependency> <groupId>com.huaweicloud</groupId> <artifactId>esdk-obs-java</artifactId> <version>3.21.4</version> </dependency> Add a plug-in to pom.xml to pack the code and dependencies together.
Figure 3 Viewing logs Figure 4 Viewing request details To invoke other systems, persist data in OBS, or achieve other purposes, modify the program. Parent topic: Converting Device Coordinate Data in IoTDA
Downloading a Cloud Function Prerequisites You have been granted the permission (obs:object:GetObject) for obtaining bucket objects. Right-click the function you want to download and choose Download... from the shortcut menu.
SecMaster analyzes logs of related FunctionGraph cloud services (such as OBS and VPC) to detect malicious behavior in real time.
After you upload the fss_examples_python2.7.zip file to OBS, when the function is triggered, FunctionGraph decompresses the file to locate the function file through index and locate the function defined in the index.py file through handler, and then executes the function.
After you upload the fss_examples_php7.3.zip file to OBS, when the function is triggered, FunctionGraph decompresses the file to locate the function file through index and locate the function defined in the index.php file through handler, and then executes the function.
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 details about global cloud services, submit a service ticket.
Scenario 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.
generate_update_function_code_cmd(): cmd = f'hcloud FunctionGraph UpdateFunctionCode --cli-region="{region}"' f' --function_urn="{function_urn}" --project_id="{project_id}"' f' --code_url="{code_url}" --func_code.link="" --func_code.file="" --code_type="obs
Scenario 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.