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, 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.
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.