Spring Cloud 检索有关特定路线的信息
要检索有关一条路线的信息,请向/actuator/gateway/routes/{id}发送一个GET请求(例如/actuator/gateway/routes/first_route)。产生的响应类似于以下内容:
{
"id": "first_route",
"predicates": [{
"name": "Path",
"args": {"_genkey_0":"/first"}
}],
"filters": [],
"uri": "https://www.uri-destination.org",
"order": 0
}]
下表描述了响应的结构。
| 路径 | 类型 | 描述 |
|---|---|---|
|
|
String |
The route id. |
|
|
Array |
The collection of route predicates. Each item defines the name and the arguments of a given predicate. |
|
|
Array |
The collection of filters applied to the route. |
|
|
String |
The destination URI of the route. |
|
|
Number |
The route order. |