tencent cloud

Cloud Native Intelligent Gateway

Default Quotas for Consumers

Download
Focus Mode
Font Size
Last updated: 2026-09-22 18:51:10
AI-Translated
Add a default quota policy tab on the quota management page to support configuring a global default quota policy.
Global default quota policy: Configure the enable switch, default quota type, default statistics period, and default quota limit. After saving, only new consumers are affected, and existing consumer quotas remain unaffected.
Automatic allocation for new consumers: When the global policy is enabled, a quota rule is automatically created based on the global policy after a new consumer is created.

Prerequisites

An AI Gateway instance has been created, and the instance status is Running.
At least one consumer has been created.

Operation Steps

Step 1: Entering the Default Quota Policy

1. Log in to the Microservices Platform console, select AI Gateway in the left sidebar to go to the instance list.
2. On the instance list page, click the ID of the gateway instance you want to configure to go to its basic information page.
3. In the left sidebar, select Quota Management.
4. Click Default Quota Policy.

Step 2: Configuring the Default Quota Policy

1. On the Default Quota Policy tab, the following message is displayed:
The default quota policy takes effect only for consumers created after saving, and existing consumer quotas remain unaffected.
After the policy is modified, only consumers created later will adopt the new policy, and automatically allocated quota rules remain unchanged.
After the policy is disabled, automatically allocated quota rules will not be deleted, but new consumers will no longer automatically receive quotas.
2. The current policy status is displayed in a table:
Field
Description
Enabling Status
Not enabled / Enabled.
Quota type
Number of tokens / Number of requests.
Statistical Cycle
Daily / Weekly / Monthly.
Quota Limit
Quota limit.
3. Click the Configure Policy button to open the "Configure Default Quota Policy" dialog.
4. Complete the configuration by referring to the following table.
Parameter
Required
Description
Enabling Status
Yes
Switch. Controls whether to automatically assign quotas to new consumers.
Quota type
Yes
Dropdown selection. Options: Request count / Token count.
Statistical Cycle
Yes
Dropdown selection. Options: Daily / Weekly / Monthly.
Quota Limit
Yes
Numeric input. For example, 1000000 indicates 1 million tokens.

Step 3: Viewing Quota Rules

1. Click the Quota Rules tab to view the full list of quota rules.
2. The quota rules table displays the following columns:
Column Name
Description
Resource Type
Such as consumer.
Resource ID/Name
Consumer ID/name.
Quota type
Number of tokens / Number of requests.
Quota Limit
Quota limit.
Used
Used amount.
Utilization
Usage percentage.
Statistical Cycle
Daily / Weekly / Monthly.
Enabling Status
Enabled / Not enabled.
Creation/Modification Time
Creation/Last Modified Time.
Operation
Edit, delete.
3. Click Create Quota Rule to manually create a quota rule for a specific consumer.

Parameter Description

Auto-Created Quota Rule Attributes

Attribute
Value
Description
Consumer
Newly created consumer
Bound to the newly created consumer.
Quota type
Global policy configuration
Inherits the quota type from the default quota policy.
Statistical Cycle
Global policy configuration
Inherits the statistics cycle from the default quota policy.
Quota Limit
Global policy configuration
Inherits the quota limit from the default quota policy.
Enabling Status
Enabled
Automatically created quota rules are enabled by default.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback