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

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

  • Example usage
  • Arguments & Attributes Reference
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Smart Captcha
  4. Data Sources
  5. smartcaptcha_captcha

yandex_smartcaptcha_captcha (DataSource)

Статья создана
Yandex Cloud
Обновлена 12 февраля 2026 г.
  • Example usage
  • Arguments & Attributes Reference

A Captcha resource.

Example usageExample usage

//
// Get SmartCaptcha details by Id.
//
data "yandex_smartcaptcha_captcha" "by-id" {
  captcha_id = yandex_smartcaptcha_captcha.my-captcha.id
}
//
// Get SmartCaptcha details by Name.
//
data "yandex_smartcaptcha_captcha" "by-name" {
  name = yandex_smartcaptcha_captcha.my-captcha.name
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • allowed_sites (List Of String). List of allowed host names, see Domain validation.
  • captcha_id (String). ID of the Captcha resource to return.
  • challenge_type (String). Additional task type of the captcha.
  • client_key (Read-Only) (String). Client key of the captcha, see CAPTCHA keys.
  • cloud_id (String). ID of the cloud that the captcha belongs to.
  • complexity (String). Complexity of the captcha.
  • created_at (Read-Only) (String). Creation timestamp in RFC3339 text format.
  • deletion_protection (Bool). Determines whether captcha is protected from being deleted.
  • description (String). Optional description of the captcha.
  • disallow_data_processing (Bool). If true, Yandex team won't be able to read internal data.
  • folder_id (String). ID of the folder that the captcha belongs to.
  • id (String). ID of the Captcha resource to return.
  • labels (Map Of String). Resource labels as key:value pairs.
  • name (String). Name of the captcha. The name is unique within the folder. 3-63 characters long.
  • override_variant [Block]. List of variants to use in security_rules
    • challenge_type (String). Additional task type of the captcha.
    • complexity (String). Complexity of the captcha.
    • description (String). Optional description of the rule. 0-512 characters long.
    • pre_check_type (String). Basic check type of the captcha.
    • uuid (String). Unique identifier of the variant.
  • pre_check_type (String). Basic check type of the captcha.
  • security_rule [Block]. List of security rules.
    • condition [Block]. The condition for matching the rule.

      • headers [Block]. Captcha request headers.

        • name (Required)(String). Name of header (case insensitive).
        • value [Block]. Value of the header.
          • exact_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • exact_not_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • pire_regex_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • pire_regex_not_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • prefix_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • prefix_not_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

      • host [Block]. Host where captcha placed.

        • hosts [Block]. List of hosts. OR semantics implied.
          • exact_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • exact_not_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • pire_regex_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • pire_regex_not_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • prefix_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • prefix_not_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

      • source_ip [Block]. The IP address of the requester.

        • geo_ip_match [Block]. package: yandex.cloud.smartcaptcha.v1
          filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • locations (List Of String). ISO 3166-1 alpha 2. OR semantics implied.
        • geo_ip_not_match [Block]. package: yandex.cloud.smartcaptcha.v1
          filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • locations (List Of String). ISO 3166-1 alpha 2. OR semantics implied.
        • ip_ranges_match [Block]. package: yandex.cloud.smartcaptcha.v1
          filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • ip_ranges (List Of String). List of IP ranges. OR semantics implied.
        • ip_ranges_not_match [Block]. package: yandex.cloud.smartcaptcha.v1
          filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • ip_ranges (List Of String). List of IP ranges. OR semantics implied.
      • uri [Block]. URI where captcha placed.

        • path [Block]. Path of the URI RFC3986.

          • exact_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • exact_not_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • pire_regex_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • pire_regex_not_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • prefix_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

          • prefix_not_match (String). package: yandex.cloud.smartcaptcha.v1
            filename: yandex/cloud/smartcaptcha/v1/captcha.proto

        • queries [Block]. List of query matchers. AND semantics implied.

          • key (Required)(String). Key of the query parameter.
          • value [Block]. Value of the query parameter.
            • exact_match (String). package: yandex.cloud.smartcaptcha.v1
              filename: yandex/cloud/smartcaptcha/v1/captcha.proto

            • exact_not_match (String). package: yandex.cloud.smartcaptcha.v1
              filename: yandex/cloud/smartcaptcha/v1/captcha.proto

            • pire_regex_match (String). package: yandex.cloud.smartcaptcha.v1
              filename: yandex/cloud/smartcaptcha/v1/captcha.proto

            • pire_regex_not_match (String). package: yandex.cloud.smartcaptcha.v1
              filename: yandex/cloud/smartcaptcha/v1/captcha.proto

            • prefix_match (String). package: yandex.cloud.smartcaptcha.v1
              filename: yandex/cloud/smartcaptcha/v1/captcha.proto

            • prefix_not_match (String). package: yandex.cloud.smartcaptcha.v1
              filename: yandex/cloud/smartcaptcha/v1/captcha.proto

    • description (String). Optional description of the rule. 0-512 characters long.

    • name (Required)(String). Name of the rule. The name is unique within the captcha. 1-50 characters long.

    • override_variant_uuid (String). Variant UUID to show in case of match the rule. Keep empty to use defaults.

    • priority (Number). Priority of the rule. Lower value means higher priority.

  • style_json (String). JSON with variables to define the captcha appearance. For more details see generated JSON in cloud console.
  • suspend (Read-Only) (Bool). Determines that the captcha is currently in restricted mode, see SmartCaptcha restricted mode.
  • turn_off_hostname_check (Bool). Turn off host name check, see Domain validation.

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

Предыдущая
serverless_eventrouter_rule
Следующая
smartcaptcha_captcha
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ООО «Яндекс.Облако»