@classmethod
def get_by_id(cls, context, db_id):
    """Find a volume target based on its database ID.

        :param cls: the :class:`VolumeTarget`
        :param context: security context
        :param db_id: the database primary key (integer) ID of a volume target
        :returns: a :class:`VolumeTarget` object
        :raises: VolumeTargetNotFound if no volume target with this ID exists
        """
    db_target = cls.dbapi.get_volume_target_by_id(db_id)
    target = cls._from_db_object(context, cls(), db_target)
    return target
