General Procedure
Assume that you have the following request throttling requirements for an API:
- The API can be called up to 10 times per 60s but can be called by a user only 5 times per 60s.
- Only 10 requests containing header field Host=www.abc.com are allowed in 60s.
- Only 10 requests with method GET and path reqPath = /list are allowed in 60s.
- Only 10 requests with path reqPath = /fc are allowed in 60s.
- Each excluded tenant can only call the API 5 times per 60s.
Following this procedure to create a request throttling 2.0 policy and bind it to an API.
- Create a policy.
Enter the basic information of the request throttling 2.0 policy.
- Configure basic throttling.
Configure the basic throttling settings.
- Configure parameter-based throttling.
Enable parameter-based throttling, and define parameters and rules.
- Configure excluded throttling.
Enable excluded throttling, and configure excluded tenants and credentials.
- Bind the policy to an API.
Bind the request throttling 2.0 policy to the API.
- Verify the API.
Call the API and verify whether the request throttling 2.0 policy has taken effect.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot