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

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

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

      else {
        return callback(null, body.nodes.map(function (node) {
          return new lb.Node(self,
            _.extend(node, { loadBalancerId: loadBalancerId }));
        }), res);
      }
    });
  }
function (loadBalancer, callback) {
    var self = this,
        loadBalancerId =
          loadBalancer instanceof lb.LoadBalancer ? loadBalancer.id : loadBalancer;

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

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

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

@description get an array of nodes for the provided load balancer

@param {Object}          loadBalancer      the loadBalancer or loadBalancerId
@param {function}        callback
client . getNodes