code: def _get_endpoint(self):
          
          self.endpoint = 'https://api.sumologic.com/api/v1'
          self.response = self.session.get('https://api.sumologic.com/api/v1/collectors')  # Dummy call to get endpoint
          endpoint = self.response.url.replace('/collectors', '')  # dirty hack to sanitise URI and retain domain
          return endpoint
docs: SumoLogic REST API endpoint changes based on the geo location of the client.
          For example, If the client geolocation is Australia then the REST end point is
          https://api.au.sumologic.com/api/v1
  
          When the default REST endpoint (https://api.sumologic.com/api/v1) is used the server
          responds with a 401 and causes the SumoLogic class instantiation to fail and this very
          unhelpful message is shown 'Full authentication is required to access this resource'
  
          This method makes a request to the default REST endpoint and resolves the 401 to learn
          the right endpoint