'Reset status on the resource.'

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

    context = req.environ['cinder.context']
    self.authorize(context, 'reset_status')
    update = self.validate_update(body['os-reset_status'])
    msg = "Updating    %(resource)s    '%(id)s'    with    '%(update)r'"
    LOG.debug(msg, {'resource': self.resource_name, 'id': id, 'update': update})
    notifier_info = {'id': id, 'update': update}
    notifier = rpc.get_notifier('backupStatusUpdate')
    notifier.info(context, (self.collection + '.reset_status.start'), notifier_info)
    self.backup_api.reset_status(context=context, backup_id=id, status=update['status'])
    return webob.Response(status_int=http_client.ACCEPTED)
