feature request: method to get system by name (fqdn or visible label or "name") #3

Open
sjoeboo opened this Issue Sep 19, 2012 · 1 comment

Comments

Projects
None yet
2 participants

sjoeboo commented Sep 19, 2012

We would lik to query for a given system and get back its location data. We key off of fqdn/hostname, which is used for fqdn, visible label, and the object name.

soffi commented Oct 19, 2012

// get object_id by its FQDN
// using function searchByMgmtHostname()
// soffanias@gmail.com
case 'searchByMgmtHostname':
    require_once 'inc/init.php';

    assertStringArg ("fqdn", TRUE);

    $object_id = searchByMgmtHostname(( $_REQUEST['fqdn'] ));

    sendAPIResponse($object_id);
    break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment