The page has been translated by Gen AI.
Set Trigger
Set up trigger
Reference
- By default, all triggers can be added in Cloud Functions.
- If triggered from a specific product, it must be passed to Cloud Functions.
Cronjob Trigger Setup
To set up a Cronjob trigger, follow these steps.
- All Services > Compute > Cloud Functions Click the menu. Navigate to the Service Home page of Cloud Functions.
- Click the Function menu on the Service Home page. It moves to the Function List page.
- Function List 페이지에서 트리거를 설정할 자원을 클릭하세요. Function Details 페이지로 이동합니다.
- After clicking the Trigger tab, click the Add Trigger button. Set it. The Add Trigger popup opens.
- Add Trigger In the popup window, select Trigger Type Cronjob. The required information input area appears at the bottom.
Category Detailed description Cronjob Settings Set the trigger’s repeat frequency - Can be set in minutes, hours, days, months, and weekdays
Timezone setting Set the trigger’s reference time zone Table. Cronjob Trigger Required Information Items - After entering the required information, click the Confirm button.
- When the pop-up window notifying addition opens, click the Confirm button.
API Gateway Trigger Setup
To set up an API Gateway trigger, follow these steps.
- All Services > Compute > Cloud Functions Click the menu. Go to the Service Home page of Cloud Functions.
- Click the Function menu on the Service Home page. Go to the Function List page.
- Function List on the page, click the resource to set the trigger. Function Details go to the page.
- After clicking the Trigger tab, click the Add Trigger button. Set it. The Add Trigger popup window opens.
- Add Trigger In the popup window, select Trigger Type API Gateway. A required information input area appears at the bottom.
Category Detailed description API name API selection - You can select an existing API or create a new one
Stage Select deployment target - You can select an existing stage or create a new one
Table. API Gateway Trigger Required Information Items - After entering the required information, click the Confirm button.
- When the popup notifying addition opens, click the Confirm button.
Setting up Multi Trigger
You can connect multiple triggers to a single function and use them.
Edit Trigger
To modify the added trigger, follow the steps below.
- All Services > Compute > Cloud Functions Click the menu. Go to the Service Home page of Cloud Functions.
- Click the Function menu on the Service Home page. Navigate to the Function List page.
- On the Function List page, click the resource to edit the trigger. It moves to the Function Details page.
- After clicking the Trigger tab, click the Edit button of the trigger whose settings you want to modify in the trigger list. The Edit Trigger popup window opens.
- Trigger Edit After modifying the setting values in the popup window, click the Confirm button.
- The setting values vary depending on the type of trigger (see Cronjob Trigger, API Gateway Trigger).
- When the popup notifying the edit opens, click Confirm.
Delete Trigger
To delete the trigger, follow the steps below.
Caution
Triggers linked to a specific product only manage the product delivered at the time of linking in that product, and when Functions are terminated, a deletion status must be delivered to that product.
- All Services > Compute > Cloud Functions Click the menu. Navigate to the Service Home page of Cloud Functions.
- Click the Function menu on the Service Home page. Navigate to the Function List page.
- Function List page, click the resource to set the trigger. Function Details page will be navigated.
- In the Trigger tab’s trigger list, after selecting the trigger to delete, click the Delete button.
- Click the Confirm button when the popup notifying trigger deletion opens.