capabilities.work

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.

  1. Confirm the instance exists before issuing lifecycle actions.
  2. Issue a STOP action to gracefully power down the instance.
  3. Poll the instance until it reports the STOPPED lifecycle state.
  4. 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.