capabilities.work

OCI Select Shape and Image then Launch

A 3-step recipe with Oracle. We can help you get access.

Recipe · 3 steps

OCI Select Shape and Image then Launch

with Oracle · IT Infrastructure Management

Discover a shape and image then launch an instance from them.

  1. List the shapes available to launch an instance within the compartment and availability domain.
  2. List images in the compartment filtered to the requested operating system, taking the first available image.
  3. Launch a new instance wired to the discovered shape and image, attaching its primary VNIC to the supplied subnet.
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 discovery and launch to.
  • subnetId: The OCID of the subnet the primary VNIC will attach to.
  • operatingSystem: The operating system to filter images 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:select-shape-and-launch, 3 operations: ListShapes → ListImages → LaunchInstance. Specs on APIs.io.