Deletes a specified listener.
Operation description
The DeleteListener operation is asynchronous. After you call this operation, the system returns a request ID, but the listener is not immediately deleted. The deletion task is still running in the background. You can call GetListenerAttribute to query the deletion status of the listener:
If the listener is in the Deleting state, the listener is being deleted.
If the listener cannot be queried, the listener is deleted.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:DeleteListener |
delete |
*LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ListenerId |
string |
Yes |
The ID of the listener on the application load balancing instance. |
lsn-o4u54y73wq7b****** |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can generate the parameter value on your client to ensure that the value is unique across different requests. The ClientToken parameter supports only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId of each API request is unique. |
5A2CFF0E-5718-45B5-9D4D-70B****** |
| DryRun |
boolean |
No |
Specifies whether to perform only a dry run on the request. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The listener deletion response. |
||
| JobId |
string |
The ID of the asynchronous task. |
72dcd26b-f12d-4c27-b3af-18f6aed5**** |
| RequestId |
string |
The ID of the request. |
365F4154-92F6-4AE4-92F8-7FF3****** |
Examples
Success response
JSON format
{
"JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.Listener | The status of %s [%s] is incorrect. | This operation is not supported in the listener's current state. |
| 400 | ResourceInUse.Listener | The specified resource %s is in use. | The specified resource %s is in use. |
| 400 | ResourceInConfiguring.Listener | The specified resource is being configured, please try again later. | The resource %s is being modified. Try again later. |
| 400 | IncorrectStatus.LoadBalancer | The status of %s [%s] is incorrect. | The current status of the instance does not support this operation. |
| 403 | Forbidden.LoadBalancer | Authentication is failed for %s. | Authentication is failed for %s. |
| 404 | ResourceNotFound.Listener | The specified resource %s is not found. | The listener does not exist. |
| 404 | ResourceNotFound.LoadBalancer | The specified resource of %s is not found. | The specified resource of %s is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.