Editing basic ARL profile settings
- In the management console
, select the folder with the ARL profile. - Go to Smart Web Security.
- In the left-hand panel, select
ARL profiles. - In the row with the profile you need, click
and select Edit. - In the window that opens, edit the following parameters:
- Click Save.
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To edit basic ARL profile settings:
-
Open the Terraform configuration file and edit the
yandex_sws_advanced_rate_limiter_profiledescription:# ARL profile resource "yandex_sws_advanced_rate_limiter_profile" "arl-profile" { name = "<new_profile_name>" description = "<new_profile_description>" # Rule 1 advanced_rate_limiter_rule { name = "<rule_name>" priority = <rule_priority> description = "<rule_description>" dry_run = true static_quota { action = "DENY" limit = <rule_limit> period = <rule_period> condition { request_uri { path { exact_match = "/api" } } } } } }For more information about
yandex_sws_advanced_rate_limiter_profileproperties, see this provider guide. -
Apply the changes:
-
In the terminal, navigate to the configuration file directory.
-
Make sure the configuration is correct using this command:
terraform validateIf the configuration is valid, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.
-
Apply the configuration changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
You can check the resource update in the management console
. -
Use the update REST API method for the AdvancedRateLimiterProfile resource or the AdvancedRateLimiterProfile/Update gRPC API call.