Spring Cloud 检索有关特定路线的信息
2024-01-06 11:14 更新
要检索有关一条路线的信息,请向/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. |
以上内容是否对您有帮助:
更多建议: