Print route URL using custom message completed
search cancel

Print route URL using custom message completed

book

Article ID: 264125

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway CA Mobile API Gateway Layer7 API Security

Issue/Introduction

There's a requirement to print the route assertion URL in ssg logs using a Custom Message Completed Global policy. Using the ${httpRouting.url} context variable in the Global policy is not working.

Environment

All supported versions of the CA API Gateway

Resolution

Try using the ${request.url} context variable.

In this example, there is a simple policy with a routing assertion. In the message-completed global policy, an audit message is used to print the name of the service and the routing URL. 

After hitting the service endpoint, check the audit details for the routing assertion's URL.