code: def query_api_version(self):
          
          version_resp = self._session.get('/api/version',
                                           logon_required=False)
          self._api_version = version_resp
          return self._api_version
docs: The Query API Version operation returns information about
          the level of Web Services API supported by the HMC.
  
          This operation does not require authentication.
  
          Returns:
  
            :term:`json object`:
              A JSON object with members ``api-major-version``,
              ``api-minor-version``, ``hmc-version`` and ``hmc-name``.
              For details about these properties, see section
              'Response body contents' in section 'Query API Version' in the
              :term:`HMC API` book.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.ConnectionError`