Getting information about an ARL profile
- In the management console
, select the folder containing the ARL security profile. - In the services list, select Smart Web Security.
- In the left-hand panel, select
ARL profiles. - Select the required profile.
- The Overview page will show the profile details.
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the documentation on the Terraform
If you don't have Terraform, install it and configure the Yandex Cloud provider.
To get information about a Yandex Smart Web Security ARL profile created using Terraform:
-
Add the
data
andoutput
sections to the Terraform configuration file:data "yandex_sws_advanced_rate_limiter_profile" "default" { name = yandex_sws_advanced_rate_limiter_profile.default.name } output "profile-created" { value = data.yandex_sws_advanced_rate_limiter_profile.default.created_at }
Where:
data "yandex_sws_advanced_rate_limiter_profile"
: Description of the ARL profile as a data source:name
: ARL profile name.
output "profile-created"
: Output variable that contains information about the ARL 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 theyandex_sws_advanced_rate_limiter_profile
data source parameters, see the relevant provider documentation . -
Create resources:
-
In the terminal, change to the folder where you edited the configuration file.
-
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.
-
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.
-
Apply the configuration changes:
terraform apply
-
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-15T12:21:20Z"
-
To get information about an ARL profile, use the get REST API method for the AdvancedRateLimiterProfile resource or the AdvancedRateLimiterProfile/get gRPC API call.