Deletes a listener.

Note Only a listener in the stopped or running state can be deleted.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeleteLoadBalancerListener

The name of this action.

Value: DeleteLoadBalancerListener

ListenerPort Integer Yes 80

The frontend port used by the SLB instance.

Value range: 1 to 65535

LoadBalancerId String Yes lb-bp13jaf5qli5xmgl1miup

The ID of the SLB instance.

RegionId String Yes cn-hangzhou

The ID of the region to which the SLB instance belongs.

Response parameters

Parameter Type Example value Description
RequestId String CEF72CEB-54B6-4AE8-B225-F876FF7BA984

The ID of the request.

Examples

Request example


http(s)://[Endpoint]/? Action=DeleteLoadBalancerListener
&ListenerPort=80
&LoadBalancerId=lb-bp13jaf5qli5xmgl1miup
&<CommonParameters>

Response examples

XML format

<DeleteLoadBalancerListenerResponse>
  <RequestId>791D8B68-AE0F-4174-AF54-088C8B3C5D54</RequestId>
</DeleteLoadBalancerListenerResponse>

JSON format

{
	"RequestId":"791D8B68-AE0F-4174-AF54-088C8B3C5D54"
}

Error codes

See common error codes.