Oracle Cloud Infrastructure · Arazzo Workflow

Oracle Cloud Stop And Terminate Instance

Version 1.0.0

Gracefully stop a running instance, confirm it stopped, then terminate it.

1 workflow 1 source API 1 provider
View Spec View on GitHub Cloud ComputingEnterprise CloudInfrastructure-as-a-ServiceOraclePlatform-as-a-ServiceComputeObject StorageIdentity and Access ManagementDatabaseKubernetesServerlessMonitoringEvent-DrivenArazzoWorkflows

Provider

oracle-cloud

Workflows

stop-and-terminate-instance
Stop a running instance, wait for STOPPED, then terminate it.
Confirms the instance, performs a STOP action, polls getInstance until the instance is STOPPED, and terminates it preserving the boot volume.
4 steps inputs: instanceId, preserveBootVolume outputs: finalState, instanceId
1
getInstance
Confirm the instance exists before issuing lifecycle actions.
2
stopInstance
Issue a STOP action to gracefully power down the instance.
3
pollStopped
Poll the instance until it reports the STOPPED lifecycle state.
4
terminateInstance
Terminate the stopped instance, preserving the boot volume.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Oracle Cloud Stop And Terminate Instance
  summary: Gracefully stop a running instance, confirm it stopped, then terminate it.
  description: >-
    Safely decommissions a compute instance. The workflow reads the instance to
    confirm it exists, issues a STOP instance action, polls until the lifecycle
    state reaches STOPPED, and then terminates the instance while preserving the
    boot volume. Every step spells out its request inline so the teardown flow
    can be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: instancesApi
  url: ../openapi/oracle-cloud-instances-api-openapi.yml
  type: openapi
workflows:
- workflowId: stop-and-terminate-instance
  summary: Stop a running instance, wait for STOPPED, then terminate it.
  description: >-
    Confirms the instance, performs a STOP action, polls getInstance until the
    instance is STOPPED, and terminates it preserving the boot volume.
  inputs:
    type: object
    required:
    - instanceId
    properties:
      instanceId:
        type: string
        description: The OCID of the instance to stop and terminate.
      preserveBootVolume:
        type: boolean
        description: Whether to preserve the boot volume on termination.
  steps:
  - stepId: getInstance
    description: Confirm the instance exists before issuing lifecycle actions.
    operationId: getInstance
    parameters:
    - name: instanceId
      in: path
      value: $inputs.instanceId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      currentState: $response.body#/lifecycleState
  - stepId: stopInstance
    description: Issue a STOP action to gracefully power down the instance.
    operationId: instanceAction
    parameters:
    - name: instanceId
      in: path
      value: $inputs.instanceId
    - name: action
      in: path
      value: STOP
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      actionState: $response.body#/lifecycleState
  - stepId: pollStopped
    description: Poll the instance until it reports the STOPPED lifecycle state.
    operationId: getInstance
    parameters:
    - name: instanceId
      in: path
      value: $inputs.instanceId
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.lifecycleState == "STOPPED"
      type: jsonpath
    outputs:
      lifecycleState: $response.body#/lifecycleState
  - stepId: terminateInstance
    description: Terminate the stopped instance, preserving the boot volume.
    operationId: terminateInstance
    parameters:
    - name: instanceId
      in: path
      value: $inputs.instanceId
    - name: preserveBootVolume
      in: query
      value: $inputs.preserveBootVolume
    successCriteria:
    - condition: $statusCode == 204
  outputs:
    instanceId: $inputs.instanceId
    finalState: $steps.pollStopped.outputs.lifecycleState

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/oracle-cloud-stop-and-terminate-instance-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.