07-15-2018 08:01 PM - edited 03-01-2019 01:37 PM
Hello all.
I am trying to use the UCS XML API to retrieve the health status of a blade. The XML request I'm using is:
<configResolveChildren
inDn="sys/chassis-1/blade-1"
inHierarchical="false"
cookie="1531708258/f8db41e4-c408-4126-bb27-5b75a12ba9f4"
classId="equipmentHealthLed"/>
And I get the response XML as:
<configResolveChildren cookie="1531708258/f8db41e4-c408-4126-bb27-5b75a12ba9f4" response="yes" classId="equipmentHealthLed">
<outConfigs>
<equipmentHealthLed
color="green"
dn="sys/chassis-1/blade-1/health-led"
healthLedState="normal"
healthLedStateQualifier=""
id="0"
name=""
operState="on"/>
</outConfigs>
</configResolveChildren>
So far so good, until I want to unmarshal the response XML into a Java object. Because there is no definition of the type "equipmentHealthLed" in UCS schema 3.2, I cannot use Java JAXB to auto generate the class for this type and to unmarshal the XML response into a Java object.
I am wondering:
1) Why there is no definition of this type in the API schema; Is it something private that user should not depend on?
2) Is there any other types or ways can be used to retrieve the health status of a blade instead of this type?
Any help or suggestions are appreciated.
07-16-2018 03:40 AM
Greetings.
Try posting over in the developer section at https://communities.cisco.com/community/technology/datacenter/compute-and-storage/ucs_management/cisco_ucs_developed_integrations
which is a better match for your question.
Thanks,
Kirk...
07-16-2018 05:22 PM
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