10-18-2010 06:20 AM - edited 03-01-2019 09:43 AM
Hey folks,
I look through the XML API used to query the UCS manager. Where can I get the possible values of a particular attribute?
Let me rephrase,
Consider I am querying for 'equipmentChassis' with <configResolveClass cookie="cookie" response="yes" classId="equipmentChassis">
I got a value as follows
<equipmentChassis adminState="acknowledged" configState="ok" connPath="A,B" connStatus="A,B" dn="sys/chassis-1" fabricEpDn="fabric/server/chassis-1" fltAggr="0" fsmDescr="" fsmPrev="nop" fsmProgr="100" fsmRmtInvErrCode="none" fsmRmtInvErrDescr="" fsmRmtInvRslt="" fsmStageDescr="" fsmStamp="never" fsmStatus="nop" fsmTry="0" id="1" lcTs="1970-01-01T01:00:00.000" licState="license-ok" managingInst="A" model="N20-C6508" operQualifier="" operState="operable" operability="operable" power="ok" presence="unknown" revision="0" serial="1" thermal="unknown" vendor="Cisco Systems Inc" versionHolder="yes"/>
Lets take the attribute licState, we got a value 'license-ok', what are all the possible values I can get in that place? Do Cisco provide any key guides for this? I searched, I am sorry I might have missed something.
Thanks
11-14-2010 10:01 PM
Hi Ramaiah,
If you have a Cisco UCS simulator, then on its web interface we have a link to API documentation where you can check for such values.
I too have recently started looking into the APIs.
Regards
- Prateek
11-15-2010 10:15 AM
There are a few options here that occur to me:
Go to either the web interface of one of your UCSMs or the emulator with something like:
http://
traverse the objects or search for what you want and follow the '?' link to the right of the Class name.
You could also try to find what you need here: http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/api/VScgIX.html
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide