@Sathish Kumar Thank you for your query!!!
In this article List machines API - Windows security | Microsoft Learn , in the limitation section:
You can get devices last seen according to your configured retention period.
Maybe you can increase that period and see if you are getting details as per configuration.
I hope this helps.
Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics