简体   繁体   中英

Identify requestor which call Internal Azure APIM through External Azure Gateway

I do have external Azure Gateway which allows calling internal API services through internal (not public) APIM.

For billing purpose, I need to know who exactly (IP or some type of IDs) make a call.

I thought that could get this information from APIM logs.

I've tried to send custom header, with some sort of IDs, during API call - but I could not find any meaningful information in APIM diagnostic logs.

Could you please share your thoughts and suggestions, how to achieve the above goal?

You can know the requestor by pulling reports of that particular API management using rest API. Here you get option to filter the reports by User and User-Ids

reference: https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/reports/list-by-user

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM