utils.db_queries module

utils.db_queries.check_domain_enabled(domain, ip_address=None, db=None)[source]
utils.db_queries.get_configuration_details(db=None, ip_address=None)[source]

Return details that are necessary to navigate through Configuration accordions.

Parameters:ip_address – IP address of the server to match. If None, uses hostname from conf.env['base_url']
Returns:If the data weren’t found in the DB, NoneType If the data were found, it returns tuple (region, server name, server id, server zone id)
utils.db_queries.get_host_id(hostname, ip_address=None, db=None)[source]
utils.db_queries.get_zone_description(zone_id, ip_address=None, db=None)[source]