The following thread may be helpful to you if you are interested in retrieving the health status of a device…