Home / Servers / DigitalOcean API / volume_actions_post
Initiate A Block Storage Action By Volume Name
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Initiate A Block Storage Action By Volume Name To initiate an action on a block storage volume by Name, send a POST request to ~/v2/volumes/actions. The body should contain the appropriate attributes for the respective action. ## Attach a Block… [POST /v2/volumes/actions]
Name on the gateway: digitalocean_api__volume_actions_post · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
per_page | integer | Number of items returned per page |
page | integer | Which 'page' of paginated results to return. |
type required | attach | detach | resize | The volume action to initiate. |
region | ams1 | ams2 | ams3 | blr1 | fra1 | lon1 | nyc1 | nyc2 | nyc3 | sfo1 | sfo2 | sfo3 | sgp1 | tor1 | syd1 | The slug identifier for the region where the resource will initially be… |
droplet_id required | integer | The unique identifier for the Droplet the volume will be attached or detached… |
tags | array | A flat array of tag names as strings to be applied to the resource. Tag names… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__volume_actions_post",
"arguments": {
"type": "…",
"droplet_id": 0
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the initiate a block storage action by volume name tool with per_page set to ….