Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is there a flow variable that supplies the RouteRule name that activated?

Not applicable

I'd like to log the wildcard path used to match routes so that we can determine usage by endpoint without regard to the path variables used. Our proxies currently include route rules in this pattern:

<RouteRule name="/centres/{centre_id}/movies/{movie_id}">
    <TargetEndpoint>movie_service</TargetEndpoint>
    <Condition>(proxy.pathsuffix MatchesPath "/centres/{centre_id}/movies/{movie_id}")</Condition>
</RouteRule>

Where centre_id might be sanfrancisco and movie_id might be 12345.

If there is a flow variable to access the route rule name matched then I'd be all set with no additional processing. Alternatively, the identical value is in the matched path pattern, if that is available.

Solved Solved
0 7 471
1 ACCEPTED SOLUTION

Hi @George Shaw

Can you check with

route.name

View solution in original post

7 REPLIES 7