Moving a Subnet Between Compartments
Move a subnet in a Virtual Cloud Network (VCN) to a different compartment.
For more information, see Working with Compartments.
Use the network subnet change-compartment command and required parameters to move a subnet from one compartment to another:
oci network subnet change-compartment --compartment-id destination-compartment-ocid--subnet-id ocid ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ChangeSubnetCompartment operation to move a subnet from one compartment to another.