code: def get(method, hmc, uri, uri_parms, logon_required):
          
          query_str = uri_parms[0]
          try:
              console = hmc.consoles.lookup_by_oid(None)
          except KeyError:
              raise InvalidResourceError(method, uri)
          result_ldap_srv_defs = []
          filter_args = parse_query_parms(method, uri, query_str)
          for ldap_srv_def in console.ldap_server_definitions.list(filter_args):
              result_ldap_srv_def = {}
              for prop in ldap_srv_def.properties:
                  if prop in ('element-uri', 'name', 'type'):
                      result_ldap_srv_def[prop] = ldap_srv_def.properties[prop]
              result_ldap_srv_defs.append(result_ldap_srv_def)
          return {'ldap-server-definitions': result_ldap_srv_defs}
docs: Operation: List LDAP Server Definitions.