列出在设备上创建的所有网络路由。
请求示例:
GET /api/network/v1/routes HTTP/1.1 Authorization: Basic abcd1234MWE= Host: zfssa.example.com:215 Accept: application/json
结果示例:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 192
{
"routes": [{
"destination": "0.0.0.0",
"family": "IPv4",
"gateway": "10.80.231.1",
"href": "/api/network/v1/routing/route-000",
"interface": "ixgbe0",
"mask": 0,
"route": "route-000",
"type": "static"
}, {
"destination": "10.80.231.0",
"family": "IPv4",
"gateway": "10.80.231.58",
"href": "/api/network/v1/routes/route-001",
"interface": "ixgbe0",
"mask": 24,
"route": "route-001",
"type": "system"
}]
}