Find Image And Launch Instance
A 3-step recipe with Oracle Cloud Infrastructure. We can help you get access.
Recipe · 3 steps
Find Image And Launch Instance
Discover a shape and image, then launch a compute instance using them.
- List the compute shapes available in the compartment.
- List images in the compartment filtered by operating system, taking the first match as the boot image.
- Launch a new instance referencing the discovered shape and image in the requested subnet and availability domain.
What you'll need to have ready
- compartmentId: The OCID of the compartment to search and launch into.
- availabilityDomain: The availability domain for the new instance.
- operatingSystem: Operating system filter for the image search (e.g. Oracle Linux).
- subnetId: The OCID of the subnet for the primary VNIC.
- displayName: A user-friendly name for the new instance.
For your developer
Arazzo workflow oracle-cloud:find-image-and-launch-instance, 3 operations: listShapes → listImages → launchInstance. Specs on APIs.io.