All Products
Search
Document Center

ApsaraDB RDS:Use whitelist template

Last Updated:Mar 28, 2026

A whitelist template lets you define a set of IP addresses once and apply them to multiple ApsaraDB RDS for MySQL instances simultaneously. When you modify the template, the change propagates to all associated instances within about 1 minute — no per-instance updates required.

Limits

ConstraintValue
Maximum IP addresses per RDS instance (directly added + from templates)1,000
Maximum RDS instances a template can be associated with500
Maximum instances associatable in a single Modify operation20

An IP address entry can be a single IP address or a CIDR block.

Behavior and risks

  • Propagation delay: Changes to a template take effect on associated instances within about 1 minute.

  • Blast radius: Modifying a template affects all associated instances. Review the associated instance list before making changes.

  • Deletion impact: Deleting a template removes its IP addresses from all associated instances and disconnects clients using those addresses. If the template is associated with only a few instances, disassociate it from each instance before deleting it.

Billing

This feature is free of charge.

Prerequisites

Before you begin, ensure that you have:

Configure a whitelist template

Use this workflow when you need to create and centrally manage an IP whitelist — for example, to grant a set of application servers access to 10 or more RDS instances without configuring each instance individually.

Create a whitelist template

  1. Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Whitelist Template.

  2. Click Create Whitelist Template.

  3. In the panel that appears, enter a template name and the IP addresses to include. Click OK.

Template names must be unique within the same account. After a template is created, its name cannot be modified.

Special IP address behavior:

EntryEffect
0.0.0.0/0Allows all IP addresses to access associated instances over the Internet. Use only for temporary testing, then restrict the entry immediately.
127.0.0.1 (alone)Blocks all IP addresses from accessing associated instances.
127.0.0.1 combined with other addressesThe 127.0.0.1 entry is ignored; the other addresses apply.

The IP addresses in the template take effect within 1 minute.

Modify a whitelist template

Important

Modifying a template affects all instances associated with it. Review the list of associated instances before making changes.

  1. Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Whitelist Template.

  2. Find the template and click Modify in the Actions column.

  3. In the panel that appears, make the following changes as needed, then click OK: Associate or disassociate instances: In the left-side All Instances section, search for or select instances. Click image to move selected instances to Selected Instances, or click image to remove instances you want to disassociate. Update IP addresses: Add or modify IP addresses based on your requirements. Changes apply to all associated instances.

    You can associate up to 20 instances at a time in this panel.

Delete a whitelist template

Important

Deleting a template removes its IP addresses from all associated instances. Connections from those addresses are disconnected.

  1. Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Whitelist Template.

  2. Find the template and click Delete in the Actions column.

  3. In the dialog box that appears, click OK.

Associate a whitelist template with an instance

Use this workflow to link an existing whitelist template to a specific RDS instance, or to remove a template from an instance.

Associate a template

  1. Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the upper part of the page, select a region.

  2. Click the ID of the target instance. In the left-side navigation pane, click Whitelist and SecGroup.

  3. Click the Whitelist Template tab, then click Associate Whitelist Template.

  4. In the panel that appears, select the template and click OK.

After the association completes, the template's IP addresses appear on the Whitelist Settings tab.

Disassociate a template

  1. On the Whitelist Template tab of the target instance, find the template.

  2. Click Unassociate in the Actions column, then click OK in the confirmation message.

Troubleshooting

Changes are not reflected after modification

Template changes take up to 1 minute to propagate to associated instances. If the change has not taken effect after 1 minute, verify that the template is associated with the correct instances by checking the Whitelist Template tab on each instance.

IP address limit exceeded

The total number of IP addresses on an RDS instance — including those from all associated templates and directly added entries — cannot exceed 1,000. To stay within the limit, remove unused entries or consolidate overlapping CIDR blocks before adding new addresses.

What's next

API reference

OperationDescriptionKey parameters
ModifyWhitelistTemplateCreates, modifies, or deletes a whitelist templateCreate: IpWhitelist, TemplateName; Modify: IpWhitelist, TemplateId; Delete: IpWhitelist (empty string), TemplateId
DescribeWhitelistTemplateQueries a specific whitelist templateTemplateId
DescribeAllWhitelistTemplateLists or searches whitelist templatesTemplateName (set to the template ID or a keyword in the template name), FuzzySearch, MaxRecordsPerPage, PageNumbers
AttachWhitelistTemplateToInstanceAssociates a template with an instanceTemplateId, InsName
DetachWhitelistTemplateToInstanceDisassociates a template from an instanceTemplateId, InsName
DescribeWhitelistTemplateLinkedInstanceLists instances associated with a templateTemplateId
DescribeInstanceLinkedWhitelistTemplateLists templates associated with an instanceInsName