Moving a Network Load Balancer Between Compartments

Move a network load balancer to a different compartment in your Oracle Cloud Infrastructure tenancy.

See Managing Compartments for information about compartments and access control.

    1. Open the navigation menu, click Networking, and then click Load balancers. Click Network load balancer. The Network load balancers page appears.
    2. Select the Compartment from the list. All network load balancers in that compartment are listed in tabular form.
    3. Select a State from the list to limit the network load balancers displayed to that state.
    4. Select the network load balancer that you want to move to a different compartment. The network load balancer's Details page appears.
    5. Click Move resource. You can also click the Actions menu (Actions Menu) for the network load balancer you want to delete and select Move resource. The Move resource to a different compartment dialog box appears.
    6. Select the compartment to which you want to move your network load balancer from the Choose new compartment list.
    7. Click Move resource.
    The network load balancer now resides in the updated compartment.
  • Use the oci network-load-balancer nlb change-compartment command and required parameters to move a network load balancer between compartments:

    oci nlb network-load-balancer change-compartment --compartment-id compartment_ocid --network-load-balancer-id network-load-balancer_ocid [OPTIONS]

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

  • Run the ChangeNetworkLoadBalancerCompartment operation to move a network load balancer to a different compartment.