Open Context Protocol is live! 🚀 Read the launch post

detachBlock

Detach Block Storage

Details

  • Method: POST
  • Path: /blocks/{block-id}/detach
  • Operation ID: detach-block

Parameters

{
  "live": {
    "description": "Detach Block Storage without restarting the Instance.\n\n|   | Value | Description |\n| - | ----- | ----------- |\n|   | true | Detach live, do not restart the instance. |\n|   | false | Restart the instance and detach the Block Storage. |",
    "required": false,
    "location": "body",
    "type": "boolean"
  }
}

Usage

from ocp_agent import OCPAgent

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

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