<?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: CUCM AXL API getLdapSyncStatus in Management</title>
    <link>https://community.cisco.com/t5/management/cucm-axl-api-getldapsyncstatus/m-p/4780840#M4038</link>
    <description>&lt;P&gt;Thanks, Elloit.&lt;BR /&gt;To add a bit of context, my other working commands are "list' commands. Thus they take two arguments which can be a dict. However, the "get" command only takes one argument and I guess cannot be a complex data type such as a dict.&lt;/P&gt;&lt;P&gt;So, your answer worked.&lt;BR /&gt;In trying to keep my code format consistent, I used&amp;nbsp; **search&lt;SPAN&gt;Criteria to allow Python to unpack the dict back to the key:vlaue pair you mentioned.&lt;BR /&gt;Thanks again for responding.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 19:21:34 GMT</pubDate>
    <dc:creator>mb2855</dc:creator>
    <dc:date>2023-02-22T19:21:34Z</dc:date>
    <item>
      <title>CUCM AXL API getLdapSyncStatus</title>
      <link>https://community.cisco.com/t5/management/cucm-axl-api-getldapsyncstatus/m-p/4764389#M4003</link>
      <description>&lt;P&gt;Hi Community,&lt;BR /&gt;I have trouble getting the AXLAPI getLdapSyncStatus to work.&lt;BR /&gt;&lt;SPAN&gt;Other methods using my "axl_service" work as expected.&lt;BR /&gt;I keep getting "TypeError: Choice elements only work with keyword arguments".&lt;BR /&gt;Here is the problematic part of my code. Python, and Zeep:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;getLdapSyncStatus&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;self):&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;''' Method that makes an AXL request to CUCM Admin and returns &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if LDAP is sync'd to the "enter LDAP Directory Name here" directory.'''&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;searchCriteria&lt;/SPAN&gt;&lt;SPAN&gt; = {&lt;/SPAN&gt;&lt;SPAN&gt;'name'&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;'enter LDAP Directory Name here'&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;response&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;axl_service&lt;/SPAN&gt;&lt;SPAN&gt;.getLdapSyncStatus(&lt;/SPAN&gt;&lt;SPAN&gt;searchCriteria&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;response&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;BR /&gt;Thanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 28 Jan 2023 07:54:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-axl-api-getldapsyncstatus/m-p/4764389#M4003</guid>
      <dc:creator>mb2855</dc:creator>
      <dc:date>2023-01-28T07:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM AXL API getLdapSyncStatus</title>
      <link>https://community.cisco.com/t5/management/cucm-axl-api-getldapsyncstatus/m-p/4764676#M4004</link>
      <description>&lt;P&gt;The code fragment you listed would be how it is defined in the AXL toolkit. You would actually use like this.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;client = Client(wsdl=wsdl_file, transport=transport, plugins=[history], settings=settings)
axl = client.create_service(binding_name, axl_address)

ldap_resp = axl.getLdapSyncStatus(name='my-ldap-dir')&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 29 Jan 2023 15:09:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-axl-api-getldapsyncstatus/m-p/4764676#M4004</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2023-01-29T15:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM AXL API getLdapSyncStatus</title>
      <link>https://community.cisco.com/t5/management/cucm-axl-api-getldapsyncstatus/m-p/4780840#M4038</link>
      <description>&lt;P&gt;Thanks, Elloit.&lt;BR /&gt;To add a bit of context, my other working commands are "list' commands. Thus they take two arguments which can be a dict. However, the "get" command only takes one argument and I guess cannot be a complex data type such as a dict.&lt;/P&gt;&lt;P&gt;So, your answer worked.&lt;BR /&gt;In trying to keep my code format consistent, I used&amp;nbsp; **search&lt;SPAN&gt;Criteria to allow Python to unpack the dict back to the key:vlaue pair you mentioned.&lt;BR /&gt;Thanks again for responding.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 19:21:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-axl-api-getldapsyncstatus/m-p/4780840#M4038</guid>
      <dc:creator>mb2855</dc:creator>
      <dc:date>2023-02-22T19:21:34Z</dc:date>
    </item>
  </channel>
</rss>

