Monday, March 30, 2020

Azure API Management - Setting Up Inbound Policies - 1

There are various inbound policies that can be set when setting up the API Management Service on Microsoft Azure. Having these policies will help rejecting the requests arrive at your endpoints even before they hit the endpoint's internal security logics. In another aspect, you might get your web traffic overloaded due to many reasons. In such scenarios, you can limit them with the inbuilt policies in API Management Service.

In order to explain them in this article, I am picking the default Echo API. When you go to All Operations, you can see similar to the image below.

Then click on 'Add Policy' link to add a new policy. 


All the available default options will be shown there. Lets walkthrough some of them.

1. Filter IP Addresses
You can simply enter the Allowed IPs as well as Blocked IPs. A range of IPs can be given. If you have a Virtual Machine with a static IP, that can be set here easily. 



2. Limit Call Rate

Limit call rate option allows limiting the number of calls sent by a particular API subscription or by an Address or other custom scenario to be limited for a particular duration. 

In this example, I have limited the number of calls a particular IP address can make within 60 seconds to 1000. In the increment condition I can pickup either any request or requests that previously sends particular status codes. (eg: Successful requests, Bad requests).


3. Set Query Parameters and Set Headers

Set headers and set parameters do logically same thing. Which is modifying the parameters or headers before it hits the backend. 

As it can be seen in the above image, you can either override, skip, append or delete the header or parameter. 

These are some of the basics. We will know more in the next articles. 



11 comments:

  1. I truly get pleasure from while I read your blogs and its content.
    Document Management System

    ReplyDelete
  2. What might they get in the event that they employed a development chief? This development administrator would play out every one of the standard obligations. This administrator realizes how to deal with a burial ground. IT support Thornhill

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. You actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it! Contract Management Software

    ReplyDelete
  5. Resume sourcing and rating, training and social networking are the recruiting tools that can have the biggest impact on your business success, apart from your recruiting software. Here is our take on the ones we often see in use. Warning! The industry is loaded with viruses so researching for these tools may be hazardous to your PC. The ones we list here are virus safe. Second warning! Many recruiting software vendors own or are connected to 3rd party recruiting firms! Third warning! This article is all about resume sourcing and tools related to resumes. A person and their resume can become stale to potential employers if they appear on too many resume sources like job boards, broadcasts and job banks. executive recruitment services

    ReplyDelete
  6. Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. management training

    ReplyDelete
  7. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. https://www.vingle.net/posts/4383166

    ReplyDelete
  8. Your absolute best wager is to find out cannabis crops which are developed organically, and Nearly all them exist in the us such as for example Kentucky, Nevada, Colorado, California, and Oregon. singapore best soft skills training

    ReplyDelete
  9. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. https://managementtraining123.simplesite.com

    ReplyDelete
  10. Once in a while they get extraordinary investment returns, and frequently they don't.
    ex-ponent

    ReplyDelete