Volumes

Volume Detach

post
https://api.linode.com/v4/volumes/{volumeId}/detach

Detaches a Volume on your Account from a Linode on your Account. In order for this request to complete successfully, your User must have read_write access to the Volume and read_write access to the Linode.

Volumes are automatically detached from deleted Linodes.

Path Parameters

volumeId
Required
integer

ID of the Volume to detach.

Request Samples

curl -H "Content-Type: application/json" \
    -H "Authorization: Bearer $TOKEN" \
    -X POST \
    https://api.linode.com/v4/volumes/12345/detach

Response Samples

{}

Responses

200: Volume was detached from a Linode.

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.