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

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Smart Captcha
  4. Data Sources
  5. smartcaptcha_captcha

yandex_smartcaptcha_captcha (DataSource)

Written by
Yandex Cloud
Updated at February 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.

Was the article helpful?

Previous
serverless_eventrouter_rule
Next
smartcaptcha_captcha
© 2026 Direct Cursus Technology L.L.C.