Description

Request URL

Network API v2.0

PUT /v2.0/lb/members/{member_id}

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header
member_id member ID URI
weight(Optional) PLAIN 0-256 Specifying 0 means to invalid the balancing.
pool_id(Optional) PLAIN Use this command when changing the POOL that is associated to it.

Request Json

{
    "member": {
        "weight": 0,
        "pool_id": "b5241716-0a3f-4903-be55-a41a3f6f746e"
    }
}

Normal response codes

200

Example

curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 0925897a3d4543218ff0dcd2bb378a8e" \
-d '{"member":{"weight" : 0, "pool_id": "97081853-56b6-408a-882c-1852ef46fafb"}}' \
https://networking.tyo1.cloud.z.com/v2.0/lb/members/2daf88ff-33c1-4af0-a2ae-50d63f4cd589
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 300
X-Openstack-Request-Id: req-2acaaf86-efe8-4084-9cba-3a0df962ac76
Date: Wed, 25 Feb 2015 09:45:21 GMT

{
    "member": {
        "admin_state_up": true,
        "status": "PENDING_UPDATE",
        "status_description": null,
        "weight": 0,
        "address": "133.130.48.129",
        "tenant_id": "22394afc818d471ca2f0308c06ae7460",
        "protocol_port": 80,
        "id": "2daf88ff-33c1-4af0-a2ae-50d63f4cd589",
        "pool_id": "97081853-56b6-408a-882c-1852ef46fafb"
    }
}