Oracle · Arazzo Workflow
Oracle OCI Terminate Compute Instance Safely
Version 1.0.0
Read an instance and its volume attachments, then terminate it while preserving the boot volume.
Provider
Workflows
terminate-instance-safely
Terminate a compute instance while preserving its boot volume.
Reads the instance, enumerates its volume attachments for the record, then terminates the instance with preserveBootVolume set to true.
1
readInstance
getInstance
Read the instance to confirm it exists and capture its ETag for optimistic concurrency control on the terminate call.
2
listVolumes
listVolumeAttachments
List the volume attachments in the compartment filtered to this instance so the attached block volumes are recorded before termination.
3
terminateInstance
terminateInstance
Terminate the instance, preserving the boot volume, guarded by the ETag captured when reading the instance.