def get_allocations(self, prefix=None):
params = {"<STR_LIT>": prefix}<EOL>return self.request(method="<STR_LIT>", params=params).json()<EOL>
Lists all the allocations.

           https://www.nomadproject.io/docs/http/allocs.html
            arguments:
              - prefix :(str) optional, specifies a string to filter allocations on based on an prefix.
                        This is specified as a querystring parameter.
            returns: list
            raises:
              - nomad.api.exceptions.BaseNomadException
              - nomad.api.exceptions.URLNotFoundNomadException