Identify an API Request from a specific VNET and SUBNET

Manikanth Ramagani 21 Reputation points
2022-06-02T06:10:32.67+00:00

We have multiple APIs accessed via APIM from different sources and we would like to allow one particular API only if the request is coming from a specific VNET and SUBNET. Is there a policy or a header or a service tag that we can rely on to achieve this? Again, only for 1 API we would like to have this verification or rule. Thanks!!!

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,441 Reputation points Moderator
    2022-06-03T15:42:45.713+00:00

    Hi @Manikanth Ramagani Thanks for reaching out. From the description I understand that you have multiple API's but a single API needs to be accessed only if the request comes from a specific subnet/vnet this can be achieved using IP filter policy in Inbound at API scope.

    IP filter will allow only the request comes from authorized IP, otherwise the request will be rejected.

    please refer this document for sample policy and let me know incase of further queries, I would be happy to assist you.

    API Management allows you to define policies at the various scopes please refer this document for more information

    To benefit the community find the right answers, please do mark the post which was helpful by clicking on Accept Answer’ & ‘Up-Vote’.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.