Editing a Dynamic Set
Change the name or description, compartments, or matching rule conditions of a dynamic set in OS Management Hub.
Navigate
- Navigate to the Dynamic sets list page.
- Select the name of the dynamic set.
Edit name or description
From the main buttons, select Edit.
- Name: Enter a name for the dynamic set. You change the name at any time. The name doesn't need to be unique, because an Oracle Cloud Identifier (OCID) uniquely identifies the set. Avoid entering confidential information.
- Description: (Optional) Enter a description for the dynamic set. Avoid entering confidential information.
Select Update.
Edit compartments included in the dynamic set
- Select the Matching rule tab.
- Select Manage compartments.
- To modify a compartment, select the compartment and enable or disable Include child compartments.
- To add a compartment, select Add compartment.
- To remove a compartment, select the X next to the compartment.
- Select Update.
Manage conditions
In the Matching rule tab, select Manage conditions.Option 1: Define specific conditions
Select how the conditions are matched:
- Match any conditions: Includes instances that match at least one of the rule conditions. Use this to define a set with a broad scope, as it acts like a logical OR (such as Condition 1 OR Condition 2 OR Condition 3).
- Match all conditions: Includes instances that meet all the defined conditions. Use this to define a set with a narrow scope, defining a set with a narrow scope, as it acts like a logical AND (such as Condition 1 AND Condition 2 AND Condition 3).
Select the conditions. Define a minimum of one condition.
-
Tags: Includes instances based on a specific tag. For OCI instances, this is the tag on the Compute instance. For on-premises or third-party cloud instances, this is the tag on the Management Agent resource.
- For OCI instances, this evaluates the tag on the Compute instance.
- For on-premises or third-party cloud instances, this evaluates the tag on the Management Agent resource.
- OS version: Includes instances running the specified OS version.
- Architecture: Includes instances with the specified hardware architecture.
- Location: Includes instances in the specified location.
- Status: Includes instances that are in the specified operational state.
- Group: Includes instances that are members of the specified group.
- Reboot status: Includes instances that are in the specified reboot state.
- Instance name: Includes instances
that have the specified name.
- The name must match exactly for the instance to be included. Wildcards aren't allowed.
Option 2: Include all instances in compartment
Select this option to include all instances in the selected compartments. No specific conditions are defined, but all instances in the compartment are included in the dynamic set.
Use the oci os-management-hub dynamic-set dynamic-set update command and required parameters to update the details for a dynamic set.
oci os-management-hub dynamic-set dynamic-set update --dynamic-set-id ocid [OPTIONS]For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the UpdateDynamicSet operation to update the details for a dynamic set.