Moving an Asset Source Between Compartments
Move an asset source from one compartment to another within the same region.
- Open the navigation menu and click Migration & Disaster Recovery. Under Cloud Migrations, click Discovery.
- On the Asset sources page, select the asset source that you want to move.
- On the Asset source details page, from More actions, select Move resource.
- 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 thechange-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 CLI Command Reference.
-
To move an asset source to another compartment, use the
ChangeAssetSourceCompartment
operation.