Moving Resources
Move found resources in bulk rather than individually.
- These steps assume that you already have resource results. You got resource results by doing one of the following:
- You accessed a resource collection from the home page or according to the instructions in Getting a Resource Collection's Details.
- You performed a free text search and selected the Resources category of results according to the instructions in Performing a Free Text Search
- You ran an advanced resource query according to the instructions in Running a Custom, Free-Form Query.
- (Optional) To further refine the list of resources for which you want to perform bulk actions, select the checkbox next to the resource name in the list of resource results.
-
Do one of the following:
- To move all resources in the list of results, select the checkbox in the table header in the leftmost column. Repeat this for any remaining pages of results. (You can navigate to the next page of results by clicking the lower right arrow at the bottom of the table.)
- To move only some resources in the list of results, select the checkbox in the leftmost column next to the display name of each result you want to move.
- Click Actions.
- Click Move resources.
- Select a destination compartment from the list, and then click Next.
- If any resources that you selected can't be moved as part of a bulk action, the Console displays them and the reasons why. Review the list, and then click Next.
- Review the list of resources that can be moved, and then click Move resources.
- To confirm, click Continue.
- Click Close.
Use the bulk-move-resources command and required parameters to move resources in bulk:
oci iam compartment bulk-move-resources --compartment-id <compartment_OCID> --resources <resources_to_move_in_JSON_format>
For example:oci iam compartment bulk-move-resources --compartment-id ocid1.compartment.oc1..<unique_id> --resources file://path/to/resourcestomove.json
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the BulkMoveResources operation to move resources in bulk.