Moving an Inventory Asset
Move an inventory asset from one compartment to another.
- Open the navigation menu and select Migration & Disaster Recovery. Under Cloud Migrations, select Inventory, and then select Inventory assets.
- On the Inventory assets page, select the name of the asset that you want to move.
- On the Asset details page, click Move resource.
- In the Move resource dialog box, select the destination compartment and click Move resource.
To move an inventory asset from one compartment to another, use the
change-compartment
command.oci cloud-bridge inventory asset change-compartment --asset-id ASSET_ID --compartment-id COMPARTMENT_ID [OPTIONS]
The required parameter for the
change-compartment
command is:--asset-id
: Specifies a unique asset identifier.--compartment-id
: Specifies the compartment OCID into which the resource should be moved.To get all the commands for inventory asset, run:
oci cloud-bridge inventory asset -h
To get help for the
change-compartment
command, run:oci cloud-bridge inventory asset change-compartment -h
To move an inventory asset from one compartment to other use ChangeAssetCompartment operation.