code: def action_list(self):
          "Lists all hosts on the LB"
          format = "%-35s %-25s %-8s"
          print format % ("HOST", "ACTION", "SUBDOMS")
          for host, details in sorted(self.client.get_all().items()):
              if details[0] in ("proxy", "mirror"):
                  action = "%s<%s>" % (
                      details[0],
                      ",".join(
                          "%s:%s" % (host, port)
                          for host, port in details[1]['backends']
                      )
                  )
              elif details[0] == "static":
                  action = "%s<%s>" % (
                      details[0],
                      details[1]['type'],
                  )
              elif details[0] == "redirect":
                  action = "%s<%s>" % (
                      details[0],
                      details[1]['redirect_to'],
                  )
              elif details[0] == "empty":
                  action = "%s<%s>" % (
                      details[0],
                      details[1]['code'],
                  )
              else:
                  action = details[0]
              print format % (host, action, details[2]f action_list(self):
          "Lists all hosts on the LB"
          format = "%-35s %-25s %-8s"
          print format % ("HOST", "ACTION", "SUBDOMS")
          for host, details in sorted(self.client.get_all().items()):
              if details[0] in ("proxy", "mirror"):
                  action = "%s<%s>" % (
                      details[0],
                      ",".join(
                          "%s:%s" % (host, port)
                          for host, port in details[1]['backends']
                      )
                  )
              elif details[0] == "static":
                  action = "%s<%s>" % (
                      details[0],
                      details[1]['type'],
                  )
              elif details[0] == "redirect":
                  action = "%s<%s>" % (
                      details[0],
                      details[1]['redirect_to'],
                  )
              elif details[0] == "empty":
                  action = "%s<%s>" % (
                      details[0],
                      details[1]['code'],
                  )
              else:
                  action = details[0]
              print format % (host, action, details[2])
docs: Lists all hosts on the LB