The Qualys Container Security API is now enforcing limits on the number of API calls a customer can make based on the API endpoint being called and the customer’s Qualys platform. API rate limits are currently enforced for Gateway API calls made by customers on US2 Platform (https://csapi.qg2.apps.qualys.com) and will be enforced on other Qualys platforms soon. Customer notification will be provided once we enforce API rate limits on other Qualys platforms. The API rate limits are enforced uniformly across all subscriptions on a particular platform. There currently is no ability to enforce custom rate limits for a given subscription.
How It Works
When an API call is received, Qualys checks the rate limit defined for the API endpoint. If the rate limit has been exceeded the API call is blocked and an error is returned.
For each API we’ve defined the following settings:
Rate Limit Size (per API): The maximum number of API calls allowed within the subscription during the rate limit period.
Rate Limit Period (in seconds, per API): The period of time that defines a window when API calls are counted within the subscription for each API. The window starts from the moment each API call is received by the service.
When the Rate Limit is Reached
The API response “429 Too Many Requests” is returned anytime a user makes an API call and the rate limit for the API endpoint has already been reached. In other words, the rate limit size (maximum number of API call instances) has already been reached for the rate limit period.
Rate Limits Defined per API Endpoint
See the table below to understand the rate limits defined for Container Security API endpoints. Rate limits do not currently apply to the Container Runtime Security API.
|API Path||Rate Limit Size (max number of API calls)||Rate Limit Period (in seconds)||Description|
|/csapi/v1.2/containers/list||120||60||Every 60 seconds, you can make 120 calls to the API|
|/csapi/v1.2/containers/**||5000||60||Every 60 seconds, you can make 5000 calls to the API|
|/csapi/v1.2/images/list||120||60||Every 60 seconds, you can make 120 calls to the API|
|/csapi/v1.2/images/**||5000||60||Every 60 seconds, you can make 5000 calls to the API|
|/csapi/v1.2/registry/**||1000||60||Every 60 seconds, you can make 1000 calls to the API|
|/csapi/v1.2/sensors/**||1000||60||Every 60 seconds, you can make 1000 calls to the API|
** represents any API endpoint that matches this path unless otherwise noted