Alibaba Cloud allows you to view and manage quotas of your Alibaba Cloud services. You can obtain usage information, apply for increases on quotas, and create alert rules for quotas. This topic describes the prerequisites and procedures for managing service quotas.
Background information
Quota Center allows you to manage the quotas of various Alibaba Cloud services in a centralized manner. NAT Gateway and many other Alibaba Cloud services work with Quota Center. If you are using multiple Alibaba Cloud services and want to manage the quotas of all your cloud services in one console, you can use Quota Center.
Alternatively, you can individually manage VPN Gateway quotas by using the quota management feature provided in the VPC console console.
Prerequisites
By default, only the Alibaba Cloud account is authorized to manage quotas in Quota Center. If you want to allow RAM users to manage quotas, you must first grant the RAM user the AliyunQuotasFullAccess permission. For more information, see Authorize a RAM user.
View quotas
You can view the quotas of NAT Gateway by using one of the following methods:
Log on to the VPC console. On the Quota Management page, set query conditions as prompted. The quota items and the usage of each item are displayed.
Procedure (Quota Center) For more information, see Query the details of quotas supported by a cloud service.
View quotas in the VPC console.
Procedure (Quota Center)
Log on to the Quota Center console.
In the left-side navigation pane, select a quota type in the Products section.
View general quotas
In the left-side navigation pane, choose
.On the Products with General Quotas page, click NAT Gateway in the Networking section.
On the General Quotas page, you can view the name, description, and usage of each quota.
View API rate limits
In the left-side navigation pane, choose
.On the Products with API Rate Limits page, click NAT Gateway in the Networking section.
On the API Rate Limits page, you can filter information about API versions and quota usage by Keyword and Region.
Procedure (VPC console)
Log on to the VPC console.
In the left-side navigation pane, choose .
On the Quota Management page, click the NAT Gateway tab in the Service section. You can select a quota type based on the following information.
View general quotas
Click the General Quota tab in the Quota Type section.
You can use keywords to search for quotas. Then, you can view the name, description, and usage of the quota.
View API rate limits
In the Quota Type section, select API Rate Limit.
You can use keywords and select a region to search for quotas. Then, you can view the version and rate limit of the API operation.
Adjust quotas
Most of the quotas provided are adjustable. If the default quota is unable to meet your business requirements, you can apply for a quota increase by using one of the following methods:
Use the Quota Center console. For more information, see Request a quota increase.
Use the VPC console.
If the application is successful, the increased quota limit will be displayed in the Quota Center console and the service console.
Procedure (Quota Center console)
Log on to the Quota Center console.
Adjust a quota based on the following information.
In the left-side navigation pane, choose
.On the Products with General Quotas page, click NAT Gateway in the Networking section.
On the General Quotas page, find the quota that you want to adjust and click Apply in the Actions column.
In the Apply for Quotas dialog box, configure the Applied Quotas and Reason parameters, and click OK.
NoteApplications are reviewed by the technical support team of the corresponding cloud service. When you apply for a quota increase, provide as much information as possible. The more justification provided, the more likely your application will be approved.
Application results are sent to you by text message and email.
The application is usually processed within days.
After you apply for a quota increase, you can click Application Records in the left-side navigation pane to view the status of the application.
If the application is in the Approved state, the quota is adjusted.
Procedure (VPC console)
Log on to the VPC console.
In the left-side navigation pane, choose .
On the Quota Management page, click the NAT Gateway tab in the Service section. Adjust a quota based on the following information.
Click the General Quota tab in the Quota Type section.
Find the general quota that you want to increase and click Apply in the Actions column.
In the Apply for Quotas dialog box, configure the Applied Quotas and Reason parameters, and click OK.
NoteApplications are reviewed by the technical support team of the corresponding cloud service. When you apply for a quota increase, provide as much information as possible. The more justification provided, the more likely your application will be approved.
Application results are sent to you by text message and email.
The application is usually processed within days.
To view the status of the application, click Application Records or choose
in the Actions column.If an application is in the Approved state, the related quota is increased.
Create an alert rule for a quota item
You can create alert rules for some quota items by specifying a threshold for quota usage or available quota. If the usage of a quota reaches the specified threshold, the system sends an alert notification to the callback URL that you specified in the alert rule through an HTTP POST request. We recommend that you take the alerts into consideration and apply for a quota increase in advance to avoid unexpected business interruptions.
You can create alert rules for the following quota items:
Quota | Description |
natgw_quota_nat_num_per_vpc | Maximum number of NAT gateways that can be created in each VPC |
natgw_quota_eip_num_per_nat | Maximum number of EIPs that can be associated with each NAT gateway |
natgw_quota_dnat_entry_num | Maximum number of DNAT entries supported by each NAT gateway |
natgw_quota_snat_entry_num | Maximum number of SNAT entries supported by each NAT gateway |
Procedure (Quota Center)
Log on to the Quota Center console.
In the left-side navigation pane, click Quota Alerts.
On the Quota Alerts page, click Create Quota Alert Rule.
On the Products with General Quotas page, choose , find the quota, and then click Create Alert Rule in the Actions column.
In the Create Quota Alert Rule panel, configure the parameters and click OK.
Parameter
Description
Alarm Rule Name
The name of the alert rule.
Alarm Metric
The metric used by the alert rule. You can select Used Quotas, Percentage of Used Quotas, Available Quotas, or Percentage of Available Quotas.
Threshold
The alert threshold. Configure this parameter based on the Alarm Metric parameter.
When the Alarm Metric parameter is set to Used Quotas, alert notifications are sent to the current Alibaba Cloud account if the quota usage of the specified quota item reaches or exceeds the threshold.
When the Alarm Metric parameter is set to Percentage of Used Quotas, alert notifications are sent to the current Alibaba Cloud account if the quota usage of the specified quota item in percentage reaches or exceeds the threshold. Valid values: [50%,100%].
When the Alarm Metric parameter is set to Available Quotas, alert notifications are sent to the current Alibaba Cloud account if the remaining quota of the specified quota item is less than or equal to the threshold.
When the Alarm Metric parameter is set to Percentage of Available Quotas, alert notifications are sent to the current Alibaba Cloud account if the percentage of the remaining quota of the specified quota item is less than or equal to the threshold. Valid values: (0%,50%].
Alarm Callback
The webhook URL to which Quota Center sends an alert notification by using an HTTP POST request.
For more information about the examples of alert callback requests and parameters in an alert callback request, see What is the request content of an alert callback?
NoteBy default, Quota Center sends an alert notification about 15 minutes after the specified alert threshold is reached.
If your alert callbacks are integrated with the webhook of a DingTalk chatbot, you must set the custom keyword of the DingTalk chatbot to Alert and then copy the webhook URL as the URL to receive alert callbacks.
In the left-side navigation pane, click Quota Alerts. On the Quota Alerts page, view the details about the alert rule.
Optional. View the alert callback results.
If you set the Alert Callback parameter, you can view the related alert callback records and applications after the alert callback succeeds. Applications are automatically submitted to increase the related quota.
In the left-side navigation pane, click Alert History. On the Alert History page, view the alert callback records.
If Alert Callback is displayed in the Notification Methods column of a record, the alert callback is successful.
In the left-side navigation pane, click Application Records. On the Application Records page, view the applications that were automatically submitted to increase quotas.
Procedure (VPC console)
Log on to the VPC console.
In the left-side navigation pane, choose .
On the Quota Management page, click the NAT Gateway tab in the Service section.
Click the General Quota tab in the Quota Type section.
Find the quota and click Create Alert Rule in the Actions column.
In the Create Quota Alert Rule panel, configure the parameters and click OK.
Parameter
Description
Alarm Rule Name
The name of the alert rule.
Alarm Metric
The metric used by the alert rule. You can select Used Quotas, Percentage of Used Quotas, Available Quotas, or Percentage of Available Quotas.
Threshold
The alert threshold. Configure this parameter based on the Alarm Metric parameter.
When the Alarm Metric parameter is set to Used Quotas, alert notifications are sent to the current Alibaba Cloud account if the quota usage of the specified quota item reaches or exceeds the threshold.
When the Alarm Metric parameter is set to Percentage of Used Quotas, alert notifications are sent to the current Alibaba Cloud account if the quota usage of the specified quota item in percentage reaches or exceeds the threshold. Valid values: [50%,100%].
When the Alarm Metric parameter is set to Available Quotas, alert notifications are sent to the current Alibaba Cloud account if the remaining quota of the specified quota item is less than or equal to the threshold.
When the Alarm Metric parameter is set to Percentage of Available Quotas, alert notifications are sent to the current Alibaba Cloud account if the percentage of the remaining quota of the specified quota item is less than or equal to the threshold. Valid values: (0%,50%].
Alarm Callback
The webhook URL to which Quota Center sends an alert notification by using an HTTP POST request.
For more information about the examples of alert callback requests and parameters in an alert callback request, see What is the request content of an alert callback?
NoteBy default, Quota Center sends an alert notification about 15 minutes after the specified alert threshold is reached.
If your alert callbacks are integrated with the webhook of a DingTalk chatbot, you must set the custom keyword of the DingTalk chatbot to Alert and then copy the webhook URL as the URL to receive alert callbacks.
After you create an alert rule, you can choose in the Actions column of the quota.
In the Alerts dialog box, you can view, modify, or delete the quota alerts in the Actions column.
Create a quota template
If a quota template is enabled and the management account adds a member to the resource directory, the quota template automatically submits a quota increase request for the member. The quota values for existing members remain unchanged. You can use a quota template to apply for increases on multiple quotas at a time. This automated approach can improve the efficiency of quota management across your organization.
Prerequisites:
An enterprise management account is used.
A resource directory is enabled. For more information, see Enable a resource directory.
Enable a quota template
Log on to the Quota Center console.
In the left-side navigation pane, click Quota Templates. On the Quota Templates page, click Enable Quota Template.
In the Enable Quota Template message, click OK.
Procedure (Quota Center)
Before you add a quota to a quota template in Quota Center, make sure that the quota template is enabled. For more information, see Enable a quota template.
Log on to the Quota Center console.
In the left-side navigation pane, choose .
On the Products with General Quotas page, click NAT Gateway.
On the General Quotas page, find the quota that you want to manage and click Create Quota Template in the Actions column.
In the Create Quota Template dialog box, configure the Applied Quotas parameter and click OK.
Procedure (VPC console)
Before you add a quota to a quota template in the VPC console, make sure that the quota template is enabled. For more information, see Enable the quota template feature.
Log on to the VPC console.
In the left-side navigation pane, choose .
On the Quota Management page, click the NAT Gateway tab in the Service section.
Click the General Quota tab in the Quota Type section.
Find the quota and click Create Quota Template in the Actions column.
In the Create Quota Template dialog box, configure the Applied Quotas parameter and click OK.