Table of Contents

ndo2fs API

FIXME

Download

Install

Examples

List of all hosts

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);
?>

List of all hosts including state

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);
?>