テナントネットワーク(ゲートウェイ接続)の更新をします。
PUT /api/1.0/network/{networkId}
※ networkId:更新したいネットワークID
| Request parameters |
| Name |
Description |
Type |
Data type |
Required |
| Authorization |
Bearer [APIキー] |
header |
String |
True |
| network |
作成するテナントネットワーク情報(ゲートウェイ接続) |
body |
Object |
True |
| body parameters |
| Name |
Description |
Example |
Data type |
Required |
| network |
ネットワーク情報 |
|
Object |
True |
| networkName |
ネットワーク名 |
APU9999999-SFNW01 |
String |
True |
| comment |
コメント |
コメント |
String |
|
| dnsFlg |
DNS使用フラグ |
false |
Boolean |
True |
| dns1 |
プライマリDNSアドレス |
1.1.1.1 |
String |
|
| dns2 |
セカンダリDNSアドレス |
8.8.8.8 |
String |
|
| dnsSuffix |
DNSサフィックス |
|
String |
|
| ipPools |
IPプール情報一覧 |
|
Array |
True |
| ipPool |
IPプール情報 |
|
Object |
True |
| 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 |
| networkId |
ネットワークID |
0333050e366d4c938e0fd2a9ef97390d |
String |
|
実行例
|
# Execute request
curl -X PUT -H "Authorization:$token" -H "Content-Type:application/json" -d '{
"network": {
"networkName": "APU9999999-SFNW01",
"comment": "",
"gateway": "192.168.0.1",
"netmask": "255.255.255.0",
"dnsFlg": false,
"dns1": "1.1.1.1",
"dns2": "8.8.8.8",
"dnsSuffix": "",
"edgegwId": "a173ba91182a4cdd842421a18601b881",
"ipPools": [
{
"ipBegin": "192.168.0.11",
"ipEnd": "192.168.0.200"
}
]
}
}' https://eastapi.aspire.gcf.whitecloud.jp/api/1.0/network/03f5...0d41d5a65da...cb2a
|
|
レスポンス例
|
{"networkId": "03f5b89c4d0d41d5a65da85239ebcb2a"}
|