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_password_rules = []
          filter_args = parse_query_parms(method, uri, query_str)
          for password_rule in console.password_rules.list(filter_args):
              result_password_rule = {}
              for prop in password_rule.properties:
                  if prop in ('element-uri', 'name', 'type'):
                      result_password_rule[prop] = password_rule.properties[prop]
              result_password_rules.append(result_password_rule)
          return {'password-rules': result_password_rules}
docs: Operation: List Password Rules.