PolarDB for MySQL supports global IP whitelists. You can customize an IP whitelist template and then associate a cluster with the IP whitelist template. You need to configure only one set of IP whitelist templates for all associated clusters. This simplifies the process of IP whitelist configuration. This topic describes how to configure a global IP whitelist template.

Precautions

  • A cluster can only be associated with IP whitelist templates in the same region.
  • Before you delete an IP whitelist template, you must disassociate it from all associated clusters.
  • One IP whitelist template supports up to 1000 IP addresses.
  • One cluster can be associated with multiple IP whitelist templates.
  • One IP whitelist template can be associated with multiple clusters.

Create an IP whitelist template

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. In the left-side navigation pane, click IP Whitelist Templates.
  4. In the upper-left corner of the page, click Create IP Whitelist Template.
  5. In the Create IP Whitelist Template dialog box, set IP Whitelist Template Name and IP Addresses in Whitelist.
    Create an IP whitelist template
  6. Click OK.

Modify an IP whitelist template

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. In the left-side navigation pane, click IP Whitelist Templates.
  4. On the IP Whitelist Templates page, find the IP whitelist template to be modifed and click Modify in the Actions column.
  5. In the Modify IP Whitelist Template panel, add IP addresses to or delete IP addresses from the whitelist, and then click OK.
  6. In the message that appears, click OK.

Delete an IP whitelist template

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. In the left-side navigation pane, click IP Whitelist Templates.
  4. On the IP Whitelist Templates page, find the IP whitelist template to be deleted and click Delete in the Actions column.
  5. In the message that appears, click Delete.

Associate an IP whitelist template

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. Find the cluster and click the cluster ID.
  4. In the left-side navigation pane, choose Settings and Management > Whitelists.
  5. On the Whitelists page, click Associate IP Whitelist Template.
  6. In the Associate IP Whitelist Template panel, select the IP whitelist template to be associated from the drop-down list and click OK.

Disassociate an IP whitelist template

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. Find the cluster and click the cluster ID.
  4. In the left-side navigation pane, choose Settings and Management > Whitelists.
  5. On the Whitelists page, find the IP whitelist template to be disassociated and click Disassociate.
  6. In the message that appears, click OK.