- Documentation
Volcano Engine Function as a Service
User guide
Functions
Trigger management
Creating APIG triggers
Trigger management
Creating APIG triggers
Creating APIG triggers
veFaaS allows you to use Volcano Engine APIG as an event source. The function logic can be triggered via public or private HTTP/HTTPS traffic, thereby providing the business capabilities of functions. This topic describes how to create APIG triggers. Background information
APIG triggers are two-way integrated triggers, which can be configured in both the veFaaS console and the APIG console. An APIG trigger on the veFaaS side corresponds to a function-type Upstream and a group of routes that point to the Upstream on the APIG side.
Prerequisites
- The function must have completed at least one full release. For details, see Releasing functions.
Limits
- You can create up to 20 triggers for each function.
- On the veFaaS side, you can create only one APIG trigger for a function under the same gateway instance. In addition, an APIG trigger can only be bound to one route with 100% weight.
- After an APIG trigger is created, you cannot change the gateway instance and gateway service to which it belongs, as well as modifying the trigger name and route name.
- For each APIG trigger, up to 5 gateway services and 200 routes can be displayed. If the upper limit is exceeded, go to the APIG console to view.
- Before deleting a function, you need to delete all APIG triggers first.
- Recommended operation platform
- To create a single route with 100% weight that points to the target function, we recommend creating the APIG trigger on the veFaaS side. In this scenario, you can perform creation, editing, and deletion operations on the veFaaS side.
- For more requirements, such as connecting one route to multiple functions for multi-version/multi-environment management, or connecting multiple routes to one function, perform the operation in the APIG console. For details, see Creating veFaaS-type Upstreams and Creating routes. In this scenario, you can only view bound route information on the veFaaS side, instead of performing creation, editing, or deletion operations.
Procedure
- In the top navigation bar, select the target region.
- In the function list, find the function for which you want to create a trigger and click its name.
- On the function details page, click Create trigger on the Trigger tab.
- In the Create trigger panel, specify the parameters as required.
- Bind a route with 100% weight to the current APIG trigger.
- Click Confirm to create the APIG trigger.
What to do next
- For the method of modifying the configurations of the APIG trigger, see Managing triggers.
Last updated: 2026.08.19 14:06:06