def read_file(self, id=None, path="<STR_LIT:/>"):
if id:<EOL><INDENT>return self.request(id, params={"<STR_LIT:path>": path}, method="<STR_LIT>").text<EOL><DEDENT>else:<EOL><INDENT>return self.request(params={"<STR_LIT:path>": path}, method="<STR_LIT>").text<EOL><DEDENT>
Read contents of a file in an allocation directory.

           https://www.nomadproject.io/docs/http/client-fs-cat.html

            arguments:
              - id
              - path
            returns: (str) text
            raises:
              - nomad.api.exceptions.BaseNomadException
              - nomad.api.exceptions.URLNotFoundNomadException