client/splunk.js
function(options, callback) {
            if (!callback && utils.isFunction(options)) {
                callback = options;
                options = {};
            }
            callback = callback || function() {};
            
            options = options || {};
            if (!options.count) {
                options.count = 0;
            }
            
            var that = this;
            var req = that.get("", options, function(err, response) {
                if (err) {
                    callback(err);
                }
                else {
                    that._load(response.data);
                    callback(null, that);
                }
            });
            
            return req;
        }
function(options, callback) {
            if (!callback && utils.isFunction(options)) {
                callback = options;
                options = {};
            }
            callback = callback || function() {};
            
            options = options || {};
            if (!options.count) {
                options.count = 0;
            }
            
            var that = this;
            var req = that.get("", options, function(err, response) {
                if (err) {
                    callback(err);
                }
                else {
                    that._load(response.data);
                    callback(null, that);
                }
            });
            
            return req;
        }
function ( options , callback ) { if ( ! callback && utils . isFunction ( options ) ) { callback = options ; options = { } ; } callback = callback || function ( ) { } ; options = options || { } ; if ( ! options . count ) { options . count = 0 ; } var that = this ; var req = that . get ( "" , options , function ( err , response ) { if ( err ) { callback ( err ) ; } else { that . _load ( response . data ) ; callback ( null , that ) ; } } ) ; return req ; }
Refreshes the resource by fetching the object from the server and
loading it.

@param {Object} options A dictionary of collection filtering and pagination options:
- `count` (_integer_): The maximum number of items to return.
- `offset` (_integer_): The offset of the first item to return.
- `search` (_string_): The search query to filter responses.
- `sort_dir` (_string_): The direction to sort returned items: “asc” or “desc”.
- `sort_key` (_string_): The field to use for sorting (optional).
- `sort_mode` (_string_): The collating sequence for sorting returned items: “auto”, “alpha”, “alpha_case”, or “num”.
@param {Function} callback A function to call when the object is retrieved: `(err, resource)`.

@method splunkjs.Service.Collection
Refreshes the resource by fetching the object from the server and loading it .