getHosts() returns a list of all hosts the current user is authorized for.
<?php include('./ndo2fs-api.php'); $ndo2fs = new ndo2fs; $ndo2fs->getHosts(); print_r( $ndo2fs->hostList); ?>
getHostStates() extends the list by host state and other fields.
<?php include('./ndo2fs-api.php'); $ndo2fs = new ndo2fs; $ndo2fs->getHosts(); $ndo2fs->getHostStates(); print_r( $ndo2fs->hostList); ?>