lib/pkgcloud/rackspace/loadbalancer/client/loadbalancers.js
function(loadBalancer, callback) {
    var self = this,
        loadBalancerId =
          loadBalancer instanceof lb.LoadBalancer ? loadBalancer.id : loadBalancer;

    self._request({
      path: urlJoin(_urlPrefix, loadBalancerId)
    }, function (err, body) {
      if (err) {
        return callback(err);
      }

      else if (!body || !body.loadBalancer) {
        return callback(new Error('Unexpected empty response'));
      }

      else {
        return callback(null, new lb.LoadBalancer(self, body.loadBalancer));
      }
    });
  }
function(loadBalancer, callback) {
    var self = this,
        loadBalancerId =
          loadBalancer instanceof lb.LoadBalancer ? loadBalancer.id : loadBalancer;

    self._request({
      path: urlJoin(_urlPrefix, loadBalancerId)
    }, function (err, body) {
      if (err) {
        return callback(err);
      }

      else if (!body || !body.loadBalancer) {
        return callback(new Error('Unexpected empty response'));
      }

      else {
        return callback(null, new lb.LoadBalancer(self, body.loadBalancer));
      }
    });
  }
function ( loadBalancer , callback ) { var self = this , loadBalancerId = loadBalancer instanceof lb . LoadBalancer ? loadBalancer . id : loadBalancer ; self . _request ( { path : urlJoin ( _urlPrefix , loadBalancerId ) } , function ( err , body ) { if ( err ) { return callback ( err ) ; } else if ( ! body || ! body . loadBalancer ) { return callback ( new Error ( 'Unexpected empty response' ) ) ; } else { return callback ( null , new lb . LoadBalancer ( self , body . loadBalancer ) ) ; } } ) ; }
client.getLoadBalancer

@description Get the details for the provided load balancer Id

@param {object|String}   loadBalancer  The loadBalancer or loadBalancer id for the query
@param {function}        callback
@returns {*}
client . getLoadBalancer