Moving a VCN Route Table to a Different Compartment

Move a Virtual Cloud Network (VCN) route table to a different compartment.

For an overview of routing in a VCN and subnets, see VCN Route Tables.
    1. On the Virtual Cloud Networks list page, select the VCN that contains the route table you want to work with. If you need help finding the list page or the VCN, see Listing VCNs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • Select the Routing tab.
      • Under Resources, select Route Tables.
    3. From the Actions menu Actions Menu for the route table, select Move Resource.
    4. In the Move resource panel, select the destination compartment from the list.
    5. Select Move resource.
  • Use the network route-table change-compartment command and required parameters to move a VCN route table to a different compartment:

    oci network route-table change-compartment --compartment-id destination-ocid  --rt-id routetable-ocid ... [OPTIONS]

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

  • Run the ChangeRouteTableCompartment operation to move a VCN route table to a different compartment.