deleteDevice Operation
With deleteDevice operation you can delete an existing device.
Response
deviceResponse (see deviceResponse Type)
Example
To delete the device Cisco ASA Sample Device-Update from the Appliance:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dev="DeviceService"> <soapenv:Header/> <soapenv:Body> <dev:deleteDevice> <dev:authToken>admin/admin123</dev:authToken> <dev:deviceName>“Cisco ASA Sample Device-Update”</dev:deviceName> </dev:deleteDevice> </soapenv:Body> </soapenv:Envelope>
SOAP response for deleteDevice Operation:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Header/> <soapenv:Body> <ns:deleteDeviceResponse 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>Deleted device test2_update successfully - 1</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:deleteDeviceResponse> </soapenv:Body> </soapenv:Envelope>
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.