Launch Instance With Attached Volume
A 3-step recipe with Oracle Cloud Infrastructure. We can help you get access.
Recipe · 3 steps
Launch Instance With Attached Volume
Launch a compute instance, wait for RUNNING, then attach a block volume.
- Launch a new compute instance in the requested compartment and availability domain.
- Retrieve the instance and confirm it has reached the RUNNING lifecycle state before attaching storage.
- Attach the supplied block volume to the now-running instance using a paravirtualized attachment.
What you'll need to have ready
- compartmentId: The OCID of the compartment to launch the instance into.
- availabilityDomain: The availability domain (e.g. Uocm:US-ASHBURN-AD-1).
- shape: The compute shape (e.g. VM.Standard.E4.Flex).
- displayName: A user-friendly name for the instance.
- imageId: The OCID of the image to boot from.
- subnetId: The OCID of the subnet to place the primary VNIC in.
- volumeId: The OCID of the block volume to attach once running.
For your developer
Arazzo workflow oracle-cloud:launch-instance-with-volume, 3 operations: launchInstance → getInstance → attachVolume. Specs on APIs.io.