List routers

リクエストするプロジェクトがアクセスできる仮想ルータを一覧表示します。

URI

/v2.0/routers

HTTPメソッド

GET

レスポンスステータス

ステータスコード 説明
200 Normal response codes
unauthorized (401) Error response codes

レスポンスボディ(正常系)


{
	"routers": [
		{
			"status": "ACTIVE",
			"external_gateway_info": null,
			"name": "second_routers",
			"admin_state_up": true,
			"tenant_id": "6b96ff0cb17a4b859e1e575d221683d3",
			"id": "7177abc4-5ae9-4bb7-b0d4-89e94a4abf3b",
			"routes": [
				{
					"nexthop": "10.1.0.10",
					"destination": "40.0.1.0/24"
				}
			],
			"availability_zone": "AZ1"
		},
		{
		"status": "ACTIVE",
		"external_gateway_info": {
			"network_id": "3c5bcddd-6af9-4e6b-9c3e-c153e521cab8"
		},
		"name": "router1",
		"admin_state_up": true,
		"tenant_id": "33a40233088643acb66ff6eb0ebea679",
		"id": "a9254bdb-2613-4a13-ac4c-adc581fba50d",
			"routes": [
				{
					"nexthop": "11.1.0.10",
					"destination": "41.0.1.0/24"
				}
			],
			"availability_zone": "AZ1"
		}
	]
}  
     

レスポンスボディ(正常系)の説明

要素名 説明
status 仮想ルータの状態
external_gateway_info 外部ゲートウェイのネットワークID
name 仮想ルータ名
admin_state_up ルーターの管理状態

ルーターが稼動中(true)か停止している(false)かを示します。

falseの場合、仮想ルータを経由した通信はできません。

tenant_id プロジェクトID
id 仮想ルータID
routes 静的ルーティングの一覧

書式は以下のとおりです。

静的ルーティング定義:


[
  {
    "nexthop":"IPADDRESS",
    "destination":"CIDR"
  }
]                 
               

next_hopは、宛先に到達するために次に転送すべき隣接するIPアドレスです。

destinationは、宛先のCIDRです。

availability_zone アベイラビリティゾーン名