Creating an EG Trigger (Cloud Service)
Currently, EG triggers are available only in AP-Bangkok, AP-Singapore, AF-Johannesburg, LA-Mexico City2, and LA-Santiago.
Creating an EG Trigger
- Log in to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
- Click the function to be configured to go to the function details page.
- Choose Configuration > Triggers and click Create Trigger. This section uses OBS as an example.
Figure 1 Creating a trigger
- Set the following parameters:
- Trigger Type: Select Object Storage Service (OBS).
- Trigger Name: Enter a trigger name.
- Events: Select the required event type.
- Click OK.
Configuring an EventGrid Event to Trigger the Function
- Return to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
- Click the function to be configured to go to the function details page.
- On the function details page, select a version.
- On the Code tab page, click Test. The Configure Test Event dialog box is displayed.
- Set the parameters described in Table 1 and click Save.
Table 1 Test parameters Parameter
Description
Configure Test Event
You can choose to create a test event or edit an existing one.
Use the default option Create new test event.
Event Template
Select Blank Template. For details about the code, see "Cloud Service Event Sources" in Supported Event Sources.
Event Name
The event name can contain 1 to 25 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), and hyphens (-) are allowed. For example, myobs-123test.
Event data
Use the newly created test event.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot