Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex API Gateway
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Creating API gateways
    • Updating API gateways and their specifications
    • Connecting a domain
    • Deleting API gateways
    • Viewing monitoring charts
    • Viewing the execution log
  • Concepts
    • Relationship between service resources
    • Specification extensions
      • Overview
      • Static response
      • Invoking a function
      • Access via HTTP
      • Integration with Object Storage
    • Quotas and limits
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • ApiGatewayService
      • OperationService
    • REST
      • Overview
      • ApiGateway
        • Overview
        • create
        • delete
        • get
        • getOpenapiSpec
        • list
        • listAccessBindings
        • listOperations
        • setAccessBindings
        • update
        • updateAccessBindings
  • Questions and answers
  1. Concepts
  2. Specification extensions
  3. Overview

Overview

  • x-yc-apigateway extension
    • Supported parameters
    • Extension specification
  • x-yc-apigateway-integration extension
    • Supported parameters
    • Extension specification

x-yc-apigateway extension

The x-yc-apigateway extension lets you set top-level API gateway parameters whose values will be inherited by nested extensions.

Supported parameters

The table below lists the parameters specific to API Gateway API gateways. Read more about other parameters in the OpenAPI Specification 3.0.

Parameter Type Description
service_account_id string ID of the service account on behalf of which the API gateway will perform operations.

Extension specification

x-yc-apigateway:
  service_account_id: <service account ID>

x-yc-apigateway-integration extension

The x-yc-apigateway-integration extension is the entry point for integrating the API gateway with other services.

Supported parameters

The table below lists the parameters specific to API Gateway API gateways. Read more about other parameters in the OpenAPI Specification 3.0.

Parameter Type Description
type string Extension type. Possible values: dummy, cloud_functions, http, and object_storage.

Extension specification

<Request>:
  <Method>:
    x-yc-apigateway-integration:
      type: <Type>
      <List of parameters as key:value pairs>

The extension's content changes depending on the type (type) specified in the x-yc-apigateway-integration section:

  • dummy: returns fixed content with the specified response code and required headers without any third-party service involved.
  • cloud_functions: invokes the specified function, passes the HTTP request data to it as input, and returns the result of this function to the client.
  • http: redirects the request to the specified URL.
  • object_storage: passes the request handling control to Object Storage for distributing static files.

All types support parameter substitution when all keys are replaced with the appropriate value. A key should be defined as a parameter of the corresponding operation (all types of parameters defined in the OpenAPI-Specification are allowed: path, query, header, and cookie).
Parameters are only substituted in some values, depending on the type of extension.

In this article:
  • x-yc-apigateway extension
  • Supported parameters
  • Extension specification
  • x-yc-apigateway-integration extension
  • Supported parameters
  • Extension specification
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC