Moving a Load Balancer Between Compartments
Move a load balancer to a different compartment in your Oracle Cloud Infrastructure tenancy.
See Managing Compartments for information about compartments and access control.
- Open the navigation menu, click Networking, and then click Load balancers. Click Load balancer. The Load balancers page appears.
- Select the Compartment from the list. All load balancers in that compartment are listed in tabular form.
- Select a State from the list to limit the load balancers displayed to that state.
- Click the load balancer that you want to move to a different compartment. The load balancer's Details page appears.
- Click Move resource. The Move resource dialog box appears.
- Select the destination compartment from the list.
- Click Move resource.
Use the oci lb load-balancer change-compartment command and required parameters to move a load balancer between compartments:
oci lb load-balancer change-compartment --compartment-id compartment_id [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ChangeLoadBalancerCompartment operation to move a load balancer between compartments.