Quota policy per request parameters

Not applicable

Hi! Let's assume we have a proxy endpoint: /products/{productId} And I want to limit calls for various productId values. Example urls: /products/1 /products/2 And of those endpoint has got it's own counter. Is it possible to setup quota policy for each request parameter separately?

Cheers, Tomas

Solved Solved
0 2 524
1 ACCEPTED SOLUTION

Dear @Tomasz Korecki ,

Yes, It's possible. This is one of the basic features of quota policy. You can read more about same in our docs here.

  • Extract the product id using Extract Variables policy.
  • Use the <Identifier> element to uniquely identify and apply quota against an individual client app or developer.
  • Combine your developer id with above extracted product id to uniquely create a identifier for quota reference.

Cheers,

Anil Sagar

View solution in original post

2 REPLIES 2

I think it is possible to achieve it using <Identifier> element. The purpose of <Identifier> element is to uniquely identify developer or app. In your case, productId can be used to distinguish & track seperate quota

Dear @Tomasz Korecki ,

Yes, It's possible. This is one of the basic features of quota policy. You can read more about same in our docs here.

  • Extract the product id using Extract Variables policy.
  • Use the <Identifier> element to uniquely identify and apply quota against an individual client app or developer.
  • Combine your developer id with above extracted product id to uniquely create a identifier for quota reference.

Cheers,

Anil Sagar