updated get devices to only return an array of uuids based on the query params