in ec2stack/providers/cloudstack/volumes.py [0:0]
def _attach_volume_request():
"""
Request to attach a volume.
@return: Response.
"""
args = {}
volume_id = helpers.get('VolumeId')
instance_id = helpers.get('InstanceId')
device = helpers.get('Device')
args['id'] = volume_id
args['command'] = 'attachVolume'
args['virtualmachineid'] = instance_id
args['device'] = device
response = requester.make_request_async(args)
return response