def collection_create(collection_name, options=None, **kwargs):
 if (options is None):
  options = {}
 if (not isinstance(options, dict)):
  raise SaltInvocationError('options parameter must be a dictionary')
 options_string = _validate_collection_options(options)
 _query((('admin/collections?action=CREATE&wt=json&name=' + collection_name) + options_string), **kwargs)

def collection_create ( collection_name , options = None , ** kwargs ) : if ( options is None ) : options = { } if ( not isinstance ( options , dict ) ) : raise SaltInvocationError ( 'options parameter must be a dictionary' ) options_string = _validate_collection_options ( options ) _query ( ( ( 'admin/collections?action=CREATE&wt=json&name=' + collection_name ) + options_string ) , ** kwargs )
create a collection .