cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
720
Views
1
Helpful
2
Replies

GetDeviceProfile uuid

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,

1 Accepted Solution

Accepted Solutions

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 !

View solution in original post

2 Replies 2

npetrele
Cisco Employee
Cisco Employee

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>

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 !