client/splunk.js
function(stanzaName, values, callback) {
            // If someone called us with the default style of (params, callback),
            // lets make it work
            if (utils.isObject(stanzaName) && utils.isFunction(values) && !callback) {
                callback = values;
                values = stanzaName;
                stanzaName = values.name;
            }
            
            if (utils.isFunction(values) && !callback) {
                callback = values;
                values = {};
            }
            
            values = values || {};
            values["name"] = stanzaName;
            
            return this._super(values, callback);
        }
function(stanzaName, values, callback) {
            // If someone called us with the default style of (params, callback),
            // lets make it work
            if (utils.isObject(stanzaName) && utils.isFunction(values) && !callback) {
                callback = values;
                values = stanzaName;
                stanzaName = values.name;
            }
            
            if (utils.isFunction(values) && !callback) {
                callback = values;
                values = {};
            }
            
            values = values || {};
            values["name"] = stanzaName;
            
            return this._super(values, callback);
        }
function ( stanzaName , values , callback ) { // If someone called us with the default style of (params, callback), // lets make it work if ( utils . isObject ( stanzaName ) && utils . isFunction ( values ) && ! callback ) { callback = values ; values = stanzaName ; stanzaName = values . name ; } if ( utils . isFunction ( values ) && ! callback ) { callback = values ; values = { } ; } values = values || { } ; values [ "name" ] = stanzaName ; return this . _super ( values , callback ) ; }
Creates a stanza in this configuration file.

@example

var file = service.configurations().item("props");
file.create("my_stanza", function(err, newStanza) {
console.log("CREATED");
});

@param {String} stanzaName A name for this stanza.
@param {Object} values A dictionary of key-value pairs to put in this stanza.
@param {Function} callback A function to call with the created stanza: `(err, createdStanza)`.

@endpoint configs/conf-{file}
@method splunkjs.Service.ConfigurationFile
Creates a stanza in this configuration file .