Application IPv6 BLB Server Group Related Interfaces

BLB BLB

  • API Reference
    • Access control
    • API Service Domain Name
    • Appendix
    • Application BLB Interface
      • Application BLB Instance Related Interfaces
      • Application BLB Listener Related Interfaces
      • Application BLB Security Group Related Interfaces
      • Application BLB Server Group Related Interfaces
    • Application IPv6 BLB Interface
      • Application IPv6 BLB Instance Related Interfaces
      • Application IPv6 BLB Listener Related Interfaces
      • Application IPv6 BLB Security Group Related Interfaces
      • Application IPv6 BLB Server Group Related Interfaces
    • BLB Order Related Interfaces
      • BLB - Resize
      • BLB Charge Shift - Cancel Prepay to Postpay
      • BLB Charge Shift - Postpay to Prepay
      • BLB Charge Shift - Prepay to Postpay
      • BLB Inquiry
      • BLB Unsubscribe Interface
    • Document Update Records
    • Error code
    • Interface Specifications
    • Introduction
    • Load Balancer Dedicated Cluster LBDC Interface
      • LBDC Instance Related Interfaces
    • Service Publishing Point Interface
      • Service Publishing Point Related Interfaces
    • Standard BLB Interface
      • Standard BLB Instance Related Interfaces
      • Standard BLB Listener Related Interfaces
      • Standard BLB Real Server Related Interfaces
      • Standard BLB Security Group Related Interfaces
    • Standard IPv6 BLB Interface
      • Standard IPv6 BLB Related Interfaces
  • FAQs
    • Billing Problems
    • Common Questions Overview
    • Configuration-related questions
    • Fault-related questions
    • General Problems
    • Load Balancer Dedicated Cluster Related Issues
    • Performance-related questions
    • Security Problems
  • Function Release Records
  • Operation guide
    • Access control
    • Access Logs
    • Application BLB instance
    • Application IPv6 Instance
    • BLB metric description
    • Certification
    • Custom configuration
    • Extended domain name
    • General-purpose BLB instance
      • Creating BLB Ordinary Instance
      • Managing BLB Ordinary Instance
    • General-purpose IPv6 BLB instance
    • Identity and access management
    • IP Group Usage Guide
    • Load Balance Dedicated Cluster
    • Load Balancer Frontend and Backend Protocol Correspondence
    • Recording Access Logs Using VPC Flow Logs
    • Service Release Point
    • Tag Management
  • Product Description
    • Application scenarios
    • Basic Architecture
    • Basic concepts
    • Performance Specification Description
    • Product advantages
    • Product features
    • Product Introduction
    • Usage restrictions
  • Product pricing
    • Load Balancer Dedicated Cluster Billing
    • Load Balancer Instance Billing
  • Quick Start
  • SDK
    • GO-SDK
      • Application BLB Instance
      • Initialization
      • Install
      • IPv6 BLB Instance
      • Load Balance Dedicated Cluster (LBDC)
      • Ordinary BLB Instance
      • Overview
      • Service Release Point
      • Version Change Records
    • Java-SDK
      • Application BLB instance
      • General-purpose BLB instance
      • Initialization
      • Install the SDK Package
      • IPv6 BLB Instance
      • Load Balance Dedicated Cluster (LBDC)
      • Overview
      • Service Release Point
      • Version Update Description
    • PHP-SDK
      • Initialization
      • Install
      • Ordinary BLB Instance
      • Overview
    • Python-SDK
      • Application BLB Instance
      • Initialization
      • Install
      • IPv6 BLB Instance
      • Load Balance Dedicated Cluster (LBDC)
      • Ordinary BLB Instance
      • Overview
      • Service Release Point
      • Version Update Description
  • Service Level Agreement (SLA)
    • Description of Baidu AI Cloud Load Balancer Trusted Cloud certification service availability
    • LBDC Service Level Agreement SLA
    • BLB Service Level Agreement (V2.0)
  • Typical Practices
    • BLB Selection Guide
    • Health Check Exception Troubleshooting
    • Implementing BLB Association with Listeners, Real Servers, Security Groups, etc. via Terraform
    • Implementing Multi-Site Hosting via Application BLB
    • Load Balancer Security Protection Strategy
    • Managing BLB via Terraform
    • Obtaining Client Information via Application BLB Instance
    • Using IP Group Function to Mount Real Servers Across VPCs in Different Regions
    • Using IP Group Function to Mount Real Servers Across VPCs in the Same Region
All documents
menu
No results found, please re-enter

BLB BLB

  • API Reference
    • Access control
    • API Service Domain Name
    • Appendix
    • Application BLB Interface
      • Application BLB Instance Related Interfaces
      • Application BLB Listener Related Interfaces
      • Application BLB Security Group Related Interfaces
      • Application BLB Server Group Related Interfaces
    • Application IPv6 BLB Interface
      • Application IPv6 BLB Instance Related Interfaces
      • Application IPv6 BLB Listener Related Interfaces
      • Application IPv6 BLB Security Group Related Interfaces
      • Application IPv6 BLB Server Group Related Interfaces
    • BLB Order Related Interfaces
      • BLB - Resize
      • BLB Charge Shift - Cancel Prepay to Postpay
      • BLB Charge Shift - Postpay to Prepay
      • BLB Charge Shift - Prepay to Postpay
      • BLB Inquiry
      • BLB Unsubscribe Interface
    • Document Update Records
    • Error code
    • Interface Specifications
    • Introduction
    • Load Balancer Dedicated Cluster LBDC Interface
      • LBDC Instance Related Interfaces
    • Service Publishing Point Interface
      • Service Publishing Point Related Interfaces
    • Standard BLB Interface
      • Standard BLB Instance Related Interfaces
      • Standard BLB Listener Related Interfaces
      • Standard BLB Real Server Related Interfaces
      • Standard BLB Security Group Related Interfaces
    • Standard IPv6 BLB Interface
      • Standard IPv6 BLB Related Interfaces
  • FAQs
    • Billing Problems
    • Common Questions Overview
    • Configuration-related questions
    • Fault-related questions
    • General Problems
    • Load Balancer Dedicated Cluster Related Issues
    • Performance-related questions
    • Security Problems
  • Function Release Records
  • Operation guide
    • Access control
    • Access Logs
    • Application BLB instance
    • Application IPv6 Instance
    • BLB metric description
    • Certification
    • Custom configuration
    • Extended domain name
    • General-purpose BLB instance
      • Creating BLB Ordinary Instance
      • Managing BLB Ordinary Instance
    • General-purpose IPv6 BLB instance
    • Identity and access management
    • IP Group Usage Guide
    • Load Balance Dedicated Cluster
    • Load Balancer Frontend and Backend Protocol Correspondence
    • Recording Access Logs Using VPC Flow Logs
    • Service Release Point
    • Tag Management
  • Product Description
    • Application scenarios
    • Basic Architecture
    • Basic concepts
    • Performance Specification Description
    • Product advantages
    • Product features
    • Product Introduction
    • Usage restrictions
  • Product pricing
    • Load Balancer Dedicated Cluster Billing
    • Load Balancer Instance Billing
  • Quick Start
  • SDK
    • GO-SDK
      • Application BLB Instance
      • Initialization
      • Install
      • IPv6 BLB Instance
      • Load Balance Dedicated Cluster (LBDC)
      • Ordinary BLB Instance
      • Overview
      • Service Release Point
      • Version Change Records
    • Java-SDK
      • Application BLB instance
      • General-purpose BLB instance
      • Initialization
      • Install the SDK Package
      • IPv6 BLB Instance
      • Load Balance Dedicated Cluster (LBDC)
      • Overview
      • Service Release Point
      • Version Update Description
    • PHP-SDK
      • Initialization
      • Install
      • Ordinary BLB Instance
      • Overview
    • Python-SDK
      • Application BLB Instance
      • Initialization
      • Install
      • IPv6 BLB Instance
      • Load Balance Dedicated Cluster (LBDC)
      • Ordinary BLB Instance
      • Overview
      • Service Release Point
      • Version Update Description
  • Service Level Agreement (SLA)
    • Description of Baidu AI Cloud Load Balancer Trusted Cloud certification service availability
    • LBDC Service Level Agreement SLA
    • BLB Service Level Agreement (V2.0)
  • Typical Practices
    • BLB Selection Guide
    • Health Check Exception Troubleshooting
    • Implementing BLB Association with Listeners, Real Servers, Security Groups, etc. via Terraform
    • Implementing Multi-Site Hosting via Application BLB
    • Load Balancer Security Protection Strategy
    • Managing BLB via Terraform
    • Obtaining Client Information via Application BLB Instance
    • Using IP Group Function to Mount Real Servers Across VPCs in Different Regions
    • Using IP Group Function to Mount Real Servers Across VPCs in the Same Region
  • Document center
  • arrow
  • BLBBLB
  • arrow
  • API Reference
  • arrow
  • Application IPv6 BLB Interface
  • arrow
  • Application IPv6 BLB Server Group Related Interfaces
Table of contents on this page
  • CreateaAppServerGroup: Create an application server group
  • UpdateAppServerGroup: Update a server group
  • DescribeAppServerGroup: Query server group
  • DeleteAppServerGroup: Delete a server group
  • CreateAppServerGroupPort: Create application server group port
  • UpdateAppServerGroupPort: Update application server group port
  • DeleteAppServerGroupPort: Delete application server group port
  • CreateBlbRs: Add an application BLB real server (RS)
  • UpdateBlbRs: Update the weight of RS mounted under the server group
  • DescribeBlbRs: Query the RS list information under the server group
  • DeleteBlbRs: Delete the RS mounted under the server group
  • DescribeRsMount: Query servers bound under the server group
  • DescribeRsUnMount: Query RS unbound under the server group

Application IPv6 BLB Server Group Related Interfaces

Updated at:2025-10-16

CreateaAppServerGroup: Create an application server group

  • Under the specified application BLB, create a server group to bind real servers and open corresponding ports for listeners.

Request structure

Plain Text
1POST /v{version}/appblb/{blbId}/appservergroup?clientToken={clientToken} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4
5{
6    "name":name,
7    "desc":desc,
8    "backendServerList": [
9        {
10            "instanceId": instanceId,
11            "weight": weight
12        },
13        {
14            "instanceId": instanceId,
15            "weight": weight
16        }
17    ]
18}

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
clientToken String Yes Query Idempotency Token, with length no more than 64 characters.
name String No RequestBody Name of server group for easy memorization. Length: 1 – 65 bytes, starting with a letter. It can contain letters, numbers and the characters -_/. If this parameter is not specified, it will be generated automatically.
desc String No RequestBody Server group description, allowing users to include more details. The length can range from 0–450 bytes, and Chinese is supported. By default, it is left empty.
backendServerList List<[AppBackendServer](BLB/API Reference/Appendix.md#AppBackendServer)> No RequestBody List of real servers bound to the server group

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

Parameter name Types Description
id String Server group ID
name String Server group name
desc String Server group description
status String Server group status. See details in [blbStatus](BLB/API Reference/Appendix.md#blbStatus).

Request example

Plain Text
1POST /v1/appblb/lb-j8UqijYf/appservergroup?clientToken=asdfg HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4
5{
6    "name": "name1",
7    "desc": "aaa",                         
8    "backendServerList":[                    
9        {
10            "instanceId": "BCC_UUID",       
11            "weight": 20
12        }
13    ]
14}

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7{
8    "id": "sg_short_id",
9    "name": "name",
10    "desc": "aaa",
11    "status": "available"                 
12}

UpdateAppServerGroup: Update a server group

  • Update TCP listener parameters for the specified LoadBalancer. All specified domains in the request parameters will be updated, while unspecified domains will remain unchanged. Listeners must be designated via ports.

Request structure

Plain Text
1PUT /v{version}/appblb/{blbId}/appservergroup?clientToken={clientToken} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4
5{
6    "sgId":sgId,
7    "name":name,
8    "desc":desc
9}

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
clientToken String Yes Query Idempotency Token, with length no more than 64 characters.
sgId String Yes RequestBody ID of the server group to be updated
name String No RequestBody Name of server group for easy memorization. Length: 1 – 65 bytes, starting with a letter. It can contain letters, numbers and the characters -_/. If this parameter is not specified, it will be generated automatically.
desc String No RequestBody Server group description, allowing users to include more details. The length can range from 0–450 bytes, and Chinese is supported. By default, it is left empty.

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

None

Request example

Plain Text
1PUT /v1/appblb/lb-j8UqijYf/appservergroup?clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4
5{
6    "sgId": "sgId",
7    "name": "name1",
8    "desc": "aaa"
9}

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS

DescribeAppServerGroup: Query server group

  • You can query information of all server groups under the specified LoadBalancer
  • Results support marker-based pagination, with a default page size of 1000, which can be specified via the maxKeys parameter.

Request structure

Plain Text
1GET /v{version}/appblb/{blbId}/appservergroup?name={name}&marker={marker}&maxKeys={maxKeys}&exactlyMatch={exactlyMatch} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
name String No Query Name of the server group to be queried
exactlyMatch boolean No Query Set whether the name is globally matched
marker String No Query The starting position of the batch list query is a system-generated string
maxKeys int No Query Maximum number of items per page is 1,000, with a default value of 1000.

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

Parameter name Types Description
appServerGroupList List<[AppServerGroup](BLB/API Reference/Appendix.md#AppServerGroup)> List containing query results
marker String Marker indicating the starting position of the query. If the result list is empty, this field does not exist.
isTruncated boolean true indicates there is more data later, false indicates it is the last page
nextMarker String The marker value needed to fetch the next page. This field is absent when isTruncated is false.
maxKeys int Maximum number of items included per page

Request example

Plain Text
1GET /v1/appblb/lb-j8UqijYf/appservergroup?maxKeys=2 HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/ae4780f344774daa832f34caadd4d7de/2016-06-03T06:42:31Z/1800/host/3f26e5a322d41fa0f3315e906342c2691fe5ee35d21c7e66e425b4ee0f67ced3

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Fri, 03 Jun 2016 06:42:44 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7
8{
9    "appServerGroupList":[
10    {
11        "id": "sg_short_id",
12        "name": "name",
13        "desc": "bbb",
14        "status": "available",
15        "portList":
16        [{
17            "id": "port_id"
18            "port": BACKEND_PORT,
19            "type": "TCP",
20            "healthCheck": "TCP",
21            "healthCheckNormalStatus": "^[1-5][0-9]*$",
22            "healthCheckPort": 90,
23            "healthCheckTimeoutInSecond": 2,
24            "healthCheckDownRetry": 3,
25            "healthCheckUpRetry": 3,
26            "healthCheckIntervalInSecond": 1,
27            "healthCheckUrlPath": "HEALTH_CHECK_URL_PATH",
28            "healtchCheckHost": www.xxx,                         
29            "status": "available"                   
30        }]
31    }
32         ],
33    "marker": "sg-012310",         
34    "isTruncated": false,
35    "maxKeys": 1000,
36    "nextMarker": "sg-013214"      
37}

DeleteAppServerGroup: Delete a server group

  • Delete server group, specified by server group ID

Request structure

Plain Text
1PUT /v{version}/appblb/{blbId}/appservergroup?{action}&clientToken={clientToken} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4
5{
6    "sgId": sgId
7}

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
action String Yes Query It must be delete.
clientToken String Yes Query Idempotency Token, with length no more than 64 characters.
sgId String Yes RequestBody ID of the server group to be deleted

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

None

Request example

Plain Text
1PUT /v1/appblb/lb-j8UqijYf/appservergroup?delete&clientToken=be31b98c-5e41-4838-9830-9be700de5a20
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/ae4780f344774daa832f34caadd4d7de/2016-06-03T03:26:45Z/1800/host/c863c8b9f75ff307eb1a3c564307b0833acb9d857c65de108258c3edd4cd0118
4
5{
6    "sgId":"abc"
7}

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Fri, 03 Jun 2016 03:54:29 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS

CreateAppServerGroupPort: Create application server group port

  • Under the specified application BLB, create a backend port for the server group, which distributes all traffic to this port through weighted round-robin to the servers in its bound server list.

Request structure

Plain Text
1POST /v{version}/appblb/{blbId}/appservergroupport?clientToken={clientToken} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4
5{
6    "sgId":sgId,
7    "port":port,
8    "type":type,
9    "enableHealthCheck":enableHealthCheck,
10    "healthCheck":healthCheck,
11    "healthCheckPort":healthCheckPort,
12    "healthCheckUrlPath":healthCheckUrlPath,
13    "healthCheckTimeoutInSecond":healthCheckTimeoutInSecond,
14    "healthCheckIntervalInSecond":healthCheckIntervalInSecond,
15    "healthCheckDownRetry":healthCheckDownRetry,
16    "healthCheckUpRetry":healthCheckUpRetry,
17    "healthCheckNormalStatus":healthCheckNormalStatus,
18    "healthCheckHost":healthCheckHost,
19    "udpHealthCheckString":udpHealthCheckString
20}

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
clientToken String Yes Query Idempotency Token, with length no more than 64 characters.
sgId String Yes RequestBody Server group identifier of the port
port int Yes RequestBody Port No., which shall be an integer between 1 and 65535.
type String Yes RequestBody Protocol type of listener port, "TCP"/"UDP"/"HTTP"
enableHealthCheck Boolean No RequestBody Whether to enable health check. It is true by default.
healthCheck String No RequestBody Health check protocol, supporting "HTTP"/"TCP"/"UDP"/"ICMP". It is TCP for TCP, UDP for UDP, and HTTP for HTTP by default.
healthCheckPort int No RequestBody Health check port. The allowed range is 1-65535, it is the port value by default, and is valid when the health check protocol is "HTTP".
healthCheckUrlPath String No RequestBody Health check URI. It is / by default. It is valid when the health check protocol is "HTTP".
healthCheckTimeoutInSecond int No RequestBody Health check timeout duration (unit: second). It is 3 by default, and shall be an integer between 1 and 60.
healthCheckIntervalInSecond int No RequestBody Health check interval (unit: second). It is 3 by default, and shall be an integer between 1 and 10.
healthCheckDownRetry int No RequestBody Unhealthy threshold represents the number of consecutive health check failures required to block the real server. Default is 3, and it must be an integer between 2 and 5.
healthCheckUpRetry int No RequestBody Healthy threshold represents the number of consecutive successful health checks required to set the real server as available. Default is 3, and it must be an integer between 2 and 5.
healthCheckNormalStatus String No RequestBody HTTP status codes for successful health checks, supporting combinations of 5 types of status codes such as "http_1xx|http_2xx". It is "http_2xx|http_3xx" by default. It is valid when the health check protocol is "HTTP".
healthCheckHost String No RequestBody The header field of the Layer 7 health check request will include the specified host field, such as "localhost", and the default is "". It is valid when the health check protocol is "HTTP".
udpHealthCheckString String No RequestBody Health check fields for UDP server. When the health check protocol is "UDP", it must be loaded.

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

Parameter name Types Description
id String Server group port ID
status String Server group port status. See details in [blbStatus](BLB/API Reference/Appendix.md#blbStatus).

Request example

Plain Text
1POST /v1/appblb/lb-j8UqijYf/appservergroupport?clientToken=asdfg HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4
5{
6    "sgId":"sgid",
7    "type":"TCP",
8    "port": 80,
9    "enableHealthCheck":true,
10    "healthCheck":"TCP",                     
11    "healthCheckTimeoutInSecond": 2,                    
12    "healthCheckDownRetry": 3,                          
13    "healthCheckUpRetry": 3,                            
14    "healthCheckIntervalInSecond":3                   
15}

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7{
8    "id": "sg_port_id",
9    "status": "available"                 
10}

UpdateAppServerGroupPort: Update application server group port

  • Update the port for the server group based on its ID.

Request structure

Plain Text
1PUT /v{version}/appblb/{blbId}/appservergroupport?clientToken={clientToken} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4
5{
6    "sgId":sgId,
7    "portId":portId,
8    "enableHealthCheck":enableHealthCheck,
9    "healthCheck":healthCheck,
10    "healthCheckPort":healthCheckPort,
11    "healthCheckUrlPath":healthCheckUrlPath,
12    "healthCheckTimeoutInSecond":healthCheckTimeoutInSecond,
13    "healthCheckIntervalInSecond":healthCheckIntervalInSecond,
14    "healthCheckDownRetry":healthCheckDownRetry,
15    "healthCheckUpRetry":healthCheckUpRetry,
16    "healthCheckNormalStatus":healthCheckNormalStatus,
17    "healthCheckHost":healthCheckHost,
18    "udpHealthCheckString":udpHealthCheckString
19}

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
clientToken String Yes Query Idempotency Token, with length no more than 64 characters.
sgId String Yes RequestBody Server group identifier of the port
portId String Yes RequestBody Port identifier of real server group to be updated
enableHealthCheck Boolean No RequestBody Whether to enable health check. It is true by default.
healthCheck String No RequestBody Health check protocol, supporting "HTTP"/"TCP"/"UDP"/"ICMP". It is TCP for TCP, UDP for UDP, and HTTP for HTTP by default.
healthCheckPort int No RequestBody Health check port. It is the port value by default, and is valid when the health check protocol is "HTTP".
healthCheckUrlPath String No RequestBody Health check URI. It is / by default. It is valid when the health check protocol is "HTTP".
healthCheckTimeoutInSecond int No RequestBody Health check timeout duration (unit: second). It is 3 by default, and shall be an integer between 1 and 60.
healthCheckIntervalInSecond int No RequestBody Health check interval (unit: second). It is 3 by default, and shall be an integer between 1 and 10.
healthCheckDownRetry int No RequestBody Unhealthy threshold represents the number of consecutive health check failures required to block the real server. Default is 3, and it must be an integer between 2 and 5.
healthCheckUpRetry int No RequestBody Healthy threshold represents the number of consecutive successful health checks required to set the real server as available. Default is 3, and it must be an integer between 2 and 5.
healthCheckNormalStatus String No RequestBody HTTP status codes for successful health checks, supporting combinations of 5 types of status codes such as "http_1xx|http_2xx". It is "http_2xx|http_3xx" by default. It is valid when the health check protocol is "HTTP".
healthCheckHost String No RequestBody The header field of the Layer 7 health check request will include the specified host field, such as "localhost", and the default is "". It is valid when the health check protocol is "HTTP".
udpHealthCheckString String No RequestBody Health check fields for UDP server. When the health check protocol is "UDP", it must be loaded.

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

None

Request example

Plain Text
1PUT /v1/appblb/lb-j8UqijYf/appservergroupport?clientToken=abc HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4
5{
6    "sgId":“abc”,
7    "portId":"dbd",
8    "enableHealthCheck":true,
9    "healthCheck":"TCP",                     
10    "healthCheckTimeoutInSecond": 2,
11    "healthCheckDownRetry": 3,
12    "healthCheckUpRetry": 3,
13    "healthCheckIntervalInSecond": 1
14}

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS

DeleteAppServerGroupPort: Delete application server group port

  • Delete server group port, specified by server group ID

Request structure

Plain Text
1PUT /v{version}/appblb/{blbId}/appservergroupport?{action}&clientToken={clientToken} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4
5{
6    "sgId": sgId,
7    "portIdList":[portid1,portid2]
8}

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
action String Yes Query It must be batchdelete.
clientToken String Yes Query Idempotency Token, with length no more than 64 characters.
sgId String Yes RequestBody ID of the server group of the port to be deleted
portIdList List\ Yes RequestBody All port IDs to be deleted form an array.

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

None

Request example

Plain Text
1PUT /v1/appblb/lb-j8UqijYf/appservergroupport?batchdelete&clientToken=asdfg
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/ae4780f344774daa832f34caadd4d7de/2016-06-03T03:26:45Z/1800/host/c863c8b9f75ff307eb1a3c564307b0833acb9d857c65de108258c3edd4cd0118
4
5{
6    "sgId":"abc",
7    "portIdList":["a","b"]
8}

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Fri, 03 Jun 2016 03:54:29 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS

CreateBlbRs: Add an application BLB real server (RS)

  • Bind real server (RS) under specified application BLB and server group

Request structure

Plain Text
1POST /v{version}/appblb/{blbId}/blbrs?clientToken={clientToken} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4
5{
6    "sgId":sgId,
7    "backendServerList": [
8        {
9            "instanceId": instanceId,
10            "weight": weight
11        },
12        {
13            "instanceId": instanceId,
14            "weight": weight
15        }
16        
17    ]
18}

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
clientToken String Yes Query Idempotency Token, with length no more than 64 characters.
sgId String Yes RequestBody ID of the server group to which the RS belongs
backendServerList List<[AppBackendServer](BLB/API Reference/Appendix.md#AppBackendServer)> Yes RequestBody Real server list

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md) Response headers

No special headers beyond common headers.

Response parameters

None

Request example

Plain Text
1POST /v1/appblb/lb-j8UqijYf/blbrs?clientToken=asdfg HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4
5{
6    "sgId": "sg-db3975dc",                          
7    "backendServerList":[                    
8        {
9            "instanceId": "i-b3Dq3ea3",       
10            "weight": 20
11        }
12    ]
13}

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS

UpdateBlbRs: Update the weight of RS mounted under the server group

  • Update RS information under the specified server group

Request structure

Plain Text
1PUT /v{version}/appblb/{blbId}/blbrs?clientToken={clientToken} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4
5{
6    "sgId": sgId,                          
7    "backendServerList":[                    
8        {
9            "instanceId": instanceId,     
10            "weight": weight
11        }
12    ]
13}

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
clientToken String Yes Query Idempotency Token, with length no more than 64 characters.
sgId String Yes RequestBody ID of the server group to which the RS belongs
backendServerList List<[AppBackendServer](BLB/API Reference/Appendix.md#AppBackendServer)> Yes RequestBody Real server list

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

None

Request example

Plain Text
1PUT /v1/appblb/lb-j8UqijYf/blbrs?clientToken=asdfg  HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4
5{
6    "sgId": "sg-db3975dc",                          
7    "backendServerList":[                    
8        {
9            "instanceId": "i-b3Dq3ea3",       
10            "weight": 20
11        }
12    ]
13}

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS

DescribeBlbRs: Query the RS list information under the server group

  • You can query information of all server groups under the specified LoadBalancer
  • Support querying by listener port for matching items
  • Results support marker-based pagination, with a default page size of 1000, which can be specified via the maxKeys parameter.

Request structure

Plain Text
1GET /v{version}/appblb/{blbId}/blbrs?marker={marker}&maxKeys={maxKeys}&sgId={sgId} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
sgId String Yes Query ID of the server group to which the RS belongs
marker String No Query The starting position of the batch list query is a system-generated string
maxKeys int No Query Maximum number of items per page is 1,000, with a default value of 1000.

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

Parameter name Types Description
backendServerList List<[AppBackendServer](BLB/API Reference/Appendix.md#AppBackendServer)> List containing query results
marker String Marker indicating the starting position of the query. If the result list is empty, this field does not exist.
isTruncated boolean true indicates there is more data later, false indicates it is the last page
nextMarker String The marker value needed to fetch the next page. This field is absent when isTruncated is false.
maxKeys int Maximum number of items included per page

Request example

Plain Text
1GET /v1/appblb/lb-j8UqijYf/blbrs?maxKeys=2&sgId=sg-db3975dc HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/ae4780f344774daa832f34caadd4d7de/2016-06-03T06:42:31Z/1800/host/3f26e5a322d41fa0f3315e906342c2691fe5ee35d21c7e66e425b4ee0f67ced3

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Fri, 03 Jun 2016 06:42:44 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7
8{
9    "marker": "rs-012310",          
10    "isTruncated": false,
11    "maxKeys": 1000,
12    "nextMarker": "rs-013214",      
13    "backendServerList": [
14    {
15        "instanceId": "i-7WrgrmIY",
16        "privateIp": "240c:4086:0:4501::5",              
17        "weight": "WEIGHT",
18        "portList": [                            
19        {
20            "listenerPort": 80,
21            "backendPort": "80",
22            "portType": "HTTP",
23            “healthCheckPortType”: "HTTP",      
24            "policyId": "policy-260061dc",             
25            "status": "Alive"
26        }
27        ]
28    }
29    ]
30}

DeleteBlbRs: Delete the RS mounted under the server group

  • Delete server group, specified by server group ID

Request structure

Plain Text
1PUT /v{version}/appblb/{blbId}/blbrs?{action}&clientToken={clientToken} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string
4
5{
6    "sgId": sgId,
7     backendServerIdList: ["Serverid1", "Serverid2", "Serverid3"]
8}

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
action String Yes Query Describe the operation to be performed. It is batchdelete for this API.
clientToken String Yes Query Idempotency Token, with length no more than 64 characters.
sgId String Yes RequestBody The server group ID to which the RS to be deleted belongs
backendServerIdList List\ Yes RequestBody All identifiers of real servers to be deleted form an array

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

None

Request example

Plain Text
1PUT /v1/appblb/lb-j8UqijYf/blbrs?batchdelete&clientToken=be31b98c-5e41-4838-9830-9be700de5a20
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/ae4780f344774daa832f34caadd4d7de/2016-06-03T03:26:45Z/1800/host/c863c8b9f75ff307eb1a3c564307b0833acb9d857c65de108258c3edd4cd0118
4
5{
6    "sgId":"abc",
7    "backendServerIdList": ["ab48bbe", "2520741", "a78e04"]
8}

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Fri, 03 Jun 2016 03:54:29 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS

DescribeRsMount: Query servers bound under the server group

  • Query servers bound under the server group

Request structure

Plain Text
1GET /v{version}/appblb/{blbId}/blbrsmount?sgId={sgId} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
sgId String Yes Query ID of the server group to which the RS belongs

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

Parameter name Types Description
backendServerList List<[AppBackendServer](BLB/API Reference/Appendix.md#AppBackendServer)> List containing query results

Request example

Plain Text
1GET /v1/appblb/lb-j8UqijYf/blbrsmount?sgId=abc HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/ae4780f344774daa832f34caadd4d7de/2016-06-03T06:42:31Z/1800/host/3f26e5a322d41fa0f3315e906342c2691fe5ee35d21c7e66e425b4ee0f67ced3

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Fri, 03 Jun 2016 06:42:44 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7
8{     
9    "backendServerList": [
10    {
11        "instanceId": "BCC_UUID",
12        "privateIp": "240c:4086:0:4501::5",              
13        "weight": "WEIGHT",
14        "portList": [                            
15        {
16            "listenerPort": "LISTENER_PORT1",
17            "backendPort": "BACKEND_PORT1",
18            "portType": "HTTP",
19            “healthCheckPortType”: "HTTP",
20            "portId": "port_xxx",             
21            "policyId": "policy_xxx",             
22            "status": "Alive"
23        },
24        {
25            "listenerPort": "LISTENER_PORT2",
26            "backendPort": "BACKEND_PORT2",
27            "portType": "HTTP",
28            “healthCheckPortType”: "HTTP",
29            "portId": "port_xxx",             
30            "policyId": "policy_xxx",             
31            "staus": "Alive"
32        }
33        ]
34    }
35    ]
36}

DescribeRsUnMount: Query RS unbound under the server group

  • Query RS unbound under the server group

Request structure

Plain Text
1GET /v{version}/appblb/{blbId}/blbrsunmount?sgId={sgId} HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: authorization string

Request headers

No special headers beyond common headers.

Request parameters

Parameter name Types Whether required Parameter location Description
version String Yes URL parameter API version number, current value is 1.
blbId String Yes URL parameter LoadBalancer identifier
sgId String Yes Query ID of the server group to which the RS belongs

Response Status Code

Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](BLB/API Reference/Error code.md)

Response headers

No special headers beyond common headers.

Response parameters

Parameter name Types Description
backendServerList List<[AppBackendServer](BLB/API Reference/Appendix.md#AppBackendServer)> List containing query results

Request example

Plain Text
1GET /v1/appblb/lb-j8UqijYf/blbrsunmount?sgId=abc HTTP/1.1
2Host: blb.bj.baidubce.com
3Authorization: bce-auth-v1/ae4780f344774daa832f34caadd4d7de/2016-06-03T06:42:31Z/1800/host/3f26e5a322d41fa0f3315e906342c2691fe5ee35d21c7e66e425b4ee0f67ced3

Response example

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Fri, 03 Jun 2016 06:42:44 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7
8{     
9    "backendServerList": [
10    {
11        "instanceId": "BCC_UUID",
12        "privateIp": "240c:4086:0:4501::5",              
13        "weight": null,
14        "portList": []
15    }
16    ]
17}

Previous
Application IPv6 BLB Security Group Related Interfaces
Next
BLB Order Related Interfaces