<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Missing Update End User with Multiple Associated Devices in Management</title>
    <link>https://community.cisco.com/t5/management/missing-update-end-user-with-multiple-associated-devices/m-p/3845202#M3042</link>
    <description>Hi Peter&lt;BR /&gt;Now it works, thank you very much.</description>
    <pubDate>Thu, 25 Apr 2019 15:10:17 GMT</pubDate>
    <dc:creator>Christoph Roelli</dc:creator>
    <dc:date>2019-04-25T15:10:17Z</dc:date>
    <item>
      <title>Missing Update End User with Multiple Associated Devices</title>
      <link>https://community.cisco.com/t5/management/missing-update-end-user-with-multiple-associated-devices/m-p/3752623#M2991</link>
      <description>&lt;P&gt;I try to deposit several devices with an end user using Python and the API interface. In Python I use zeep.&lt;BR /&gt;But only one device is transmitted at a time.&lt;BR /&gt;Here my Python code:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;zeep &lt;SPAN&gt;import &lt;/SPAN&gt;Client&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;zeep.cache &lt;SPAN&gt;import &lt;/SPAN&gt;SqliteCache&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;zeep.transports &lt;SPAN&gt;import &lt;/SPAN&gt;Transport&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;zeep.plugins &lt;SPAN&gt;import &lt;/SPAN&gt;HistoryPlugin&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;requests &lt;SPAN&gt;import &lt;/SPAN&gt;Session&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;requests.auth &lt;SPAN&gt;import &lt;/SPAN&gt;HTTPBasicAuth&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;urllib3 &lt;SPAN&gt;import &lt;/SPAN&gt;disable_warnings&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;urllib3.exceptions &lt;SPAN&gt;import &lt;/SPAN&gt;InsecureRequestWarning&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;logging.config&lt;BR /&gt;disable_warnings(InsecureRequestWarning)&lt;BR /&gt;username = &lt;SPAN&gt;'cucm_username'&lt;BR /&gt;&lt;/SPAN&gt;password = &lt;SPAN&gt;'cucm_password'&lt;BR /&gt;&lt;/SPAN&gt;host = &lt;SPAN&gt;'cucm_host'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;wsdl = &lt;SPAN&gt;'file://axlsqltoolkit_cucm//schema//11.5//AXLAPI.wsdl'&lt;BR /&gt;&lt;/SPAN&gt;location = &lt;SPAN&gt;'https://{host}:8443/axl/'&lt;/SPAN&gt;.format(&lt;SPAN&gt;host&lt;/SPAN&gt;=host)&lt;BR /&gt;binding = &lt;SPAN&gt;"{http://www.cisco.com/AXLAPIService/}AXLAPIBinding"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;session = Session()&lt;BR /&gt;session.verify = &lt;SPAN&gt;False&lt;BR /&gt;&lt;/SPAN&gt;session.auth = HTTPBasicAuth(username&lt;SPAN&gt;, &lt;/SPAN&gt;password)&lt;BR /&gt;&lt;BR /&gt;transport = Transport(&lt;SPAN&gt;cache&lt;/SPAN&gt;=SqliteCache()&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;session&lt;/SPAN&gt;=session&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;timeout&lt;/SPAN&gt;=&lt;SPAN&gt;20&lt;/SPAN&gt;)&lt;BR /&gt;history = HistoryPlugin()&lt;BR /&gt;client = Client(&lt;SPAN&gt;wsdl&lt;/SPAN&gt;=wsdl&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;transport&lt;/SPAN&gt;=transport&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;plugins&lt;/SPAN&gt;=[history])&lt;BR /&gt;service = client.create_service(binding&lt;SPAN&gt;, &lt;/SPAN&gt;location)Endpoints&lt;BR /&gt;&lt;BR /&gt;resp = service.updateUser(**{&lt;SPAN&gt;'userid'&lt;/SPAN&gt;: &lt;SPAN&gt;'tst-user, 'associatedDevices':&lt;/SPAN&gt;&lt;BR /&gt;                                         [{&lt;SPAN&gt;'device'&lt;/SPAN&gt;: &lt;SPAN&gt;'SEP000832C51223'&lt;/SPAN&gt;}&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                                          {&lt;SPAN&gt;'device'&lt;/SPAN&gt;: &lt;SPAN&gt;'SEP000832C63DFF'&lt;/SPAN&gt;}]})&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;This results in the following request:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;soap-env:Envelope xmlns:soap-env="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;soap-env:Body&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ns0:updateUser xmlns:ns0="&lt;A href="http://www.cisco.com/AXL/API/11.5" target="_blank"&gt;http://www.cisco.com/AXL/API/11.5&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;userid&amp;gt;tst-user&amp;lt;/userid&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;associatedDevices&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;device&amp;gt;SEP000832C51223&amp;lt;/device&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/associatedDevices&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ns0:updateUser&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/soap-env:Body&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/soap-env:Envelope&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second device is missing.&amp;nbsp;&lt;SPAN&gt;Can someone please help me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 09:31:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/missing-update-end-user-with-multiple-associated-devices/m-p/3752623#M2991</guid>
      <dc:creator>Christoph Roelli</dc:creator>
      <dc:date>2018-11-26T09:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Update End User with Multiple Associated Devices</title>
      <link>https://community.cisco.com/t5/management/missing-update-end-user-with-multiple-associated-devices/m-p/3845013#M3041</link>
      <description>&lt;P&gt;Hi Christophe,&lt;/P&gt;&lt;P&gt;the square brackets are on the wrong place.&lt;/P&gt;&lt;P&gt;Thank you for getting me started as well &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;resp = service.updateUser(**{&lt;SPAN&gt;'userid'&lt;/SPAN&gt;: &lt;SPAN&gt;'tst-user',&lt;BR /&gt;                             'associatedDevices':&lt;BR /&gt;                                  &lt;/SPAN&gt;{&lt;SPAN&gt;'device'&lt;/SPAN&gt;:[&lt;SPAN&gt;'SEP000832C51223','SEP000832C63DFF'&lt;/SPAN&gt;]}&lt;BR /&gt;                            }&lt;BR /&gt;                         )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 11:31:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/missing-update-end-user-with-multiple-associated-devices/m-p/3845013#M3041</guid>
      <dc:creator>Peter Plum</dc:creator>
      <dc:date>2019-04-25T11:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Update End User with Multiple Associated Devices</title>
      <link>https://community.cisco.com/t5/management/missing-update-end-user-with-multiple-associated-devices/m-p/3845202#M3042</link>
      <description>Hi Peter&lt;BR /&gt;Now it works, thank you very much.</description>
      <pubDate>Thu, 25 Apr 2019 15:10:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/missing-update-end-user-with-multiple-associated-devices/m-p/3845202#M3042</guid>
      <dc:creator>Christoph Roelli</dc:creator>
      <dc:date>2019-04-25T15:10:17Z</dc:date>
    </item>
  </channel>
</rss>

