updateDevice Operation

Using updateDevice operation you can update the configuration of an existing device.

Request Parameters

authToken, deviceName, deviceType, description, enabled, dnsRefreshEnabled, deviceIp, changeNameTo

Response

deviceResponse (see deviceResponse Type)

Example

To update the Cisco ASA Sample Device name to “Cisco ASA Sample Device-Update”:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dev="DeviceService">
   <soapenv:Header/>
   <soapenv:Body>
      <dev:updateDevice>
         <dev:authToken>admin/admin123</dev:authToken>
         <dev:deviceName>“Cisco ASA Sample Device”</dev:deviceName>
         <dev:deviceType>Cisco ASA</dev:deviceType>
         <dev:description>"Update"</dev:description>
         <dev:enabled>"no"</dev:enabled>
         <dev:dnsRefreshEnabled>"yes"</dev:dnsRefreshEnabled>
         <dev:deviceIp>"1.1.1.1"</dev:deviceIp>
         <dev:changeNameTo>“Cisco ASA Sample Device-Update”</dev:changeNameTo>
      </dev:updateDevice>
   </soapenv:Body>
</soapenv:Envelope>
SOAP response for updateDevice Operation:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:updateDeviceResponse xmlns:ns="DeviceService">
         <ns:return xsi:type="ax215:DeviceResponse" xmlns:ax215="http://device.services.logapp.loglogic.com/xsd" xmlns:ax216="http://services.logapp.loglogic.com/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ax216:authToken xsi:nil="true"/>
            <ax216:resultCount>1</ax216:resultCount>
            <ax216:statusCode>2000</ax216:statusCode>
            <ax216:statusMessage>Successful</ax216:statusMessage>
            <ax216:summaryOnly>false</ax216:summaryOnly>
            <ax215:resultSet xsi:type="ax215:DeviceDetail">
               <ax215:applianceIp>127.0.0.1</ax215:applianceIp>
               <ax215:applianceName>localhost</ax215:applianceName>
               <ax215:description>new device desc</ax215:description>
               <ax215:deviceId>9187343239835811851</ax215:deviceId>
               <ax215:deviceIp>2.2.2.2</ax215:deviceIp>
               <ax215:deviceName>test2_update</ax215:deviceName>
               <ax215:deviceType>Other UNIX</ax215:deviceType>
               <ax215:dnsRefreshEnabled>yes</ax215:dnsRefreshEnabled>
               <ax215:enabled>enabled</ax215:enabled>
            </ax215:resultSet>
         </ns:return>
      </ns:updateDeviceResponse>
   </soapenv:Body>
</soapenv:Envelope>