def alias_set_collections(alias_name, collections=None, **kwargs):
 if (not isinstance(collections, list)):
  raise SaltInvocationError('Collection parameter must be defined and contain a list of collection name')
 for collection in collections:
  if (not isinstance(collection, six.string_types)):
   raise ValueError('Collection name must be a string')
 return _query('admin/collections?action=CREATEALIAS&name={alias}&wt=json&collections={collections}'.format(alias=alias_name, collections=', '.join(collections)), **kwargs)

def alias_set_collections ( alias_name , collections = None , ** kwargs ) : if ( not isinstance ( collections , list ) ) : raise SaltInvocationError ( 'Collection parameter must be defined and contain a list of collection name' ) for collection in collections : if ( not isinstance ( collection , six . string_types ) ) : raise ValueError ( 'Collection name must be a string' ) return _query ( 'admin/collections?action=CREATEALIAS&name={alias}&wt=json&collections={collections}' . format ( alias = alias_name , collections = ', ' . join ( collections ) ) , ** kwargs )
define an alias additional parameters may be passed .