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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex API Gateway
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • AddDomain
        • RemoveDomain
        • GetOpenapiSpec
        • ListOperations
        • ListAccessBindings
        • SetAccessBindings
        • UpdateAccessBindings
  • Monitoring metrics
  • Audit Trails events
  • 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 January 14, 2025
  • gRPC request
  • GetOpenapiSpecRequest
  • GetOpenapiSpecResponse

Returns the OpenAPI specification of specified API gateway.

gRPC request

rpc GetOpenapiSpec (GetOpenapiSpecRequest) returns (GetOpenapiSpecResponse)

GetOpenapiSpecRequest

{
  "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.

  • FORMAT_UNSPECIFIED
  • JSON
  • YAML

GetOpenapiSpecResponse

{
  "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
Yandex project
© 2025 Yandex.Cloud LLC