AttachVolume

GET /?Action=AttachVolume
Description

Attaches a BSU volume to an instance.
The volume and the instance must be in the same Availability Zone. The instance can be running or stopped. The volume is attached to the specified instance device.

Body parameter

Required: false
Name: AttachVolumeRequest

Name Description Required Schema Default Example

Device

The instance device name.

true

string

DryRun

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

false

boolean

InstanceId

The ID of the instance you want to attach the volume to.

true

string

VolumeId

The ID of the volume you want to attach.

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 instance device name.

false

string

instanceId

The ID of the instance the volume is attached to.

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 attached volume.

false

string