UCMDB and UD Practitioners Forum (Previously CMS)
Showing results for 
Search instead for 
Do you mean 

uCMDB API Call

SOLVED
Go to Solution
Esteemed Contributor

uCMDB API Call

Hello Experts,

 

I was working on API query to fetch all the "Computer" devices under "Node" category from CMS. Somehow I always get an error saying "Computer" is not a valid class. I checked classmodel and it seems to be existing. Other queries for sub classes like "windows" and "unix" work as expected.

 

queryDefinition.addNode("node").ofType("computer").queryProperties

 

Any ideas/help will be of great help. Appreciate your support.

2 REPLIES
Esteemed Contributor

Re: uCMDB API Call

Computer gets tagged to "host_node". All yours servers can be found under this. HTH

Trusted Contributor

Re: uCMDB API Call

Indeed. Node is "node", Computer is "host_node".
//Add this to "OnDomLoad" event