仮想マシングループネットワーク(未接続/ゲートウェイ接続)の更新をします。
PUT /api/1.0/vmgNetwork/{vmgNetworkId}
※ vmgNetworkId:更新したい仮想マシングループネットワークID
| Request parameters |
| Name |
Description |
Type |
Data type |
Required |
| Authorization |
Bearer [APIキー] |
header |
String |
True |
| vmgNetwork |
更新する仮想マシングループネットワーク情報(未接続/ゲートウェイ接続) |
body |
Object |
True |
| body parameters |
| Name |
Description |
Example |
Data type |
Required |
| vmgNetwork |
仮想マシングループネットワーク情報 |
|
Object |
True |
| vmgNetworkName |
仮想マシングループネットワーク名 |
vmgroup-nw-name |
String |
True |
| comment |
コメント |
コメント |
String |
|
| dns1 |
プライマリDNSアドレス |
1.1.1.1 |
String |
|
| dns2 |
セカンダリDNSアドレス |
8.8.8.8 |
String |
|
| dnsSuffix |
DNSサフィックス |
|
String |
|
| linkNetworkId |
接続先ネットワークID
※未接続で更新する場合は空文字(“”)を指定
|
0333050e366d4c938e0fd2a9ef97390d |
String |
|
| ipPools |
IPプール情報一覧 |
|
Array |
|
| ipPool |
IPプール情報 |
|
Object |
|
| ipBegin |
IPプール開始IPアドレス |
192.169.1.11 |
String |
True |
| ipEnd |
IPプール終了IPアドレス |
192.169.1.200 |
String |
True |
| Successful Response |
| Response Code |
200 OK |
| Response Headers |
Content-type: application/json |
| Name |
Description |
Example |
Data type |
| vmgNetworkId |
仮想マシングループネットワークID |
244f802562704fe8a614a57937e1bbc6 |
String |
|
実行例
|
# Execute request
curl -X PUT -H "Authorization:$token" -H "Content-Type:application/json" -d '{
"vmgNetwork": {
"vmgNetworkName": "vmgroup-nw-name",
"comment": "",
"dns1": "1.1.1.1",
"dns2": "8.8.8.8",
"dnsSuffix": "",
"linkNetworkId": "0333050e366d4c938e0fd2a9ef97390d",
"ipPools": [
{
"ipBegin": "192.169.1.11",
"ipEnd": "192.169.1.200"
}
]
}
}' https://eastapi.aspire.gcf.whitecloud.jp/api/1.0/vmgNetwork/244f...704fe8a614a...bbc6
|
|
レスポンス例
|
{"vmgNetworkId": "244f802562704fe8a614a57937e1bbc6"}
|