Starts a listener.

Before you call this API, note the following:

  • The API can be called only when the listener is in the stopped state.
  • After this API is called successfully, the status of the listener changes to starting.
  • If the status of the SLB instance to which the listener belongs is locked, this API cannot be called.

Debug

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

Request parameters

Parameter Type Required? Example value Description
Action String Yes StartLoadBalancerListener

The name of this action.

Value: StartLoadBalancerListener

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 region ID the SLB instance.

You can query the region ID by calling DescribeRegions.

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=StartLoadBalancerListener
&ListenerPort=80
&LoadBalancerId=lb-bp13jaf5qli5xmgl1miup
&<CommonParameters>

Response examples

XML format

<StartLoadBalancerListenerResponse>
  <RequestId>CC000321-00F2-49B8-9BCA-60D822414960</RequestId>
</StartLoadBalancerListenerResponse>

JSON format

{
	"RequestId":"CC000321-00F2-49B8-9BCA-60D822414960"
}

Error codes

See common error codes.