code: def get(cls, id, api=None):
          
          id = Transform.to_resource(id)
          api = api if api else cls._API
          if 'get' in cls._URL:
              extra = {'resource': cls.__name__, 'query': {'id': id}}
              logger.info('Fetching {} resource'.format(cls), extra=extra)
              resource = api.get(url=cls._URL['get'].format(id=id)).json()
              return cls(api=api, **resource)
          else:
              raise SbgError('Unable to fetch resource!')
docs: Fetches the resource from the server.
          :param id: Resource identifier
          :param api: sevenbridges Api instance.
          :return: Resource object.