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

@param {Object} options An optional 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.Entity
Refreshes the entity by fetching the object from the server and loading it .