def rest(self, token, endpoint=None, timeout=None):
        """Obtain a metadata REST API client."""
        from . import rest
        return rest.SignalFxRestClient(
            token=token,
            endpoint=endpoint or self._api_endpoint,
            timeout=timeout or self._timeout)