检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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.
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: Processing IoT Data
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.
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.
Figure 2 Uploading a ZIP file 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. Create a trigger. HTTP functions support APIG and APIC triggers only.
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