Updated on 2023-12-18 GMT+08:00

Deleting a Listener

Function

This API is used to delete a listener by ID.

Constraints

If the cascade value is false, delete the associated backend server groups by referring to Deleting a Backend Server Group, or change the value of default_pool_id to null by referring to Updating a Listener and delete associated forwarding policies by referring to Deleting a Forwarding Policy, before attempting to delete the listener.

URI

DELETE /v2/{project_id}/elb/listeners/{listener_id}

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

listener_id

Yes

String

Specifies the listener ID.

cascade

No

boolean

Specifies whether to delete the resources associated with the listener when it is deleted, including forwarding policy and backend servers.

Request

None

Response

None

Example Request

  • Example request: Deleting a listener
    DELETE https://{Endpoint}/v2/{project_id}/elb/listeners/35cb8516-1173-4035-8dae-0dae3453f37f

Example Response

  • Example response

    None

Status Code

For details, see Status Codes.