08-02-2021 02:22 AM
I am trying to update phone description via SOAPUI AXL. It can update 1 phone description successfully.
How can I update a batch of phone using this update phone description script?
update 1 phone description
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">
<soapenv:Header/>
<soapenv:Body>
<ns:updatePhone>
<name>SEP************</name> <description>****</description>
</ns:updatePhone>
</soapenv:Body>
</soapenv:Envelope>
08-03-2021 06:35 AM
There is no batch updatePhone API in AXL. I recommend you write a simple script (python and zeep would work well) that loops and reads a list of phones/descriptions and performs the update for each one.
Here are a bunch of python/zeep/AXL samples:
https://github.com/CiscoDevNet/axl-python-zeep-samples
You don't have to use Python. Other languages work well with SOAP.
08-06-2021 03:20 PM
Howdy! Someone already pointed you at the GitHub for the zeep stuff. I'd definitely start there as that'll show you how to build your authentication. You'll need a user that has axl creds in CUCM. Along with that your script will look like this if you are just wanting to change a bunch of phones descriptions.
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