NavigationContentFooter
Suggest an edit
Was this page helpful?

Detaching a Block Storage volume via the Instance API

Reviewed on 02 January 2025Published on 10 January 2020

Before you startLink to this anchor

To complete the actions presented below, you must have:

  • Owner status or IAM permissions allowing you to perform actions in the intended Organization

To detach a block volume from a running Instance, relaunch the API call and omit the volume you want to hot unplug. Like so:

curl -q \
-H "X-Auth-Token: $SECRET_KEY" \
-H 'Content-Type: application/json' \
-X PATCH \
-d '{
"volumes": {
"0": "7fe25caf-0a68-46a7-aeb9-63a278d33e2b",
}
}' \
https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/be3c50af-e8f3-4ff4-90fe-66972f06670d
Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2025 – Scaleway