def _get_server_id(servers, identity):
    """
    Fetch and return server UUID by server name if found.
    """
    for server in servers.items:
        if identity in (server.properties.name, server.id):
            return server.id
    return None