OCI Launch and Verify Compute Instance
A 3-step recipe with Oracle. We can help you get access.
Recipe · 3 steps
OCI Launch and Verify Compute Instance
with Oracle · IT Infrastructure Management
Launch a compute instance and verify it reaches the RUNNING state.
- Create a new instance in the compartment and availability domain using the supplied shape, image source, and subnet for the primary VNIC.
- Read the instance and confirm its lifecycle state. Repeat this step until the instance reports RUNNING before continuing.
- List the VNIC attachments in the compartment filtered to this instance to discover the network interfaces bound to it.
What you'll need to have ready
- compartmentId: The OCID of the compartment to launch the instance into.
- availabilityDomain: The availability domain to launch in (e.g. Uocm:PHX-AD-1).
- shape: The shape that defines CPU and memory (e.g. VM.Standard.E4.Flex).
- subnetId: The OCID of the subnet the primary VNIC will attach to.
- imageId: The OCID of the image to boot the instance from.
- displayName: An optional user-friendly name for the instance.
- authToken: OCI request-signing bearer credential for the Authorization header.
For your developer
Arazzo workflow oracle:launch-and-verify-instance, 3 operations: LaunchInstance → GetInstance → ListVnicAttachments. Specs on APIs.io.