Adding Resources to a Fleet Dynamically

When you want to dynamically add resources to a generic-type fleet in Fleet Application Management, update the rules that define the resources of the fleet.

Note

If you add resources dynamically to a generic-type fleet, be sure to rescan resources. See Rescanning the Resources in a Fleet.
    1. Open the navigation menu and click Observability & Management. Under Fleet Application Management, click Fleets.
    2. Click the name of the fleet that you want.
      Tip

      To find a fleet by name, enter its name in the Search field.
    3. Under Resources, click Edit rules.
    4. In the Matching rules dialog box, select one of the following options from the Include resources that match list.
      • All of the following: To include resources based on all rules, select this option and skip to step 5.
      • Any of the following: To include resources based on matching one rule, select this option and skip to step 6.
    5. If you selected All of the following in step 4, add rules that are based on resource properties and tags. Enter values in the following fields:
      • Rules based on: Under Rule 1, select a rule based on the resource property.
        • To add a resource type, attribute, and value based on the resource property, select values for Type and Property name, and then enter a value for the property. For more information about the Compute resource type and Database resource type, see Creating an Instance and Database Management for Oracle Databases.
        • To add more properties based on rule 1, click + Another property and enter the values.
        • To add more rules, click Another rule.
      • Rules based on: Under Rule 2, select a rule based on tags.
        • To add a defined tag, select values for Tag namespace and Tag key, and then enter a value for Tag value. For Tagging information, see Overview of Tagging.
        • To add more tags based on rule 2, click + Another tag and enter the values.
    6. If you selected Any of the following in step 4, add rules that are based on resource properties or tags. See step 5 for field descriptions.
    7. Click View resources.
    8. In the View Resources dialog box, verify the resources that are added based on the matching rules and then click Close.
    9. Click Save changes.
  • Use the oci fleet-apps-management fleet-resource update command and required parameters to update resources of a fleet:

    oci fleet-apps-management fleet-resource update [OPTIONS]

    For a complete list of flags and variable options for Fleet Application Management CLI commands, see the CLI for Fleet Application Management.

  • Run the UpdateFleetResource operation to update resources of a fleet.