You can't change lb_method when Pool is associated to the member.

Request URL

Network API v2.0

PUT /v2.0/lb/pools/{pool_id}

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header
pool_id Pool ID URI
name(Optional) Pool name plain
lb_method(Optional) lb method plain ROUND_ROBIN or LEAST_CONNECTIONS

Request Json

      "lb_method": "LEAST_CONNECTIONS"

Normal response codes



curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 0925897a3d4543218ff0dcd2bb378a8e" \
-d '{"pool": {"lb_method": "LEAST_CONNECTIONS"}}' \
HTTP/1.1 200 OK
Server: openresty/
Date: Fri, 08 May 2015 09:19:10 GMT
Content-Type: application/json
Content-Length: 418
Connection: keep-alive

    "pool": {
        "status": "PENDING_UPDATE",
        "lb_method": "LEAST_CONNECTIONS",
        "protocol": "TCP",
        "description": "",
        "health_monitors": [],
        "members": [],
        "status_description": null,
        "id": "b9e3bc41-d76c-4c93-9337-39f056b6a9ef",
        "vip_id": null,
        "name": "pool-test-150223-01",
        "admin_state_up": true,
        "subnet_id": "9c27f83a-ba6d-4e0e-b004-e34422e207a6",
        "tenant_id": "22394afc818d471ca2f0308c06ae7460",
        "health_monitors_status": [],
        "provider": "lvs_dsr"