Getting information about a trigger
To access a trigger, use its name or unique ID. To find them, get a list of triggers in a folder.
Getting a list of triggers in a folder
- In the management console, go to the folder where you want to view a list of triggers.
- Open Cloud Functions.
- Go to the Triggers tab.
If you don't 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.
Get a list of triggers:
yc serverless trigger list
Result:
+----------------------+------------+----------------------+
| ID | NAME | FOLDER ID |
+----------------------+------------+----------------------+
| dd0gj5tsj2pq9at8ja8i | my-trigger | aoek49ghmknnpj1ll45e |
+----------------------+------------+----------------------+
You can get a list of triggers using the list API method.
Getting detailed information about a trigger
- In the management console, go to the folder where the trigger is located.
- Open Cloud Functions.
- Go to the Triggers tab.
- Select the trigger to get detailed information about.
If you don't 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.
Get detailed information about a trigger:
yc serverless trigger get <trigger name>
Result:
id: dd0gj5tsj2pq9at8ja8i
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-08-28T12:26:25.675Z"
name: my-trigger
description: My YMQ trigger.
rule:
message_queue:
arn: yrn:yc:ymq:ru-central1:aoek49ghmknnpj1ll45e:my-mq
service_account_id: bfbqqeo6jkpls2tse5o6
batch_settings:
size: "10"
cutoff: 10s
invoke_function:
function_id: b09e5lu91ta21vdrrgma
function_tag: $latest
service_account_id: bfbqqeo6jkpls2tse5o6
status: ACTIVE
You can get detailed information about a trigger using the get API method.