Use id field of resources.