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. On the Network load balancers list page, find the network load balancer that you want to work with. If you need help finding the list page or the network load balancer, see Listing Network Load Balancers.
    2. From the Actions menu for the network load balancer, select Move resource.
    3. In the Move resource panel, select the destination compartment from the list.
    4. Select 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 parameters and values for CLI commands, see the CLI Command Reference.

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