code: def list_aliases(self):
          
  
          # check alias doesn't exist
          r = self.requests.get(self.index_url + "/_alias", headers=HEADER_JSON, verify=False)
          try:
              r.raise_for_status()
          except requests.exceptions.HTTPError as ex:
              logger.warning("Something went wrong when retrieving aliases on %s.",
                             self.anonymize_url(self.index_url))
              logger.warning(ex)
              return
  
          aliases = r.json()[self.index]['aliases']
          return aliases
docs: List aliases linked to the index