Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex API Gateway
  • Getting started
    • Resource relationships
    • Networking
      • Overview
        • Static response
        • Access over HTTP
        • Cloud Functions
        • Serverless Containers
        • Smart Web Security
        • Object Storage
        • DataSphere
        • Data Streams
        • Message Queue
        • Managed Service for YDB
      • Greedy parameters
      • Generic HTTP method
      • Authorization using a Cloud Functions function
      • Authorization using a JWT
      • WebSocket protocol support
      • Data validation
      • CORS
      • Specification parameterization
      • Canary release
      • Request rate limit
      • Response code replacement
      • Transformation of response and request bodies
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Supported parameters
  • Extension specification
  • Use cases
  1. Concepts
  2. Specification extensions
  3. Integration options
  4. Object Storage

x-yc-apigateway-integration:object_storage extension

Written by
Yandex Cloud
Improved by
Nikolay M.
Updated at April 18, 2025
  • Supported parameters
  • Extension specification
  • Use cases

The x-yc-apigateway-integration:object_storage extension delegates request handling to Object Storage for static file distribution.

You can add an extension to a specification using the specification constructor.

Supported parametersSupported parameters

The table below lists the parameters specific to API Gateway API gateways. You can find the description of other parameters in the OpenAPI 3.0 specification.

Parameter Type Description
bucket string Bucket name.
object string Object name. It supports parameter templating from the original request path.
The parameters are subsituted into object.
error_object string | ErrorObjectSettings This is an optional parameter. The name of the object and the optional response code returned if object does not exist in the specified bucket. The parameters are subsituted into error_object.
service_account_id string ID of the service account used for authorization when accessing Object Storage. If you omit the parameter, the service_account_id top-level parameter value will be used. If the top-level parameter is also missing, the object will be available without authorization.

The ErrorObjectSettings object may contain the following parameters:

Parameter Type Description
object string Object name. The parameters are subsituted into object.
statusCode number Returned response code.

Extension specificationExtension specification

Specification example:

  /static/{file}:
    get:
      summary: Serve static file from Yandex Cloud Object Storage
      parameters:
        - name: file
          in: path
          required: true
          schema:
            type: string
      x-yc-apigateway-integration:
        type: object_storage
        bucket: <bucket_name>
        object: '{file}'
        error_object: error.html
        service_account_id: ajehfe65fhl********

Use casesUse cases

  • Deploying a web application using the Java Servlet API
  • URL shortener
  • How to create a Telegram bot

Was the article helpful?

Previous
Smart Web Security
Next
DataSphere
© 2025 Direct Cursus Technology L.L.C.