def _get_request(self, url_path: str) -> Any:
        """Perform a ``GET`` request to *url_path*.

        :param url_path: URL to perform the ``GET`` request against.

        :returns: the deserialized response body.

        :raises:
            :exc:`RetriesExceeded`: raised from the corresponding :mod:`urllib3`
                exception.
        """
        url = self._build_full_url(url_path)
        response = None

        try:
            response = self._http.request("GET", url)
        except MaxRetryError as exc:
            msg = f"Failed to perform a GET request to {url}"
            raise RetriesExceeded(msg) from exc

        return self._deserialize_response(response)
Perform a ``GET`` request to *url_path*.

        :param url_path: URL to perform the ``GET`` request against.

        :returns: the deserialized response body.

        :raises:
            :exc:`RetriesExceeded`: raised from the corresponding :mod:`urllib3`
                exception.
        
patroni/scripts/barman/utils.py