资源中心/网络资源/路由资源相关接口/路由器路由表相关接口
GETvRouter Route Table Operations起始版本 2.1同步需要认证
获取路由器实时路由表
获取路由器实时路由表
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
路径参数
查询参数
请求参数
路径参数
virtualRouterVmUuidString必填路由器设备UUID
查询参数
systemTagsList系统标签。
userTagsList用户标签。
响应状态
请求地址
GET/zstack/v1/vrouter-route-tables/vrouter/{virtualRouterVmUuid}
/zstack/v1/vrouter-route-tables/vrouter/{virtualRouterVmUuid}
请求示例
curl -X GET 'http://{host}/zstack/v1/vrouter-route-tables/vrouter/{virtualRouterVmUuid}?systemTags=<systemTags>&userTags=<userTags>' -H 'Authorization: OAuth {sessionUuid}'
响应示例
200{ "inventories": [ { "type": "ZStack" "destination": "0.0.0.0/0" "target": "100.64.201.1" "status": "selected" }, { "uuid": "7b86eaba601c4ceda5987036c9ea7981" "type": "UserStatic" "destination": "100.64.0.0/24" "target": "100.64.201.10" "distance": "128" "status": "selected" }, { "uuid": "d15ebfe03aec49e6a0453e74eede350d" "type": "UserStatic" "destination": "100.64.0.0/24" "target": "100.64.201.11" "distance": "128" "status": "active" }, { "type": "ZStack" "destination": "10.0.57.94/32" "target": "eth0" }, { "uuid": "50e6070313fa4a05b17907a32be0a63f" "type": "UserStatic" "destination": "10.0.57.94/32" "target": "100.64.201.12" "distance": "1" "status": "inactive" }, { "type": "DirectConnect" "destination": "192.168.197.0/24" "target": "eth1" "status": "selected" }, { "uuid": "6b446d5cf776471c913582ab30bd6340" "type": "DirectConnect" "destination": "192.168.197.0/24" "target": "100.64.201.13" "distance": "1" "status": "inactive" }, { "uuid": "0aad7115c1f94aa1bf5db1a4d6d3fd17" "type": "UserBlackHole" "destination": "192.168.198.0/24" "distance": "1" "status": "selected" }, ] }变更历史
此 API 暂无变更历史记录。
