Updated on 2024-01-18 GMT+08:00

Lifecycle Hooks

Permission

API

Action

IAM Project

Enterprise Project

Creating a lifecycle hook

POST /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}

as:lifecycleHooks:create

Querying lifecycle hooks

GET /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}/list

as:lifecycleHooks:list

Querying lifecycle hook details

GET /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}/{lifecycle_hook_name}

as:lifecycleHooks:get

Modifying a lifecycle hook

PUT /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}/{lifecycle_hook_name}

as:lifecycleHooks:update

Calling back an instance lifecycle hook

PUT /autoscaling-api/v1/{project_id}/scaling_instance_hook/{scaling_group_id}/callback

as:instanceHooks:action

Querying instance suspension

GET /autoscaling-api/v1/{project_id}/scaling_instance_hook/{scaling_group_id}/list

as:instanceHooks:list

Deleting a lifecycle hook

DELETE /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}/{lifecycle_hook_name}

as:lifecycleHooks:delete