capabilities.work

OCI Stop Compute Instance

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

Recipe · 3 steps

OCI Stop Compute Instance

with Oracle · IT Infrastructure Management

Stop a running compute instance and confirm it reaches STOPPED.

  1. Read the instance to confirm it exists and capture its current ETag for optimistic concurrency control on the stop action.
  2. Perform the STOP action on the instance, equivalent to pressing the power button, guarded by the ETag captured when reading the instance.
  3. Read the instance and check its lifecycle state. Repeat this step until the instance reports STOPPED.
What you'll need to have ready
  • instanceId: The OCID of the instance to stop.
  • authToken: OCI request-signing bearer credential for the Authorization header.
For your developer

Arazzo workflow oracle:stop-instance, 3 operations: GetInstance → InstanceAction → GetInstance. Specs on APIs.io.