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

getInstanceUpgrades

Get Available Instance Upgrades

Details

  • Method: GET
  • Path: /instances/{instance-id}/upgrades
  • Operation ID: get-instance-upgrades

Parameters

{
  "type": {
    "description": "Filter upgrade by type:\n\n- all (applications, os, plans)\n- applications\n- os\n- plans",
    "required": false,
    "location": "query",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "upgrades": {
      "type": "object",
      "properties": {
        "applications": {
          "type": "array",
          "items": {}
        },
        "plans": {
          "type": "array",
          "items": {}
        },
        "os": {
          "type": "array",
          "items": {}
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

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

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