SetNodePoolSize
処理概要
ノードプールのノード数を変更します。
リクエストURL
POST /v1/clusters/{ClusterName}/nodePools/{NodePoolName}:setSize指定するパラメーター
パスパラメーター
| パラメーター | 型 | 説明 | 必須 |
|---|---|---|---|
| ClusterName | string |
ノード数を変更したいノードプールが属しているクラスター名 |
○ |
| NodePoolName | string |
ノード数を変更したいノードプール名 |
○ |
リクエストボディ
| パラメーター | 型 | 説明 | 必須 |
|---|---|---|---|
| nodeCount | integer |
ノード数 |
○ |
応答フィールド
| フィールド (項目) | 型 | 説明 |
|---|---|---|
| nodePool | object |
|
| ␣name | string |
ノードプール名 |
| ␣instanceType | string |
ノードプール内のノードのサーバータイプ |
| ␣nodeCount | integer |
ノードプール内の現在のノード数 |
| ␣initialNodeCount | integer |
ノードプール作成時に設定したノードプール内のノード数 |
| ␣status | string |
ノードプールのステータス 値:
|
| ␣nodes[] | object[] |
|
| ␣␣name | string |
ノード名 |
| ␣␣availabilityZone | string |
ノードのゾーン情報 |
| ␣␣publicIpAddress | string |
グローバルIPアドレス |
| ␣␣privateIpAddress | string |
プライベートIPアドレス |
| ␣␣status | string |
ノードのステータス 値:
|
| ␣nrn | string |
NRN |
| ␣tags[] | object[] |
|
| ␣␣id | string |
タグID |
| ␣␣key | string |
タグキー |
| ␣␣value | string |
タグ値 |
リクエストサンプル
curl -XPOST https://jp-east-1.hatoba.api.nifcloud.com/v1/clusters/cluster01/nodePools/nodepool01:setSize
-H "X-Amz-Date: 20190724T000000Z"
-H "Authorization: AWS4-HMAC-SHA256 ..."
-d {
"nodeCount": 2
}
応答サンプル
{
"nodePool": {
"name": "nodepool01",
"instanceType": "medium",
"nodeCount": 2,
"initialNodeCount": 1,
"status": "RECONCILING",
"nodes": [
{
"name": "nodepool01-5jton1",
"availabilityZone": "east-11",
"publicIpAddress": "x.x.x.x",
"privateIpAddress": "x.x.x.x",
"status": "RUNNING"
},
{
"name": "nodepool01-5jton2",
"availabilityZone": "east-11",
"publicIpAddress": "",
"privateIpAddress": "",
"status": "PROVISIONING"
}
],
"nrn": "nrn:nifcloud:hatoba:jp-east-1:xxxxxxxx:node-pool:c22fa663-0502-45cc-894d-dccfdcd3c20d",
"tags": [
{
"id": "31fac2be-013e-4702-b5ba-5d49b7d8e7b7",
"key": "key01",
"value": "value01"
}
]
}
}


