Stop And Terminate Instance
A 4-step recipe with Oracle Cloud Infrastructure. We can help you get access.
Recipe · 4 steps
Stop And Terminate Instance
Stop a running instance, wait for STOPPED, then terminate it.
- Confirm the instance exists before issuing lifecycle actions.
- Issue a STOP action to gracefully power down the instance.
- Poll the instance until it reports the STOPPED lifecycle state.
- Terminate the stopped instance, preserving the boot volume.
What you'll need to have ready
- instanceId: The OCID of the instance to stop and terminate.
- preserveBootVolume: Whether to preserve the boot volume on termination.
For your developer
Arazzo workflow oracle-cloud:stop-and-terminate-instance, 4 operations: getInstance → instanceAction → getInstance → terminateInstance. Specs on APIs.io.