Method list
Retrieves the list of triggers in the specified folder.
HTTP request
GET https://serverless-triggers.api.cloud.yandex.net/triggers/v1/triggers
Query parameters
Parameter | Description |
---|---|
folderId | Required. ID of the folder to list triggers in. To get a folder ID use a list request. |
pageSize | The maximum number of results per page to return. If the number of available results is larger than pageSize , the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Default value: 100. |
pageToken | Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request. |
filter | A filter expression that filters triggers listed in the response. The expression must specify: 1. The field name. Currently filtering can only be applied to the Trigger.name field. 2. A conditional operator. Can be either = or != for single values, IN or NOT IN for lists of values. 3. The value. Must be 3-63 characters long and match the regular expression ^[a-z][-a-z0-9]{1,61}[a-z0-9]$ . Example of a filter: name=my-trigger . |
Response
HTTP Code: 200 - OK
{
"triggers": [
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"rule": {
// `triggers[].rule` includes only one of the fields `timer`, `messageQueue`, `iotMessage`, `objectStorage`, `containerRegistry`, `cloudLogs`
"timer": {
"cronExpression": "string",
// `triggers[].rule.timer` includes only one of the fields `invokeFunction`, `invokeFunctionWithRetry`
"invokeFunction": {
"functionId": "string",
"functionTag": "string",
"serviceAccountId": "string"
},
"invokeFunctionWithRetry": {
"functionId": "string",
"functionTag": "string",
"serviceAccountId": "string",
"retrySettings": {
"retryAttempts": "string",
"interval": "string"
},
"deadLetterQueue": {
"queueId": "string",
"serviceAccountId": "string"
}
},
// end of the list of possible fields`triggers[].rule.timer`
},
"messageQueue": {
"queueId": "string",
"serviceAccountId": "string",
"batchSettings": {
"size": "string",
"cutoff": "string"
},
"visibilityTimeout": "string",
"invokeFunction": {
"functionId": "string",
"functionTag": "string",
"serviceAccountId": "string"
}
},
"iotMessage": {
"registryId": "string",
"deviceId": "string",
"mqttTopic": "string",
"invokeFunction": {
"functionId": "string",
"functionTag": "string",
"serviceAccountId": "string",
"retrySettings": {
"retryAttempts": "string",
"interval": "string"
},
"deadLetterQueue": {
"queueId": "string",
"serviceAccountId": "string"
}
}
},
"objectStorage": {
"eventType": [
"string"
],
"bucketId": "string",
"prefix": "string",
"suffix": "string",
"invokeFunction": {
"functionId": "string",
"functionTag": "string",
"serviceAccountId": "string",
"retrySettings": {
"retryAttempts": "string",
"interval": "string"
},
"deadLetterQueue": {
"queueId": "string",
"serviceAccountId": "string"
}
}
},
"containerRegistry": {
"eventType": [
"string"
],
"registryId": "string",
"imageName": "string",
"tag": "string",
"invokeFunction": {
"functionId": "string",
"functionTag": "string",
"serviceAccountId": "string",
"retrySettings": {
"retryAttempts": "string",
"interval": "string"
},
"deadLetterQueue": {
"queueId": "string",
"serviceAccountId": "string"
}
}
},
"cloudLogs": {
"logGroupId": [
"string"
],
"batchSettings": {
"size": "string",
"cutoff": "string"
},
"invokeFunction": {
"functionId": "string",
"functionTag": "string",
"serviceAccountId": "string",
"retrySettings": {
"retryAttempts": "string",
"interval": "string"
},
"deadLetterQueue": {
"queueId": "string",
"serviceAccountId": "string"
}
}
},
// end of the list of possible fields`triggers[].rule`
},
"status": "string"
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
triggers[] | object A trigger to invoke a serverless function. For more information, see Triggers. |
triggers[]. id |
string ID of the trigger. Generated at creation time. |
triggers[]. folderId |
string Required. ID of the folder that the trigger belongs to. The maximum string length in characters is 50. |
triggers[]. createdAt |
string (date-time) Creation timestamp for the trigger. String in RFC3339 text format. |
triggers[]. name |
string Name of the trigger. The string length in characters must be 3-63. |
triggers[]. description |
string Description of the trigger. The string length in characters must be 0-256. |
triggers[]. labels |
object Trigger labels as |
triggers[]. rule |
object Required. Rule for trigger activation (always consistent with the trigger type). Description of a rule for trigger activation. |
triggers[]. rule. timer |
object Rule for a timed trigger. triggers[].rule includes only one of the fields timer , messageQueue , iotMessage , objectStorage , containerRegistry , cloudLogs Rule for activating a timed trigger. |
triggers[]. rule. timer. cronExpression |
string Required. Description of a schedule as a cron expression. The maximum string length in characters is 100. |
triggers[]. rule. timer. invokeFunction |
object Instructions for invoking a function once. triggers[].rule.timer includes only one of the fields invokeFunction , invokeFunctionWithRetry A single function invocation. |
triggers[]. rule. timer. invokeFunction. functionId |
string Required. ID of the function to invoke. The maximum string length in characters is 50. |
triggers[]. rule. timer. invokeFunction. functionTag |
string Version tag of the function to execute. |
triggers[]. rule. timer. invokeFunction. serviceAccountId |
string ID of the service account that should be used to invoke the function. |
triggers[]. rule. timer. invokeFunctionWithRetry |
object Instructions for invoking a function with retries as needed. triggers[].rule.timer includes only one of the fields invokeFunction , invokeFunctionWithRetry A function invocation with retries. |
triggers[]. rule. timer. invokeFunctionWithRetry. functionId |
string Required. ID of the function to invoke. The maximum string length in characters is 50. |
triggers[]. rule. timer. invokeFunctionWithRetry. functionTag |
string Version tag of the function to execute. |
triggers[]. rule. timer. invokeFunctionWithRetry. serviceAccountId |
string ID of the service account which has permission to invoke the function. |
triggers[]. rule. timer. invokeFunctionWithRetry. retrySettings |
object Retry policy. If the field is not specified, or the value is empty, no retries will be attempted. Settings for retrying to invoke a function. |
triggers[]. rule. timer. invokeFunctionWithRetry. retrySettings. retryAttempts |
string (int64) Maximum number of retries (extra invokes) before the action is considered failed. Acceptable values are 1 to 5, inclusive. |
triggers[]. rule. timer. invokeFunctionWithRetry. retrySettings. interval |
string Required. Time in seconds to wait between individual retries. |
triggers[]. rule. timer. invokeFunctionWithRetry. deadLetterQueue |
object DLQ policy (no value means discarding a message). |
triggers[]. rule. timer. invokeFunctionWithRetry. deadLetterQueue. queueId |
string ID of the queue. |
triggers[]. rule. timer. invokeFunctionWithRetry. deadLetterQueue. serviceAccountId |
string Required. Service account which has write permission on the queue. The maximum string length in characters is 50. |
triggers[]. rule. messageQueue |
object Rule for a message queue trigger. triggers[].rule includes only one of the fields timer , messageQueue , iotMessage , objectStorage , containerRegistry , cloudLogs Rule for activating a message queue trigger. |
triggers[]. rule. messageQueue. queueId |
string Required. ID of the message queue in Yandex Message Queue. |
triggers[]. rule. messageQueue. serviceAccountId |
string Required. ID of the service account which has read access to the message queue. The maximum string length in characters is 50. |
triggers[]. rule. messageQueue. batchSettings |
object Required. Batch settings for processing messages in the queue. Settings for batch processing of messages in a queue. |
triggers[]. rule. messageQueue. batchSettings. size |
string (int64) Batch size. Trigger will send the batch of messages to the function when the number of messages in the queue reaches Acceptable values are 0 to 10, inclusive. |
triggers[]. rule. messageQueue. batchSettings. cutoff |
string Required. Maximum wait time. Trigger will send the batch of messages to the function when the number of messages in the queue reaches |
triggers[]. rule. messageQueue. visibilityTimeout |
string Queue visibility timeout override. The maximum value is 43200 seconds. |
triggers[]. rule. messageQueue. invokeFunction |
object Instructions for invoking a function once. A single function invocation. |
triggers[]. rule. messageQueue. invokeFunction. functionId |
string Required. ID of the function to invoke. The maximum string length in characters is 50. |
triggers[]. rule. messageQueue. invokeFunction. functionTag |
string Version tag of the function to execute. |
triggers[]. rule. messageQueue. invokeFunction. serviceAccountId |
string ID of the service account that should be used to invoke the function. |
triggers[]. rule. iotMessage |
object Rule for a Yandex IoT Core trigger. triggers[].rule includes only one of the fields timer , messageQueue , iotMessage , objectStorage , containerRegistry , cloudLogs Rule for activating a Yandex IoT Core trigger. |
triggers[]. rule. iotMessage. registryId |
string Required. ID of the Yandex IoT Core registry. |
triggers[]. rule. iotMessage. deviceId |
string ID of the Yandex IoT Core device in the registry. |
triggers[]. rule. iotMessage. mqttTopic |
string MQTT topic whose messages activate the trigger. |
triggers[]. rule. iotMessage. invokeFunction |
object Instructions for invoking a function with retries as needed. A function invocation with retries. |
triggers[]. rule. iotMessage. invokeFunction. functionId |
string Required. ID of the function to invoke. The maximum string length in characters is 50. |
triggers[]. rule. iotMessage. invokeFunction. functionTag |
string Version tag of the function to execute. |
triggers[]. rule. iotMessage. invokeFunction. serviceAccountId |
string ID of the service account which has permission to invoke the function. |
triggers[]. rule. iotMessage. invokeFunction. retrySettings |
object Retry policy. If the field is not specified, or the value is empty, no retries will be attempted. Settings for retrying to invoke a function. |
triggers[]. rule. iotMessage. invokeFunction. retrySettings. retryAttempts |
string (int64) Maximum number of retries (extra invokes) before the action is considered failed. Acceptable values are 1 to 5, inclusive. |
triggers[]. rule. iotMessage. invokeFunction. retrySettings. interval |
string Required. Time in seconds to wait between individual retries. |
triggers[]. rule. iotMessage. invokeFunction. deadLetterQueue |
object DLQ policy (no value means discarding a message). |
triggers[]. rule. iotMessage. invokeFunction. deadLetterQueue. queueId |
string ID of the queue. |
triggers[]. rule. iotMessage. invokeFunction. deadLetterQueue. serviceAccountId |
string Required. Service account which has write permission on the queue. The maximum string length in characters is 50. |
triggers[]. rule. objectStorage |
object triggers[].rule includes only one of the fields timer , messageQueue , iotMessage , objectStorage , containerRegistry , cloudLogs |
triggers[]. rule. objectStorage. eventType[] |
string Required. Type (name) of events, at least one value is required. Must contain at least one element. |
triggers[]. rule. objectStorage. bucketId |
string ID of the bucket. |
triggers[]. rule. objectStorage. prefix |
string Prefix of the object key. Filter, optional. |
triggers[]. rule. objectStorage. suffix |
string Suffix of the object key. Filter, optional. |
triggers[]. rule. objectStorage. invokeFunction |
object Instructions for invoking a function with retries as needed. A function invocation with retries. |
triggers[]. rule. objectStorage. invokeFunction. functionId |
string Required. ID of the function to invoke. The maximum string length in characters is 50. |
triggers[]. rule. objectStorage. invokeFunction. functionTag |
string Version tag of the function to execute. |
triggers[]. rule. objectStorage. invokeFunction. serviceAccountId |
string ID of the service account which has permission to invoke the function. |
triggers[]. rule. objectStorage. invokeFunction. retrySettings |
object Retry policy. If the field is not specified, or the value is empty, no retries will be attempted. Settings for retrying to invoke a function. |
triggers[]. rule. objectStorage. invokeFunction. retrySettings. retryAttempts |
string (int64) Maximum number of retries (extra invokes) before the action is considered failed. Acceptable values are 1 to 5, inclusive. |
triggers[]. rule. objectStorage. invokeFunction. retrySettings. interval |
string Required. Time in seconds to wait between individual retries. |
triggers[]. rule. objectStorage. invokeFunction. deadLetterQueue |
object DLQ policy (no value means discarding a message). |
triggers[]. rule. objectStorage. invokeFunction. deadLetterQueue. queueId |
string ID of the queue. |
triggers[]. rule. objectStorage. invokeFunction. deadLetterQueue. serviceAccountId |
string Required. Service account which has write permission on the queue. The maximum string length in characters is 50. |
triggers[]. rule. containerRegistry |
object triggers[].rule includes only one of the fields timer , messageQueue , iotMessage , objectStorage , containerRegistry , cloudLogs |
triggers[]. rule. containerRegistry. eventType[] |
string Required. Type (name) of events, at least one value is required. Must contain at least one element. |
triggers[]. rule. containerRegistry. registryId |
string ID of the registry. |
triggers[]. rule. containerRegistry. imageName |
string Docker-image name. Filter, optional. |
triggers[]. rule. containerRegistry. tag |
string Docker-image tag. Filter, optional. |
triggers[]. rule. containerRegistry. invokeFunction |
object Instructions for invoking a function with retries as needed. A function invocation with retries. |
triggers[]. rule. containerRegistry. invokeFunction. functionId |
string Required. ID of the function to invoke. The maximum string length in characters is 50. |
triggers[]. rule. containerRegistry. invokeFunction. functionTag |
string Version tag of the function to execute. |
triggers[]. rule. containerRegistry. invokeFunction. serviceAccountId |
string ID of the service account which has permission to invoke the function. |
triggers[]. rule. containerRegistry. invokeFunction. retrySettings |
object Retry policy. If the field is not specified, or the value is empty, no retries will be attempted. Settings for retrying to invoke a function. |
triggers[]. rule. containerRegistry. invokeFunction. retrySettings. retryAttempts |
string (int64) Maximum number of retries (extra invokes) before the action is considered failed. Acceptable values are 1 to 5, inclusive. |
triggers[]. rule. containerRegistry. invokeFunction. retrySettings. interval |
string Required. Time in seconds to wait between individual retries. |
triggers[]. rule. containerRegistry. invokeFunction. deadLetterQueue |
object DLQ policy (no value means discarding a message). |
triggers[]. rule. containerRegistry. invokeFunction. deadLetterQueue. queueId |
string ID of the queue. |
triggers[]. rule. containerRegistry. invokeFunction. deadLetterQueue. serviceAccountId |
string Required. Service account which has write permission on the queue. The maximum string length in characters is 50. |
triggers[]. rule. cloudLogs |
object triggers[].rule includes only one of the fields timer , messageQueue , iotMessage , objectStorage , containerRegistry , cloudLogs |
triggers[]. rule. cloudLogs. logGroupId[] |
string Log group identifiers, at least one value is required. |
triggers[]. rule. cloudLogs. batchSettings |
object Required. Batch settings for processing log events. |
triggers[]. rule. cloudLogs. batchSettings. size |
string (int64) Batch size. Trigger will send the batch of messages to the function when the number of messages in the log group reaches Acceptable values are 0 to 100, inclusive. |
triggers[]. rule. cloudLogs. batchSettings. cutoff |
string Maximum wait time. Trigger will send the batch of messages to the function when the number of messages in the log group reaches Acceptable values are 1 seconds to 60 seconds, inclusive. |
triggers[]. rule. cloudLogs. invokeFunction |
object Instructions for invoking a function with retries as needed. A function invocation with retries. |
triggers[]. rule. cloudLogs. invokeFunction. functionId |
string Required. ID of the function to invoke. The maximum string length in characters is 50. |
triggers[]. rule. cloudLogs. invokeFunction. functionTag |
string Version tag of the function to execute. |
triggers[]. rule. cloudLogs. invokeFunction. serviceAccountId |
string ID of the service account which has permission to invoke the function. |
triggers[]. rule. cloudLogs. invokeFunction. retrySettings |
object Retry policy. If the field is not specified, or the value is empty, no retries will be attempted. Settings for retrying to invoke a function. |
triggers[]. rule. cloudLogs. invokeFunction. retrySettings. retryAttempts |
string (int64) Maximum number of retries (extra invokes) before the action is considered failed. Acceptable values are 1 to 5, inclusive. |
triggers[]. rule. cloudLogs. invokeFunction. retrySettings. interval |
string Required. Time in seconds to wait between individual retries. |
triggers[]. rule. cloudLogs. invokeFunction. deadLetterQueue |
object DLQ policy (no value means discarding a message). |
triggers[]. rule. cloudLogs. invokeFunction. deadLetterQueue. queueId |
string ID of the queue. |
triggers[]. rule. cloudLogs. invokeFunction. deadLetterQueue. serviceAccountId |
string Required. Service account which has write permission on the queue. The maximum string length in characters is 50. |
triggers[]. status |
string Trigger status. |
nextPageToken | string Token for getting the next page of the list. If the number of results is greater than the specified pageSize, use Each subsequent page will have its own |