def _get_resource(instance_list, identity):
    """
    Return instance UUID by name or ID, if found.
    """
    for i in instance_list.items:
        if identity in (i.properties.name, i.id):
            return i
    return None