如何解决RouteRule名称重要吗?
我想了解Apigee RouteRule(https://docs.apigee.com/api-platform/fundamentals/understanding-routes?hl=lv)
<RouteRule name="MyRoute">
<Condition>request.header.routeto = "TargetEndpoint1"</Condition>
<TargetEndpoint>TargetEndpoint1</TargetEndpoint>
</RouteRule>
<RouteRule name="default">
<TargetEndpoint>TargetEndpoint2</TargetEndpoint>
</RouteRule>
我的问题是,如果我更改规则名称,这有关系吗?
例如,我将MyRoute
更改为YourRoute
,然后变成
<RouteRule name="YourRoute">
<Condition>request.header.routeto = "TargetEndpoint1"</Condition>
<TargetEndpoint>TargetEndpoint1</TargetEndpoint>
</RouteRule>
<RouteRule name="default">
<TargetEndpoint>TargetEndpoint2</TargetEndpoint>
</RouteRule>
我找不到其他地方引用的路由规则名称。
解决方法
这只是您为RouteRule策略指定的名称。可以有多个Route规则,因此为了与我们方便起见进行区分。在仅包含在代理流xml中的任何地方都不会引用策略名称。它与或非常相似。直到将其添加到代理流中,它才会被执行。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。