UCMDB and UD Practitioners Forum (Previously CMS)
cancel

uCMDB API Call

SOLVED
Go to solution
Highlighted
Pradeep_30
Outstanding 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
Pradeep_30
Outstanding Contributor.
Solution

Re: uCMDB API Call

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

Rutger
Honored Contributor.

Re: uCMDB API Call

Indeed. Node is "node", Computer is "host_node".