Adding an Excluded App or Tenant
Scenario
If you want to control the number of API calls received from a specific app or tenant, add an excluded app or tenant to a request throttling policy.
Prerequisites
You have created an app or obtained an app ID of another account or an account ID.
Adding an Excluded App
- Access the shared gateway console.
- In the navigation pane, choose API Publishing > Request Throttling.
- Click the name of the target request throttling policy.
- On the displayed request throttling policy details page, click the Excluded Apps tab.
- Click Select Excluded App.
- Select an app to exclude. You can use one of the following methods:
Figure 1 Selecting an app
- To select an existing app, click Existing, select an app, and enter a threshold.
- To select an app of other tenants, click Cross-tenant, and enter the app ID and a threshold.
Excluded app thresholds take precedence over the value of Max. App Requests.
For example, a request throttling policy has been configured, with Max. API Requests being 10, Max. App Requests being 3, Period being 1 minute, and two excluded apps (max. 2 API requests for app A and max. 4 API requests for app B). If the request throttling policy is bound to an API, apps A and B can access the API 2 and 4 times within 1 minute, respectively.
Adding an Excluded Tenant
- Hover the mouse pointer over the username and choose My Credentials from the drop-down list.
- On the API Credentials page, view the account ID and project ID.
Figure 2 Viewing the account ID and project ID
- In the navigation pane, choose API Publishing > Request Throttling.
- Click the name of the target request throttling policy.
- Click the Excluded Tenants tab.
- Click Select Excluded Tenant.
- In the Select Excluded Tenant dialog box, set the parameters listed in Table 1.
Figure 3 Adding an excluded tenant
Table 1 Excluded tenant configuration Parameter
Description
Account ID
Account ID or project ID obtained in 2.
- Enter a project ID if you will bind or have bound this policy to an API that uses app authentication.
- Enter an account ID if you will bind or have bound this policy to an API that uses IAM authentication.
Threshold
The maximum number of times an API can be called by the tenant within a specified period.
The value of this parameter cannot exceed that of Max. API Requests.
- Click OK.
Excluded tenant thresholds take precedence over the value of Max. User Requests.
For example, suppose a request throttling policy is configured, with Max. API Requests being 10, Max. User Requests being 3, Period being 1 minute, and two excluded tenants (max. 2 API requests for tenant A and max. 4 API requests for tenant B). If the request throttling policy is bound to an API, tenants A and B can access the API 2 and 4 times within 1 minute, respectively.
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