diff --git a/evasdk/Eva.py b/evasdk/Eva.py index 72b2fff..32cb31c 100644 --- a/evasdk/Eva.py +++ b/evasdk/Eva.py @@ -53,6 +53,9 @@ def versions(self): self.__logger.debug('Eva.versions called') return self.__http_client.api_versions() + def name(self): + self.__logger.debug('Eva.name called') + return self.__http_client.name() # Auth def auth_renew_session(self): diff --git a/evasdk/eva_http_client.py b/evasdk/eva_http_client.py index 27c2f88..054f44e 100644 --- a/evasdk/eva_http_client.py +++ b/evasdk/eva_http_client.py @@ -87,6 +87,12 @@ def api_versions(self): eva_error('api_versions request error', r) return r.json() + def name(self): + r = self.api_call_no_auth('GET', 'name') + if r.status_code != 200: + eva_error('api_versions request error', r) + return r.json() + # AUTH def auth_renew_session(self): self.__logger.debug('Renewing session token {}'.format(self.session_token))