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
    • Start testing with double trial credits
    • 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
  • 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:

  • HTTP request
  • Path parameters
  • Query parameters
  • Response
  1. API reference
  2. REST
  3. ApiGateway
  4. GetOpenapiSpec

API Gateway Service, REST: ApiGateway.GetOpenapiSpec

Written by
Yandex Cloud
Updated at January 14, 2025
  • HTTP request
  • Path parameters
  • Query parameters
  • Response

Returns the OpenAPI specification of specified API gateway.

HTTP requestHTTP request

GET https://serverless-apigateway.api.cloud.yandex.net/apigateways/v1/apigateways/{apiGatewayId}:spec

Path parametersPath parameters

Field

Description

apiGatewayId

string

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

Query parametersQuery parameters

Field

Description

format

enum (Format)

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

  • FORMAT_UNSPECIFIED
  • JSON
  • YAML

ResponseResponse

HTTP Code: 200 - OK

{
  "apiGatewayId": "string",
  "openapiSpec": "string"
}

Field

Description

apiGatewayId

string

ID of the API gateway.

openapiSpec

string

The text of specification, JSON or YAML.

Was the article helpful?

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