Editing basic ARL profile settings
- In the management console
, select the folder with the ARL profile. - In the list of services, select Smart Web Security.
- In the left-hand panel, select
ARL profiles. - Click
next to the profile in question and select Edit. - In the window that opens, edit the following settings as needed:
- 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 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 the
yandex_sws_advanced_rate_limiter_profileproperties, see this Terraform provider article. -
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 validateIf the configuration is correct, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou will see a detailed list of resources. No changes will be made at this step. If the configuration contains any errors, Terraform will show them.
-
Apply the changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
You can check the resource updates in the management console
. -
Use the update REST API method for the AdvancedRateLimiterProfile resource or the AdvancedRateLimiterProfile/Update gRPC API call.