createDevice Operation
Using createDevice operation you can add a new device to be supported by the TIBCO LogLogic® Appliance.
Request Parameters
authToken, deviceName, deviceType, description, enabled, dnsRefreshEnabled, deviceIp
For more information about each common request parameter, see common request parameters.
Example
To add a Cisco ASA device named Cisco ASA Sample Device, with a description of Cisco ASA Description, having IP address 10.1.2.3, and enabling the Appliance to retrieve log messages from the device but not enabling DNS name refresh:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dev="DeviceService">
<soapenv:Header/>
<soapenv:Body>
<dev:createDevice>
<dev:authToken>admin/admin123</dev:authToken>
<dev:deviceName>“Cisco ASA Sample Device”</dev:deviceName>
<dev:deviceType>Cisco ASA</dev:deviceType>
<dev:description>“Cisco ASA Description”</dev:description>
<dev:enabled>"yes"</dev:enabled>
<dev:dnsRefreshEnabled>"no"</dev:dnsRefreshEnabled>
<dev:deviceIp>“10.1.2.3”</dev:deviceIp>
</dev:createDevice>
</soapenv:Body>
</soapenv:Envelope>
SOAP response for createDevice Operation:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header/>
<soapenv:Body>
<ns:createDeviceResponse 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>TEST</ax215:description>
<ax215:deviceId>9187343239835811850</ax215:deviceId>
<ax215:deviceIp>1.1.1.2</ax215:deviceIp>
<ax215:deviceName>Test123</ax215:deviceName>
<ax215:deviceType>Cisco ASA</ax215:deviceType>
<ax215:dnsRefreshEnabled>yes</ax215:dnsRefreshEnabled>
<ax215:enabled>enabled</ax215:enabled>
</ax215:resultSet>
</ns:return>
</ns:createDeviceResponse>
</soapenv:Body>
</soapenv:Envelope>
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.
