Moving an IPSec Connection Between Compartments
You can move an IPSec connection from one compartment to another.
When you move an IPSec connection, its associated IPSec tunnels move with it to the new compartment. This changes the management of the resources with no changes to the routing of the traffic.
The IPSec connection is moved immediately. Resources attached to the IPSec connection are moved asynchronously and don't appear in the new compartment until the move is complete.
If any alarms are monitoring the connection, update the alarms to reference the new compartment. See Updating an Alarm After Moving a Resource for more information.
- On the Site-to-Site VPN list page, find the IPSec connection that you want to move. If you need help finding the list page or the IPSec connection, see Listing IPSec Connections.
- From the for the IPSec connection, select Move Resource.
- In the Move resource panel, select the destination compartment from the list.
- Select Move resource.
- If alarms monitor the IPSec connection, update the alarms to reference the new compartment. See Updating an Alarm After Moving a Resource.
Use the network ip-sec-connection change-compartment command and required parameters to move an IPSec connection from one compartment to another:
oci network ip-sec-connection change-compartment --ipsc-id ipsec-ocid --compartment-id target-compartment-ocid ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ChangeIPSecConnectionCompartment operation to move an IPSec connection from one compartment to another.