attachBlock
Attach Block Storage
Details
- Method:
POST - Path:
/blocks/{block-id}/attach - Operation ID:
attach-block
Parameters
{
"instance_id": {
"description": "Attach the Block Storage to this [Instance id](#operation/list-instances).",
"required": true,
"location": "body",
"type": "string"
},
"live": {
"description": "Attach Block Storage without restarting the Instance.\n\n| | Value | Description |\n| - | ----- | ----------- |\n| | true | Attach live, do not restart the instance. |\n| | false | Restart the instance and attach 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('attachBlock', {
# Add required parameters here
})