05-27-2016 02:27 AM
Hello,
I'm looking to develop a script that will automatically suppress some DN and DeviceProfile.
My issue being that I need to get both the uuid (of the deviceProfile) and the deviceProfileName
in order to send the request to suppress it. (removeDeviceProfile).
I've tried to send this request to get the uuid, but it sends me nothing back (even if the profile exist).
requests performed on a CUCM 8.5 version.
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
<soapenv:Header/>
<soapenv:Body>
<ns:getDeviceProfile sequence="?">
<name></name>
<returnedTags>
<uuid/>
<name/>
</returnedTags>
</ns:getDeviceProfile>
</soapenv:Body>
</soapenv:Envelope>
I can get the name but not the uuid, and clue/suggestions ?
Requests are send by powershells
Thanks in advance,
Solved! Go to Solution.
06-15-2016 11:32 PM
Hello, thanks for your answer.
Actually, the uuid is not a valid a return tag but it doesn't generate an error nevertheless.
My problem is solved, actually, the uuid was in fact returned, (and it seems to always be the case, to confirm ?) but I was trying to reach it through a node instead of an attribute, my issue didn't come from the AXL so but from my script instead.
Thanks anyway, marked as solved !
06-15-2016 01:02 PM
uuid is not a valid returnedTag. But you can get it this way:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5">
<soapenv:Header/>
<soapenv:Body>
<ns:getDeviceProfile sequence="?">
<name>Nicholas</name>
<returnedTags ctiid="?" uuid="?">
<name></name>
</returnedTags>
</ns:getDeviceProfile>
</soapenv:Body>
</soapenv:Envelope>
It should return something like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:getDeviceProfileResponse xmlns:ns="http://www.cisco.com/AXL/API/10.5">
<return>
<deviceProfile ctiid="147" uuid="{9C801703-68C5-FFA7-EDAC-5B671A07A10E}">
<name>Nicholas</name>
</deviceProfile>
</return>
</ns:getDeviceProfileResponse>
</soapenv:Body>
</soapenv:Envelope>
06-15-2016 11:32 PM
Hello, thanks for your answer.
Actually, the uuid is not a valid a return tag but it doesn't generate an error nevertheless.
My problem is solved, actually, the uuid was in fact returned, (and it seems to always be the case, to confirm ?) but I was trying to reach it through a node instead of an attribute, my issue didn't come from the AXL so but from my script instead.
Thanks anyway, marked as solved !
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