Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • api_gateway
          • function
          • function_trigger
          • iot_core_broker
          • iot_core_registry
          • logging_group
          • serverless_container

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Cloud Logging
  4. Data Sources
  5. api_gateway

yandex_api_gateway (DataSource)

Written by
Yandex Cloud
Updated at February 12, 2026
  • Example usage
  • Arguments & Attributes Reference

Get information about a Yandex Cloud API Gateway. For more information, see the official documentation Yandex Cloud API Gateway.

Warning

Either api_gateway_id or name must be specified.

Example usageExample usage

//
// Get information about existing API Gateway
//
data "yandex_api_gateway" "my-api-gateway" {
  name = "my-api-gateway"
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • api_gateway_id (String). Yandex Cloud API Gateway id used to define api gateway.

  • created_at (Read-Only) (String). The creation timestamp of the resource.

  • description (String). The resource description.

  • domain (Read-Only) (String). Default domain for the Yandex Cloud API Gateway. Generated at creation time.

  • execution_timeout (String). Execution timeout in seconds for the Yandex Cloud API Gateway.

  • folder_id (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.

  • id (String).

  • labels (Map Of String). A set of key/value label pairs which assigned to resource.

  • log_group_id (Read-Only) (String). ID of the log group for the Yandex Cloud API Gateway.

  • log_options [Block]. Options for logging from Yandex Cloud API Gateway.

    • disabled (Bool). Is logging from Yandex Cloud API Gateway disabled.
    • folder_id (String). Log entries are written to default log group for specified folder.
    • log_group_id (String). Log entries are written to specified log group.
    • min_level (String). Minimum log entry level.
  • name (Required)(String). The resource name.

  • status (Read-Only) (String). Status of the Yandex Cloud API Gateway.

  • user_domains (Read-Only) (Set Of String).

    Warning

    DEPRECATED Use custom_domains instead. Set of user domains attached to Yandex Cloud API Gateway.

  • variables (Map Of String). A set of values for variables in gateway specification.

  • canary [Block]. Canary release settings of gateway.

    • variables (Map Of String). A list of values for variables in gateway specification of canary release.
    • weight (Number). Percentage of requests, which will be processed by canary release.
  • connectivity [Block]. Gateway connectivity. If specified the gateway will be attached to specified network.

    • network_id (Required)(String). Network the gateway will have access to. It's essential to specify network with subnets in all availability zones.
  • custom_domains [Block]. Set of custom domains to be attached to Yandex Cloud API Gateway.

    • certificate_id (Required)(String).
    • domain_id (String).
    • fqdn (Required)(String).

Was the article helpful?

Previous
cloud_desktops_desktop_group
Next
function
© 2026 Direct Cursus Technology L.L.C.