Adding Resources to a Fleet Dynamically

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

If you add resources dynamically to a fleet, be sure to rescan resources. See Rescanning the Resources in a Fleet.
Note

After you add resources, Fleet Application Management plugin is enabled, and the resources become managed resources.
    1. On the Fleets list page, select the fleet that you want to work with. If you need help finding the list page or the fleet, see Listing Fleets.
    2. Select the Managed resources tab.
    3. Under Managed resources, select Edit rules.
      You can edit rules only when the resource selection type is dynamic.
    4. In the Matching rules panel, 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.
        • Select a compartment that contains the resources that you want to use for the fleet.
        • 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, select Add line and enter the values.
        • To add more rules, select Add rule.
      • Rules based on: Under Rule 2, select a rule based on tags.

        In the Tags section, add one or more tags to the fleet. If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.

    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. Select View resources.
    8. In the View Resources dialog box, verify the resources that are added based on the matching rules and then select Close.
    9. Select 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 --fleet-id <fleet_OCID> --fleet-resource-id <fleet_resource_OCID> [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.