Table of Contents

ndo2fs API

FIXME

Download

Install

Beispiele

Liste aller Hosts

getHosts() liefert eine Liste aller Hosts für die der aktuelle User berechtigt ist.

<?php
include('./ndo2fs-api.php');
$ndo2fs = new ndo2fs;
$ndo2fs->getHosts();
print_r( $ndo2fs->hostList);
?>

Liste aller Hosts incl. Status

getHostStates() erweitert die Host Liste um den Status und weitere Felder.

<?php
include('./ndo2fs-api.php');
$ndo2fs = new ndo2fs;
$ndo2fs->getHosts();
$ndo2fs->getHostStates();
print_r( $ndo2fs->hostList);
?>