Loading...

Creating Instance Filters for Google Cloud Platform

From the VM group content dialog box, you can create filters to exclude instances from backups.

Before You Begin

To select instances based on views or automatic discovery rules, see "Views and Rule Options" (below).

Procedure

  1. From the navigation pane, go to Protect > Virtualization.

    The Virtual machines page appears.

  2. On the Hypervisors tab, click the hypervisor.

    The hypervisor page appears. The VM groups area displays summary information for any existing VM groups.

  3. Click an existing VM group.
  4. Under Content, click Manage.

    The VM group content dialog box appears.

    The Filters tab shows content to be excluded from backups.

  5. On the Filters tab, to remove a filter, click action_button in the Actions column of the row for the filter and select Remove.
  6. To add filters by browsing, click Add virtual machines.
  7. In the Add virtual machines page, select a browse method for the Browse and select instances list, and then expand the tree below the list to select content for the VM group, or to clear previous selections.

    You can select a view to control the browse display.

  8. Click OK after selecting VMs or other objects.
  9. To exclude virtual machines based on different criteria:
    1. Click Add filter rule and then provide information for the rule:
    2. From the Select rule for list, choose one of the following:
    3. From the Which matches with list, choose Equals, Contains, Starts with, or Ends with.
    4. In the Name box, provide a value as required for the type of rule.
    5. Click OK.
  10. To edit a rule, click action_button in the Actions column of the row for the VM and select Edit rule.
  11. Click OK to save the changes to VM group content.

Views and Rule Options

When you define content or filters for a VM group, you can change the view and select specific entities, or define rules to automatically select instances that meet specific criteria.

Views

When you browse to select instances for VM group content or filters, you can select a browse method from the Browse and select VMs list, and then expand the tree below the list to select instances for the VM group, or to clear previous selections.

You can select one of the following options from the list to control the browse display:

  • Project: Select an instance within a project.
  • Region: Select an instance within a region and project.
  • Zone: Select an instance within a zone and project.

Rules

You can define rules to discover instances automatically.

When you add a rule, from the Select rule for list, you can choose one of the following rules and then, from the Which matches with list, select Equals, Contains, Starts with, or Ends with:

  • Instance name/pattern: In the Name box, type the display name of the instance or a pattern using wildcards (for example, Test* to identify instances for which the instance name begins with "Test").

    Label: In the Key box, choose Equals, Starts with, Contains or Ends With, and then type the key or a pattern using wildcards (for example, 123* to identify keys for which the key name starts with "123"). In the Value box, choose Equals, Starts with, Contains or Ends With, and then type the value or a pattern using wildcards (for example, 123* to identify values for which the value name starts with "123").

  • Project: In the Name box, type the name of the project or a pattern using wildcards (for example, us-east* to identify projects for which the project name begins with "us-east"). When you add a project, all instances in the project are excluded from backups.
  • Zone: In the Name box, type the name of the zone or a pattern using wildcards (for example, us-east* to identify zones for which the zone name begins with "us-east"). When you add a zone, all instances in the zone are excluded from backups.

Last modified: 5/21/2021 4:19:05 PM