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.

URI

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

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

scaling_group_id

Yes

String

Specifies the AS group ID.

lifecycle_hook_name

Yes

String

Specifies the lifecycle hook name.

Request

None

Example Request

This example deletes the lifecycle hook named test-hook1 in the AS group with ID e5d27f5c-dd76-4a61-b4bc-a67c5686719a.

DELETE https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/e5d27f5c-dd76-4a61-b4bc-a67c5686719a/test-hook1

Response

None

Example Response

None

Returned Values

Error Codes

See Error Codes.