def list_rooms(api_key=None):
 if (not api_key):
  api_key = _get_api_key()
 return salt.utils.slack.query(function='rooms', api_key=api_key, opts=__opts__)

def list_rooms ( api_key = None ) : if ( not api_key ) : api_key = _get_api_key ( ) return salt . utils . slack . query ( function = 'rooms' , api_key = api_key , opts = __opts__ )
list all hipchat rooms .