MENU

Description

VIPと紐付けたいIPアドレス、ポートを指定します。

ポートに結び付けられていないIPは指定できません。

バランシングを一時的に(memberを削除せずに)無効にする際にweightを利用します。

Request URL

Network API v2.0

POST /v2.0/lb/members

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
protocol_port ポート番号 plain A valid value is from 0 to 65535.
pool_id pool id plain プールID
address IP address plain VIPと紐付けたいIPアドレス
weight(Optional) weight plain 0-256 0にする場合はバランシングが無効になる. 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

201

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

  • REQ
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.conoha.io/v2.0/lb/members
  • RES
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"
    }
}