DetachVolume

GET /?Action=DetachVolume
Description

Detaches a BSU volume from an instance.
To detach the root device of an instance, this instance must be stopped.

Body parameter

Required: false
Name: DetachVolumeRequest

Name Description Required Schema Default Example

Device

The name of the device.

false

string

DryRun

If set to true, checks whether you have the required permissions to perform the action.

false

boolean

Force

Forces the detachment of the volume in case of previous failure (this action may damage your data or file systems).

false

boolean

InstanceId

The ID of the instance.

false

string

VolumeId

The ID of the volume.

true

string

Responses
HTTP Code 200
HTTP Code Description Schema

200

VolumeAttachment

Response 200

Response 200

Name Description Required Schema Default Example

attachTime

The time at which the attachment was initiated.

false

string

deleteOnTermination

Indicates whether the volume is deleted when terminating the instance.

false

boolean

device

The name of the device.

false

string

instanceId

The ID of the instance.

false

string

requestId

The ID of the request.

false

string

status

The attachment state of the volume (attaching | detaching | attached | detached).

false

string

volumeId

The ID of the volume.

false

string