How to get Warranty Expiry Date from DeviceGet API call to N-able N-central API using SOAP calls

Last Modified

Mon Jun 08 10:25 GMT 2020

Description

  • How to get Warranty Expiry Date from DeviceGet API call to N-able N-central API using SOAP calls

Environment

  • N-able N-central 12.1.0.744 or later (EI2 WSDL)

Solution

  1. See this article for assistance setting up the WSDL in your application of choice:
  2. Observe the Documentation for DeviceGet (by searching https://yourservername.com/dms > External API's Javadocs > ServerEI2_PortType > DeviceGet).
  3. Make a soap call as follows:
    • <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ei2="http://ei2.nobj.nable.com/">   <soap:Header/>   <soap:Body>      <ei2:deviceGet>         <ei2:username>productadmin@n-able.com</ei2:username>         <ei2:password>***************</ei2:password>         <ei2:settings>             <ei2:key>deviceid</ei2:key>             <ei2:value>123456789</ei2:value>         </ei2:settings>      </ei2:deviceGet>   </soap:Body></soap:Envelope>
  4. Then evaluate the warranty information, which would be similar to:
    • <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">   <soap:Body>      <deviceGetResponse xmlns="http://ei2.nobj.nable.com/">         <return>            <info>               <first xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">device.deviceid</first>               <second xsi:type="ns3:stringArray" xmlns:ns3="http://jaxb.dev.java.net/array" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">                  <item xmlns="" xmlns:ns4="http://ei2.nobj.nable.com/">123456789</item>               </second>               <key>device.deviceid</key>               <value>123456789</value>            </info>...            <info>               <first xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">device.warrantyexpirydate</first>               <second xsi:type="ns3:stringArray" xmlns:ns3="http://jaxb.dev.java.net/array" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">                  <item xmlns="" xmlns:ns4="http://ei2.nobj.nable.com/">2019-09-09 20:09:00.0</item>               </second>               <key>device.warrantyexpirydate</key>               <value>2019-09-09 20:09:00.0</value>            </info>???
  • NOTE: If you wish to discover Warranty info, you must contact N-able Support and request Activation/Relicensing of your server with the option.
  • Please reference this article, which contains additional steps in our internal notes
    • Article Number: 000071435