ConoHa API Documantation

POOL更新(バランシング方式の変更) - Network API v2.0

Description

POOLにmemberが紐付いている場合にはlb_methodは変更できません。

Request URL

Network API v2.0

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

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
pool_id Pool ID URI プールID
name(Optional) Pool name plain プール名
lb_method(Optional) lb method plain ROUND_ROBIN or LEAST_CONNECTIONS

Request Json

{
   "pool":{
      "name":"SuperPool",
      "lb_method": "LEAST_CONNECTIONS"
   }
}

Normal response codes

200

Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。

  • REQ
curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 0925897a3d4543218ff0dcd2bb378a8e" \
-d '{"pool": {"lb_method": "LEAST_CONNECTIONS"}}' \
https://networking.tyo1.conoha.io/v2.0/lb/pools/b9e3bc41-d76c-4c93-9337-39f056b6a9ef
  • RES
HTTP/1.1 200 OK
Server: openresty/1.7.10.1
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"
    }
}