'Update volume status to \'detaching\'.'

@wsgi.action('os-begin_detaching')
def _begin_detaching(self, req, id, body):

    context = req.environ['cinder.context']
    volume = self.volume_api.get(context, id)
    self.volume_api.begin_detaching(context, volume)
    return webob.Response(status_int=http_client.ACCEPTED)
