Update extra route
仮想ルータを更新します。
URI
/v2.0/routers/{router_id}
URIの説明:
仮想ルータID
HTTPメソッド
PUT
リクエストパラメタ
| キー | 説明 | 型 | 必須/省略可 |
|---|---|---|---|
| routes | 追加のルート構成 | ||
| nexthop | ネクストホップのIPアドレス | xsd:string | Optional |
| destination | 宛先のCIDR
注意: ルーターインターフェースが属するCIDRと同じCIDRを指定しないでください。
|
xsd:string | Optional |
リクエスト例
{
"router":{
"routes":[
{
"nexthop":"10.1.0.10",
"destination":"40.0.1.0/24"
}
]
}
}
レスポンスステータス
| ステータスコード | 説明 |
|---|---|
| 200 | Normal response codes |
| Unauthorized (401) | Error response codes |
| Bad Request (400) | Error response codes |
| Not Found (404) | Error response codes |
| Conflict (409) | Error response codes |
レスポンスボディ(正常系)
{"router":
{"status": "ACTIVE",
"external_gateway_info": {"network_id": "5c26e0bb-a9a9-429c-9703-5c417a221096"},
"name": "router1",
"admin_state_up": true,
"tenant_id": "936fa220b2c24a87af51026439af7a3e",
"routes": [{"nexthop": "10.1.0.10", "destination": "40.0.1.0/24"}],
"id": "babc8173-46f6-4b6f-8b95-38c1683a4e22"},
"availability_zone": "AZ1"}
}
レスポンスボディ(正常系)の説明
| 要素名 | 説明 |
|---|---|
| status | 仮想ルータのステータス |
| external_gateway_info | 外部ゲートウェイのネットワークID |
| name | 仮想ルータ名 |
| admin_state_up | ルーターの管理状態
ルーターが稼動中(true)か停止している(false)かを示します。 falseの場合、仮想ルータを経由した通信はできません。 |
| tenant_id | プロジェクトID |
| routes | |
| id | 仮想ルータID |
| availability_zone | アベイラビリティゾーン名 |