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

Get all attributes of a CI instance

SOLVED
Go to Solution
Frequent Advisor

Get all attributes of a CI instance

[ Edited ]

I used the Web Service getCIsById method. According to the documentation, following request should return me what I want:






Test



host_node




DERIVED







df7650e5765876bba771f90f296d75ed





But I got error:
No enum const class com.hp.schemas.ucmdb.types.props.SimpleTypedPredefinedProperty$Name.DERIVED

If I substitute DERIVED with CONCRETE, the execution will succeed. I don't understand how the DERIVED keyword could be missing.

If DERIVED is not supposed to be used. What I can do to get full set of a CI attribute values, include attributes inherited from all of its parent classes?

I used uCMDB 9.0 fundation installation.

Any help is appreciated.

 

 

P.S. This thread has been moved from Application Perf Mgmt (BAC / BSM) Support and News Forum to CMS and Discovery Support and News . - Hp forum Moderator

3 REPLIES
Honored Contributor

Re: Get all attributes of a CI instance

Hi,

You need to distinguish between:

SimpleTypedPredefinedProperties,which support "NAMING" and "CONCRETE", and need to be used to apply a different set of properties to each CIT

SimplePredefinedProperty, which support "NAMING", "CONCRETE" and "DERIVED"

I guess one solution for your issue is to query the class model for the class attributes, using getCmdbClassDefinition method (see exmaple for this on help), and then invoke the operation with proeprtiesList.


Frequent Advisor

Re: Get all attributes of a CI instance

Hi Amit,
I don't see the get by ID method accept SimplePredefinedProperty, so don't see how DERIVED can be used.

I already thought about using the methods you mentioned for the problem. I reason I didn't use it was because it only return attributes from one class at a time, wondered if there was a simple way to do it.

Anyway, you helped me out by leting me know there is no better way to handle this. Thanks for you help!
Frequent Advisor

Re: Get all attributes of a CI instance

See above.
//Add this to "OnDomLoad" event