Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex API Gateway
  • Getting started
  • Access management
  • Tools
  • Pricing policy
  • Terraform reference
    • API authentication
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • Stop
        • Resume
        • AddDomain
        • RemoveDomain
        • GetOpenapiSpec
        • ListOperations
        • ListAccessBindings
        • SetAccessBindings
        • UpdateAccessBindings
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • gRPC request
  • GetOpenapiSpecRequest
  • GetOpenapiSpecResponse
  1. API reference
  2. gRPC
  3. ApiGateway
  4. GetOpenapiSpec

API Gateway Service, gRPC: ApiGatewayService.GetOpenapiSpec

Written by
Yandex Cloud
Updated at December 9, 2025
View as Markdown
  • gRPC request
  • GetOpenapiSpecRequest
  • GetOpenapiSpecResponse

Returns the OpenAPI specification of specified API gateway.

gRPC requestgRPC request

rpc GetOpenapiSpec (GetOpenapiSpecRequest) returns (GetOpenapiSpecResponse)

GetOpenapiSpecRequestGetOpenapiSpecRequest

{
  "api_gateway_id": "string",
  "format": "Format"
}

Field

Description

api_gateway_id

string

Required field. ID of the API gateway to get specification from.

format

enum Format

Format of returned specification. Default is the original format used in CreateApiGatewayRequest.

  • JSON
  • YAML

GetOpenapiSpecResponseGetOpenapiSpecResponse

{
  "api_gateway_id": "string",
  "openapi_spec": "string"
}

Field

Description

api_gateway_id

string

ID of the API gateway.

openapi_spec

string

The text of specification, JSON or YAML.

Was the article helpful?

Previous
RemoveDomain
Next
ListOperations
© 2026 Direct Cursus Technology L.L.C.