@resources.command(ignore_defaults=True)<EOL><INDENT>def list_facts(self, pk=None, **kwargs):<DEDENT>
res = self.get(pk=pk, **kwargs)<EOL>url = self.endpoint + '<STR_LIT>' % (res['<STR_LIT:id>'], '<STR_LIT>')<EOL>return client.get(url, params={}).json()<EOL>
Return a JSON object of all available facts of the given host.

        Note global option --format is not available here, as the output would always be JSON-formatted.

        =====API DOCS=====
        List all available facts of the given host.

        :param pk: Primary key of the target host.
        :type pk: int
        :param `**kwargs`: Keyword arguments list of available fields used for searching resource objects.
        :returns: A JSON object of all available facts of the given host.
        :rtype: dict
        =====API DOCS=====