Binds a Server Load Balancer (SLB) instance to an application that is deployed in an Elastic Compute Service (ECS) cluster.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request header. For more information, see Common request parameters.

Request syntax

POST /pop/v5/app/slb/bind_slb HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
AppId String Yes 93fdd228-*****-ed2ae98de18d

The ID of the application. You can call the ListApplication operation to query the application ID. For more information, see ListApplication.

ListenerPort Integer Yes 80

The SLB listener port.

ListenerProtocol String Yes tcp

The SLB listener protocol.

SlbId String Yes lb-uf6j54m3a****cj01jx8

The ID of the SLB instance.

VServerGroupId String No rsp-2ze****6l*****

The ID of the VServer group for the SLB instance.

DeployGroupId String No 577f4c50-16ee-43d8-****-****

The ID of the instance group whose application you want to bind. You can call the ListDeployGroup operation to query the group ID. For more information, see ListDeployGroup.

VServerGroupName String No ****/31405/internet-test-ack-test****/default/clusterid

The name of the VServer group.

ListenerHealthCheckUrl String No /_ehc.html

The health check URL.

VForwardingUrlRule String No

The forwarding rule of the SLB listener.

Response parameters

Parameter Type Example Description
ChangeOrderId String cd65b247-****-475b-ad4b-7039040d625c

The change process ID for this operation.

Code Integer 200

The HTTP status code.

Message String success

The returned message.

RequestId String 03FD1520-0FD6-436A-****-265318D7****

The ID of the request.


Sample requests

POST /pop/v5/app/slb/bind_slb HTTP/1.1
Common request header
"AppId": "93fdd228-*****-ed2ae98de18d",
"ListenerPort": "80",
"ListenerProtocol": "tcp",
"SlbId": "lb-uf6j54m3a****cj01jx8"

Sample success responses

XML format


JSON format

    "RequestId": "03FD1520-0FD6-436A-****-265318D7****",
    "Message": "success",
    "ChangeOrderId": "cd65b247-****-475b-ad4b-7039040d625c",
    "Code": 200

Error codes

For a list of error codes, visit the API Error Center.