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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Smart Web Security
  • Getting started
    • All guides
      • Creating a profile
      • Editing basic profile settings
      • Getting information about a profile
      • Deleting a profile
      • Configuring a basic rule set
      • Adding an exclusion rule
      • Updating an exclusion rule
      • Deleting an exclusion rule
    • Managing address lists
    • Viewing operations with profiles
    • Configuring monitoring
    • Setting up alerts
    • Configuring logging
    • Overview
    • Security profiles
    • WAF
    • ARL (request limit)
    • Rules
    • Conditions
    • Lists
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing WAF profiles
  3. Getting information about a profile

Getting information about a WAF profile

Written by
Yandex Cloud
Updated at April 22, 2025
Management console
Terraform
API
  1. In the management console, select the folder containing the WAF security profile.
  2. In the list of services, select Smart Web Security.
  3. In the left-hand panel, select WAF profiles.
  4. Select the required profile.
  5. The Overview page will show the profile details.

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the documentation on the Terraform website or mirror website.

If you do not have Terraform yet, install it and configure its Yandex Cloud provider.

To get information about a Yandex Smart Web Security WAF profile created using Terraform:

  1. Add the data and output sections to the Terraform configuration file:

    data "yandex_sws_waf_profile" "default" {
      name = "<WAF_profile_name>"
    }
    
    output "profile-created" {
      value = data.yandex_sws_waf_profile.default.created_at
    }
    

    Where:

    • data "yandex_sws_waf_profile": Description of the WAF profile as a data source:
      • name: WAF profile name.
    • output "profile-created": Output variable that contains information about the WAF profile creation timestamp:
      • value: Returned value.

    You can replace created_at with any other parameter to get the information you need. For more information about the yandex_sws_waf_profile data source parameters, see the relevant provider documentation.

  2. Create resources:

    1. In the terminal, change to the folder where you edited the configuration file.

    2. Make sure the configuration file is correct using the command:

      terraform validate
      

      If the configuration is correct, the following message is returned:

      Success! The configuration is valid.
      
    3. Run the command:

      terraform plan
      

      The terminal will display a list of resources with parameters. No changes are made at this step. If the configuration contains errors, Terraform will point them out.

    4. Apply the configuration changes:

      terraform apply
      
    5. Confirm the changes: type yes in the terminal and press Enter.

    Terraform will create all the required resources and display the output variable values in the terminal. To check the results, run this command:

    terraform output
    

    Result:

    profile-created = "2024-12-13T17:45:34Z"
    

To get information about a Yandex Smart Web Security WAF profile, use the get REST API method for the WafProfile resource or the WafProfile/Get gRPC API call.

Was the article helpful?

Previous
Editing basic profile settings
Next
Deleting a profile
Yandex project
© 2025 Yandex.Cloud LLC