A trigger defines the conditions in which a function is automatically invoked. Triggers are created under specific functions. This topic describes how to create, update, and delete triggers in the Function Compute console.

Prerequisites

  1. Create a service
  2. Create a function

Procedure

Update a trigger

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select your region.
  3. In the left-side navigation pane, click Service/Function.
  4. Find the target function in the target service and click the name of the function.
    Note If the function has multiple versions, select the LATEST version.
  5. Click the Triggers tab.
  6. In the trigger list, click the name of the target trigger. In the Edit Trigger dialog box, update the trigger configuration.update_trigger

Delete a trigger

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select your region.
  3. In the left-side navigation pane, click Service/Function.
  4. Find the target function in the target service and click the name of the function.
    Note If the function has multiple versions, select the LATEST version.
  5. On the Triggers tab, find the target trigger, and click Delete in the Actions column. In the dialog box that appears, click OK.delete_trigger

References

For information about how to use the fcli command-line tool to manage triggers, see Use fcli for the first time.