Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • ИИ для бизнеса
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»
Terraform в Yandex Cloud
  • Начало работы
  • Библиотека решений
    • Обзор
    • История изменений (англ.)
          • api_gateway

В этой статье:

  • Example usage
  • Schema
  • Optional
  • Read-Only
  • Nested Schema for canary
  • Nested Schema for connectivity
  • Nested Schema for custom_domains
  • Nested Schema for log_options
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Yandex API Gateway
  4. Data Sources
  5. api_gateway

yandex_api_gateway (Data Source)

Статья создана
Yandex Cloud
Обновлена 11 сентября 2025 г.
  • Example usage
  • Schema
    • Optional
    • Read-Only
    • Nested Schema for canary
    • Nested Schema for connectivity
    • Nested Schema for custom_domains
    • Nested Schema for log_options

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

Важно

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"
}

SchemaSchema

OptionalOptional

  • api_gateway_id (String) Yandex Cloud API Gateway id used to define api gateway.
  • canary (Block List, Max: 1) (see below for nested schema)
  • connectivity (Block List, Max: 1) (see below for nested schema)
  • custom_domains (Block Set) (see below for nested schema)
  • 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.
  • name (String) The resource name.
  • variables (Map of String) A set of values for variables in gateway specification.

Read-OnlyRead-Only

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

  • description (String) The resource description.

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

  • id (String) The ID of this resource.

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

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

  • log_options (List of Object) (see below for nested schema)

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

  • user_domains (Set of String, Deprecated)

    Важно

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

Nested Schema for Nested Schema for canary

Optional:

  • 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.

Nested Schema for Nested Schema for connectivity

Required:

  • network_id (String) Network the gateway will have access to. It's essential to specify network with subnets in all availability zones.

Nested Schema for Nested Schema for custom_domains

Required:

  • certificate_id (String)
  • fqdn (String)

Optional:

  • domain_id (String)

Nested Schema for Nested Schema for log_options

Read-Only:

  • disabled (Boolean) 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.

Была ли статья полезна?

Предыдущая
vpc_subnet
Следующая
api_gateway
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»