ConoHa API Documantation

REAL(member)更新 - Network API v2.0

Description

Request URL

Network API v2.0

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

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
member_id member ID URI メンバーID
weight(Optional) PLAIN 0-256 0にする場合はバランシングが無効になる.
pool_id(Optional) PLAIN 紐づくPOOLを変える場合に利用する

Request Json

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

Normal response codes

200

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

  • REQ
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.conoha.io/v2.0/lb/members/2daf88ff-33c1-4af0-a2ae-50d63f4cd589
  • RES
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"
    }
}