检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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 900 seconds, use asynchronous invocation. The value can be 512 MB (default) or 10 GB. GPU instance GPU instances have the following specifications.
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
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.
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.
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.
If needed, you can modify the code to save data to OBS or LTS or to directly process the data. Parent topic: Procedure
Figure 2 Deploying code If you deploy code by uploading a local ZIP file, ensure that the region selected for creating the function is the same as that selected for creating an OBS bucket. You can modify the code and click Deploy to deploy the code again.
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.
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
Will Resources Created During FunctionGraph 2.0 OBT Be Automatically Released When They Expire? Will Them Be Billed? FunctionGraph 2.0 automatically releases resources when they expire and you will not be billed for them. Parent topic: Other FAQs