Open Context Protocol is live! 🚀 Read the launch post

restoreInstance

Restore Instance

Details

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

Parameters

{
  "backup_id": {
    "description": "The [Backup id](#operation/list-backups) used to restore this instance.",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "snapshot_id": {
    "description": "The [Snapshot id](#operation/list-snapshots) used to restore this instance.",
    "required": false,
    "location": "body",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "status": {
      "type": "object",
      "properties": {
        "restore_type": {
          "type": "string"
        },
        "restore_id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

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

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