Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Conditional quota implementation with default values

I was going through the 4mv4d on conditional quota policy using the allow class definitions. The allow class is using a reference variable for eg. The query parameter appteam. Is it possible to restrict the quota to 2/minute if no query parameter is passed?

I observed that if you pass a query parameter value that's not defined in the allow class, a 429 error is thrown, which is valid by design I guess.

Anyway around to handle this with some default quota counts when queryparam is not passed or passed with a value that's not configured?

0 6 274
6 REPLIES 6