Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex API Gateway
  • Getting started
    • Resource relationships
    • Networking
      • Overview
      • Timer
      • Trigger for Message Queue
      • Trigger for Object Storage
      • Trigger for Container Registry
      • Trigger for Yandex Cloud Logging
      • Trigger for Yandex IoT Core
      • Trigger for budgets
      • Trigger for Data Streams
      • Email trigger
    • Quotas and limits
  • Access management
  • Tools
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Events for setting up a trigger
  • Filtering events by object
  • Event batching
  • Roles required for the proper operation of a trigger for Object Storage
  • Object Storage trigger message format
  • Useful links
  1. Concepts
  2. Trigger
  3. Trigger for Object Storage

Trigger for Object Storage that sends messages to WebSocket connections

Written by
Yandex Cloud
Updated at July 8, 2026
View in Markdown
  • Events for setting up a trigger
    • Filtering events by object
  • Event batching
  • Roles required for the proper operation of a trigger for Object Storage
  • Object Storage trigger message format
  • Useful links

A trigger for Object Storage sends messages to WebSocket connections when a specific event occurs with an Object Storage object. The trigger must be in the same cloud as the bucket whose events it is subscribed to.

A trigger for Object Storage requires a service account to send messages to WebSocket connections.

For more information about creating a trigger for Object Storage, see Creating a trigger for Object Storage that sends messages to WebSocket connections.

Events for setting up a triggerEvents for setting up a trigger

Events with bucket objects that can be tracked using a trigger:

  • Creating an object.
  • Editing an object ACL.
  • Deleting an object.

Filtering events by objectFiltering events by object

Events are filtered using prefixes and suffixes for an object key.

  • The prefix is a part at the beginning of the object key.
  • The suffix is a part at the end of the object key.

Prefixes and suffixes can be of any length. When using a prefix and suffix at the same time, filtering is based on the logical AND: for the trigger to fire, the object key must match both the prefix and suffix.

Event batchingEvent batching

The grouping settings allow sending several events to WebSocket connections in one go. They set a top limit on event group size and on event group accumulation time. For example, if the event group size is 3, WebSocket connections can receive groups containing from 1 to 3 events.

Roles required for the proper operation of a trigger for Object StorageRoles required for the proper operation of a trigger for Object Storage

  • To create a trigger, you need a permission for the service account under which the trigger runs the operation. This permission comes with the iam.serviceAccounts.user and editor roles or higher.
  • For the trigger to fire, the service account needs the api-gateway.websocketBroadcaster role for the folder containing the API gateway.

Read more about access management.

Object Storage trigger message formatObject Storage trigger message format

After the trigger fires, it will send the following message to WebSocket connections:

{
  "messages": [
    {
      "event_metadata": {
        "event_id": "bb1dd06d-a82c-49b4-af98-d8e0********",
        "event_type": "yandex.cloud.events.storage.ObjectDelete",
        "created_at": "2019-12-19T14:17:47.847365Z",
        "tracing_context": {
          "trace_id": "dd52ace7********",
          "span_id": "",
          "parent_span_id": ""
        },
        "cloud_id": "b1gvlrnlei4l********",
        "folder_id": "b1g88tflru0e********"
      },
      "details": {
        "bucket_id": "s3-for-trigger",
        "object_id": "dev/0_15a775_972dbde4_orig12.jpg"
      }
    }
  ]
}

Useful linksUseful links

  • Trigger for Object Storage that runs a Serverless Containers container
  • Trigger for Object Storage that runs a Cloud Functions function

Was the article helpful?

Previous
Trigger for Message Queue
Next
Trigger for Container Registry
© 2026 Direct Cursus Technology L.L.C.