Updating basic ARL profile settings
- In the management console
, select the folder the ARL profile resides in. - From the list of services, select 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:
- Name.
- Description.
- Labels. To add a label, click Add label.
- Click Save.
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 do not have Terraform yet, install it and configure its Yandex Cloud provider.
To update basic ARL profile parameters:
-
Open the Terraform configuration file and edit the part with the
yandex_sws_advanced_rate_limiter_profile
resource description:# 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 the
yandex_sws_advanced_rate_limiter_profile
resource parameters, see the provider documentation . -
Apply the changes:
-
In the terminal, go to the directory where you edited the configuration file.
-
Make sure the configuration file is correct using this command:
terraform validate
If the configuration is correct, you will get this message:
Success! The configuration is valid.
-
Run this command:
terraform plan
You will see a detailed list of resources. No changes will be made at this step. Terraform will show any errors found in your configuration.
-
Apply the changes:
terraform apply
-
Type
yes
and press Enter to confirm the changes.
You can check the resources’ updates in the management console
. -
Use the update REST API method for the AdvancedRateLimiterProfile resource or the AdvancedRateLimiterProfile/Update gRPC API call.