code: def all_properties(self):
          
  
          properties = {}
          r = self.requests.get(self.index_url + "/_mapping", headers=HEADER_JSON, verify=False)
          try:
              r.raise_for_status()
              r_json = r.json()
  
              if 'items' not in r_json[self.index]['mappings']:
                  return properties
  
              if 'properties' not in r_json[self.index]['mappings']['items']:
                  return properties
  
              properties = r_json[self.index]['mappings']['items']['properties']
          except requests.exceptions.HTTPError as ex:
              logger.error("Error all attributes for %s.", self.anonymize_url(self.index_url))
              logger.error(ex)
              return
  
          return properties
docs: Get all properties of a given index