Home / Servers / DigitalOcean API / volume_actions_post_by_id

Initiate A Block Storage Action By Volume Id

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Initiate A Block Storage Action By Volume Id To initiate an action on a block storage volume by Id, send a POST request to ~/v2/volumes/$VOLUME_ID/actions. The body should contain the appropriate attributes for the respective action. ## Attach… [POST /v2/volumes/{volume_id}/actions]

Name on the gateway: digitalocean_api__volume_actions_post_by_id · may change things.

Parameters

NameTypeDescription
volume_id requiredstringThe ID of the block storage volume.
per_pageintegerNumber of items returned per page
pageintegerWhich 'page' of paginated results to return.
type requiredattach | detach | resizeThe volume action to initiate.
regionams1 | ams2 | ams3 | blr1 | fra1 | lon1 | nyc1 | nyc2 | nyc3 | sfo1 | sfo2 | sfo3 | sgp1 | tor1 | syd1The slug identifier for the region where the resource will initially be…
droplet_id requiredintegerThe unique identifier for the Droplet the volume will be attached or detached…
tagsarrayA 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:

call_tool arguments
{
  "name": "digitalocean_api__volume_actions_post_by_id",
  "arguments": {
    "volume_id": "…",
    "type": "…",
    "droplet_id": 0
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
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 id tool with volume_id set to ….

More from DigitalOcean API