def get_app_or_pod_id(app_or_pod):
    """Gets the app or pod ID from the given app or pod

        :param app_or_pod: app or pod definition
        :type app_or_pod: requests.Response
        :return: app or pod id
        :rtype: str
        """
    return app_or_pod.get('app', app_or_pod.get('pod', {})).get('id')