How to easily get the quota-by-key from multiple API's at once?

Niels Beukenkamp 25 Reputation points
2023-08-01T13:19:26.6166667+00:00

Using the documentation information on this page https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/quota-by-counter-keys/list-by-service?tabs=HTTP I can see there is a way to easily view the quota-by-key from an API.

However, our infrastructure will contain hundreds of API's which will all need to be checked on. Is there a more efficient way to get the quota-by-key from multiple API's at once instead of doing a management API call per API?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,960 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,276 Reputation points
    2023-08-02T13:10:54.0366667+00:00

    Niels Beukenkamp Thanks for posting your question in Microsoft Q&A. Quota By Counter Keys - List By Service API return quota-by-key for a specific APIM instance (All APIs under the APIM). Based on your description, I assume you are looking for an API to return the values for multiple APIM instances under a subscription/resource group at once.

    Unfortunately, it is not possible right now and you would need to make a call for each APIM instance in a subscription and loop through all instances via PowerShell, CLI or SDK scripts (sample reference) of your choice. If you are interested this feature request and like to submit it to our product team, please do so via https://aka.ms/apimwish and others with similar interests can upvote your idea too.

    Let me know if you have any additional questions.

    1 person found this answer helpful.
    0 comments No comments