Request throttling controls the number of times an API can be called within a time period to protect backend services.
To provide stable, uninterrupted services, you can create request throttling policies to control the number of calls made to your APIs.
Request throttling policies take effect for an API only if they have been bound to the API.
You have published the API to which you want to bind a request throttling policy.
Parameter |
Description |
---|---|
Name |
Request throttling policy name. |
Type |
API-based or API-shared request throttling.
|
Period |
For how long you want to limit the number of API calls. This parameter can be used together with the following parameters:
|
Max. API Requests |
The maximum number of times each bound API can be called within the specified period. This parameter must be used together with Period. |
Max. User Requests |
The maximum number of times each bound API can be called by a user within the specified period. This limit only applies to APIs that are accessed through app or IAM authentication.
|
Max. App Requests |
The maximum number of times each bound API can be called by an app within the specified period. This limit only applies to APIs that are accessed through app authentication.
|
Max. IP Address Requests |
The maximum number of times each bound API can be called by an IP address within the specified period.
|
Description |
Description of the request throttling policy. |
After the policy is created, it is displayed on the Request Throttling page. You can bind this policy to APIs to throttle API requests.
If a request throttling policy is no longer needed for an API, you can unbind it. To unbind a request throttling policy from multiple APIs, select the APIs, and click Unbind. You can unbind a request throttling policy from a maximum of 1000 APIs at a time.
To control the maximum number of API calls received from a specific app or tenant, specify the app or tenant to exclude by referring to Adding an Excluded App or Tenant. If an app is excluded in a request throttling policy, any threshold configured for that app takes precedence over the request throttling policy. The API and user request limits of this policy are still valid. If a tenant is excluded in a request throttling policy, any threshold configured for that tenant will be applied. The API and app request limits of this policy are still valid.