client/splunk.js
function(filename, callback) {
            // If someone called us with the default style of (params, callback),
            // lets make it work
            if (utils.isObject(filename)) {
                filename = filename["__conf"];
            }
            
            callback = callback || function() {};
            
            var that = this;
            var req = this.post("", {__conf: filename}, function(err, response) {
                if (err) {
                    callback(err);
                }
                else {
                    var entity = new root.ConfigurationFile(that.service, filename);
                    entity.fetch(function() {
                        if (req.wasAborted) {
                            return; // aborted, so ignore
                        }
                        else {
                            callback.apply(null, arguments);
                        }
                    });
                }
            });
            
            return req;
        }
function(filename, callback) {
            // If someone called us with the default style of (params, callback),
            // lets make it work
            if (utils.isObject(filename)) {
                filename = filename["__conf"];
            }
            
            callback = callback || function() {};
            
            var that = this;
            var req = this.post("", {__conf: filename}, function(err, response) {
                if (err) {
                    callback(err);
                }
                else {
                    var entity = new root.ConfigurationFile(that.service, filename);
                    entity.fetch(function() {
                        if (req.wasAborted) {
                            return; // aborted, so ignore
                        }
                        else {
                            callback.apply(null, arguments);
                        }
                    });
                }
            });
            
            return req;
        }
function ( filename , callback ) { // If someone called us with the default style of (params, callback), // lets make it work if ( utils . isObject ( filename ) ) { filename = filename [ "__conf" ] ; } callback = callback || function ( ) { } ; var that = this ; var req = this . post ( "" , { __conf : filename } , function ( err , response ) { if ( err ) { callback ( err ) ; } else { var entity = new root . ConfigurationFile ( that . service , filename ) ; entity . fetch ( function ( ) { if ( req . wasAborted ) { return ; // aborted, so ignore } else { callback . apply ( null , arguments ) ; } } ) ; } } ) ; return req ; }
Creates a configuration file.

@example

var configurations = service.configurations();
configurations.create("myprops", function(err, newFile) {
console.log("CREATED");
});

@param {String} filename A name for this configuration file.
@param {Function} callback A function to call with the new configuration file: `(err, createdFile)`.

@endpoint properties
@method splunkjs.Service.Configurations
Creates a configuration file .