Description

Specify the IP address and port that you would like to associate to the VIP.

You can't specify the IP which is not associated to the port.

Use "weight" command when you would like to stop running the current balancing temporaily without deleting the member.

Request URL

Network API v2.0

POST /v2.0/lb/members

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header
protocol_port Port Number plain A valid value is from 0 to 65535.
pool_id pool id plain
address IP address plain IP address that you'd like to associate to VIP
weight(Optional) weight plain 0-256 Specifying 0 means to invalid the balancing. default:1

Request Json

{
    "member": {
        "pool_id": "97081853-56b6-408a-882c-1852ef46fafb",
        "address": "157.7.108.152",
        "protocol_port": "80",
        "weight": 1
    }
}

Normal response codes

200

Example

curl -i -X POST -H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: 0925897a3d4543218ff0dcd2bb378a8e" \
-d '{"member": {"pool_id": "97081853-56b6-408a-882c-1852ef46fafb", "address": "157.7.108.152", "protocol_port": "80"}}' \
https://networking.tyo1.cloud.z.com/v2.0/lb/members
HTTP/1.1 201 Created
Date: Thu, 25 Dec 2014 08:34:40 GMT
Server: Apache
Content-Length: 298
Content-Type: application/json

{
    "member": {
        "admin_state_up": true,
        "status": "PENDING_CREATE",
        "status_description": null,
        "weight": 1,
        "address": "157.7.108.152",
        "tenant_id": "22394afc818d471ca2f0308c06ae7460",
        "protocol_port": 80,
        "id": "233bcf3e-63bd-4943-803b-9141234037a2",
        "pool_id": "97081853-56b6-408a-882c-1852ef46fafb"
    }
}