Professional Documents
Culture Documents
Check the ECS ID here (if you have many ECS, you can use “,” to separate
them):
2023-8-17 华为保密信息,未经授权禁止扩散 第 1 页, 共 12 页
文档名称 文档密级
1.2 Edit the zip file, open index.py and adjust the value of the variable client to
the Region where you need to run this function
(https://developer.huaweicloud.com/intl/en-us/endpoint?all), save and
update the zip file.
2023-8-17 华为保密信息,未经授权禁止扩散 第 2 页, 共 12 页
文档名称 文档密级
2023-8-17 华为保密信息,未经授权禁止扩散 第 3 页, 共 12 页
文档名称 文档密级
Then set the name for the agency, choose “Cloud Service”, and choose the service
“FunctionGraph”, then add the permission as below:
2023-8-17 华为保密信息,未经授权禁止扩散 第 4 页, 共 12 页
文档名称 文档密级
2023-8-17 华为保密信息,未经授权禁止扩散 第 5 页, 共 12 页
文档名称 文档密级
1.4 Back to FunctionGraph console, and click refresh , it will show the new
agency as below:
2023-8-17 华为保密信息,未经授权禁止扩散 第 6 页, 共 12 页
文档名称 文档密级
1.6 Click “Configuration”, we have to set the configuration before we test this
function
2023-8-17 华为保密信息,未经授权禁止扩散 第 7 页, 共 12 页
文档名称 文档密级
2023-8-17 华为保密信息,未经授权禁止扩散 第 8 页, 共 12 页
文档名称 文档密级
It will show the template , but we have to adopt it, so you can copy this code
directly to that template, and save it:
{
"version": "v1.0",
"time": "2018-06-01T08:30:00+08:00",
"trigger_type": "TIMER",
"trigger_name": "Timer_001",
"user_event": "{\"operation\":\"startup\"}"
}
2023-8-17 华为保密信息,未经授权禁止扩散 第 9 页, 共 12 页
文档名称 文档密级
Choose the timer and click “Test”, we can get the result as below:
1.9 After we set the events, we have to set the trigger for the events:
2023-8-17 华为保密信息,未经授权禁止扩散 第 10 页, 共 12 页
文档名称 文档密级
2023-8-17 华为保密信息,未经授权禁止扩散 第 11 页, 共 12 页
文档名称 文档密级
Then we can check the triggers we created, the trigger will execute
automatically:
2023-8-17 华为保密信息,未经授权禁止扩散 第 12 页, 共 12 页