Open Context Protocol is live! 🚀 Read the launch post
attachInstanceIso

attachInstanceIso

Attach ISO to Instance

Details

  • Method: POST
  • Path: /instances/{instance-id}/iso/attach
  • Operation ID: attach-instance-iso

Parameters

{
  "iso_id": {
    "description": "The [ISO id](#operation/list-isos) to attach to this Instance.",
    "required": false,
    "location": "body",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "iso_status": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "State of the ISO\n\n* ismounting"
        },
        "iso_id": {
          "type": "string",
          "description": "The [ISO id](#operation/list-isos) being attached."
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('vultr')

# Call this tool
result = await agent.call_tool('attachInstanceIso', {
    # Add required parameters here
})