OCI Provision Image-Compatible Instance
A 4-step recipe with Oracle. We can help you get access.
Recipe · 4 steps
OCI Provision Image-Compatible Instance
with Oracle · IT Infrastructure Management
Launch an instance using a shape that is compatible with the chosen image.
- List images in the compartment filtered by operating system and available lifecycle state, selecting the first match as the base image.
- List shapes in the compartment constrained to those compatible with the chosen image, selecting the first compatible shape.
- Launch an instance from the matched image and compatible shape, attaching its primary VNIC to the supplied subnet.
- Read the newly launched instance to surface its current lifecycle state and confirm the launch landed.
What you'll need to have ready
- compartmentId: The OCID of the compartment to discover resources and launch into.
- availabilityDomain: The availability domain to scope shape discovery and launch to.
- subnetId: The OCID of the subnet the primary VNIC will attach to.
- operatingSystem: The operating system to filter the base image by (e.g. Oracle Linux).
- displayName: An optional user-friendly name for the launched instance.
- authToken: OCI request-signing bearer credential for the Authorization header.
For your developer
Arazzo workflow oracle:provision-image-compatible-instance, 4 operations: ListImages → ListShapes → LaunchInstance → GetInstance. Specs on APIs.io.