Updated on 2023-12-18 GMT+08:00

Creating a Backend Server Group

API Format

Method

URI

Description

POST

/v2.0/lbaas/pools

Adds a backend server group.

Procedure

  1. Set the request header. Set the header in Postman and place the obtained token in the header.

  2. Under Body, set the request body.

  3. Enter the URL.

    https://elb.cn-east-2.myhuaweicloud.com/v2.0/lbaas/pools

  4. Send the request. Set the POST request method and click Send to wait for response from the server.

    {
        "pool": {
            "lb_algorithm": "ROUND_ROBIN",
            "protocol": "HTTP",
            "description": "",
            "admin_state_up": true,
            "loadbalancers": [
                {
                    "id": "abe3ee34-1882-408f-a2ba-1ce7e428d6e3"
                }
            ],
            "tenant_id": "0d0bf0e8fb564cc9abbe526dbdca9248",
            "session_persistence": null,
            "healthmonitor_id": null,
            "listeners": [
                {
                    "id": "ecb4d58e-3b09-4a9d-9ad2-159b21e13f83"
                }
            ],
            "members": [],
            "id": "752c3773-a046-4966-a5d6-0ad7f9a49d0a",
            "name": ""
        }
    }

Sample Code

Request body in 2

{
    "pool": {
        "lb_algorithm": "ROUND_ROBIN",
        "listener_id": "{{listener_id}}",
        "protocol": "HTTP",
        "admin_state_up": true
    }
}