检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Can the System Automatically Delete the Instances Added Based on an AS Policy When They Are Not Required? Yes. They can be automatically deleted if an AS policy has been added to trigger scaling actions to delete the instances. Parent topic: Instance
Locate the row that contains the instance and click Remove and Delete in the Operation column. To delete multiple instances, select the check boxes in front of them and click Remove and Delete. Method 2 Log in to the management console. Under Compute, click Auto Scaling.
to forcibly delete an AS group.
Deleting an AS Configuration Scenarios When you no longer need an AS configuration, you can delete it as long as the AS configuration is not used by an AS group. You can delete a single AS configuration or delete them in batches. Procedure Log in to the management console.
Deleting an AS Group Scenarios You can delete an AS group when it is no longer required. If an AS group is not required during a specified period, you are advised to disable it but not delete it.
Batch Deleting AS Configurations Function This interface is used to batch delete AS configurations. AS configurations used by AS groups cannot be deleted. A maximum of 50 AS configurations can be deleted at a time.
The options are as follows: delete: deletes AS policies. resume: enables AS policies. pause: disables AS policies. force_delete No String Specifies whether to forcibly delete an AS policy. If the value is set to no, in-progress AS policies cannot be deleted.
Deleting a Lifecycle Hook Function This interface is used to delete a specified lifecycle hook. When a scaling action is being performed in an AS group, the lifecycle hooks of the AS group cannot be deleted.
Deleting an AS Configuration Function This interface is used to delete a specified AS configuration. AS configurations used by AS groups cannot be deleted.
Deleting an AS Policy Function This interface is used to delete a specified AS policy.
Deleting a Notification for an AS Group Function This interface is used to delete a notification for a specified AS group.
Creating or Deleting a Tag Function This API is used to create or delete a tag. Each AS group can have a maximum of 10 tags added to it.
Table 1 AS APIs Function Description AS group Create, query, modify, and delete AS groups. AS configuration Create, query, and delete AS configurations. Instance Query instances and remove instances from AS groups. AS policy Create, query, modify, and delete AS policies.
/{instance_id} as:instances:delete √ √ Performing operations on instances in batches POST /autoscaling-api/v1/{project_id}/scaling_group_instance/{scaling_group_id}/action as:instances:batchAction √ √ Parent topic: Permissions and Supported Actions
/autoscaling-api/v1/{project_id}/scaling_notification/{scaling_group_id}/{topic_urn} as:notifications:delete √ √ Parent topic: Permissions and Supported Actions
In the displayed Delete Bandwidth Scaling Policy dialog box, click Yes. You can also select one or more scaling policies and click Delete above the list to delete one or more scaling policies. You can delete a bandwidth scaling policy when you no longer need it.
/autoscaling-api/v1/{project_id}/scaling_configuration/{scaling_configuration_id} as:configs:delete √ √ Batch deleting AS configurations POST /autoscaling-api/v1/{project_id}/scaling_configurations as:configs:batchDelete √ √ Parent topic: Permissions and Supported Actions
Request None Example Request This example removes the instance with ID b25c1589-c96c-465b-9fef-d06540d1945c from the AS group but does not delete the instance. DELETE https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_group_instance/b25c1589-c96c-465b-9fef-d06540d1945c?
On the displayed page, locate the row containing the target AS policy and choose More > Delete in the Operation column. To concurrently delete multiple AS policies, select these AS policies and click Delete in the upper part of the AS policy list. Parent topic: AS Policy
/autoscaling-api/v1/{project_id}/scaling_group/{scaling_group_id} as:groups:delete √ √ Enabling or disabling an AS group POST /autoscaling-api/v1/{project_id}/scaling_group/{scaling_group_id}/action as:groups:action √ √ Parent topic: Permissions and Supported Actions