Deleting a trigger in Yandex API Gateway
Written by
Updated at October 17, 2024
Management console
CLI
API
- In the management console
, select the folder containing your trigger. - Open API Gateway.
- In the left-hand panel, select
Triggers. - Select the trigger you want to delete.
- In the top-right corner of the page, click Delete.
- In the window that opens, click Delete.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To find out the name or unique ID of a trigger, get a list of triggers in the folder.
Delete the trigger:
yc serverless trigger delete <trigger_name>
Result:
id: a1s5msktijh2********
folder_id: b1gmit33hgh2********
created_at: "2022-10-24T15:19:15.353909857Z"
name: timer-test
rule:
timer:
cron_expression: 5 10 ? * * *
gateway_websocket_broadcast:
gateway_id: d4eofc7n0mh2********
path: /
service_account_id: aje3932acdh2********
status: PAUSED
To delete a trigger, use the delete REST API method for the Trigger resource or the TriggerService/Delete gRPC API call.