Moving an Asset Source Between Compartments

Move an asset source from one compartment to another within the same region.

    1. Open the navigation menu and click Migration & Disaster Recovery. Under Cloud Migrations, click Discovery.
    2. On the Asset sources page, select the asset source that you want to move.
    3. On the Asset source details page, from More actions, select Move resource.
    4. In the Move resource dialog box, select the compartment to which you want to move the asset source and click Move resource.
    The asset source is moved to the new compartment.
  • To move an asset source to another compartment, use the change-compartment command.

    
    oci cloud-bridge discovery asset-source change-compartment --asset-source-id asset_source_ID --compartment-id target_compartment_ID [OPTIONS]
    The required parameters for the change-compartment command are:
    • --assets-source-id: Specifies the OCID of the asset source.

    • --compartment-id: Specifies the OCID of the compartment into which you move the asset source.

    To get all the commands for discovery asset-source, run:

    oci cloud-bridge discovery asset-source -h

    To get help for the change-compartment command, run:

    oci cloud-bridge discovery asset-source change-compartment -h

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • To move an asset source to another compartment, use the ChangeAssetSourceCompartment operation.