Moving a Network Load Balancer to a Different Compartment

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

    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. To view the network load balancers in a different compartment, use the Compartment filter to switch compartments.

      You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.

    3. From the Actions menu for the network load balancer, select Move resource.
    4. In the Move resource panel, select the destination compartment from the list.
    5. Select Move resource.
  • 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.