You can call this operation to bind an SLB instance to applications deployed in ECS clusters.

Debugging

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 header

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

Request syntax

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

Request parameters

Parameter Type Required Example Description
AppId String Required 93 fdd228-****ed2ae98de18d The ID of the application. You can call ListApplication to obtain the ID. For more information, see ListApplication.
ListenerPort Integer Yes 80

SLB listener port

ListenerProtocol String Required tcp

SLB listener protocol

SlbId String Required lb-uf6j54m3a****cj01jx8

The ID of the SLB instance.

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

SLB VServer group ID

DeployGroupId String No 577f4c50-16ee-43d8**** The ID of the deployment Group. You can call ListDeployGroup operation to obtain the ID. For more information, see ListDeployGroup.
VServerGroupName String No ****/31405/internet-test-ack-test****/default/clusterid

VServer group name

ListenerHealthCheckUrl String No http://127.0.0.1:8080/_ehc.html

Listening health check URL

VForwardingUrlRule String No example.com/forwarding

SLB forwarding rules

Response parameters

Parameter Type Example Description
ChangeOrderId String cd65b247-****-475b-ad4b-7039040d625c The ID of the change record corresponding to the current change.
Code Integer 200 Interface status or POP error codes
Message String Success The returned message.
RequestId String 03FD1520-0FD6-436A-****-265318D7**** The ID of the API request.

Examples

Sample requests

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

Sample success responses

XML format

<RequestId>03FD1520-0FD6-436A-****-265318D7****</RequestId>
<Message>success</Message>
<ChangeOrderId>cd65b247-****-475b-ad4b-7039040d625c</ChangeOrderId>
<Code>200</Code>

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.