<?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 How to search for multiple CUCM huntPilot in Python? in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/how-to-search-for-multiple-cucm-huntpilot-in-python/m-p/4630417#M3268</link>
    <description>&lt;P&gt;I can get a single huntPilot OK with the following API call&lt;/P&gt;&lt;P&gt;resp = axl_service.getHuntPilot(pattern='70001920', routePartitionName='PT-INTERNAL')&lt;/P&gt;&lt;P&gt;But I got errors when trying to seach for multiple huntPilots by the following API call&lt;/P&gt;&lt;P&gt;resp = axl_service.getHuntPilot(pattern='7%', routePartitionName='PT-INTERNAL')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/Users/python/cucm/PILOT/hp.py", line 88, in &amp;lt;module&amp;gt;&lt;BR /&gt;resp = axl_service.getHuntPilot(pattern='7%', routePartitionName='PT-INTERNAL')&lt;BR /&gt;File "/Users/opt/anaconda3/lib/python3.9/site-packages/zeep/proxy.py", line 46, in __call__&lt;BR /&gt;return self._proxy._binding.send(&lt;BR /&gt;File "/Users/opt/anaconda3/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 135, in send&lt;BR /&gt;return self.process_reply(client, operation_obj, response)&lt;BR /&gt;File "/Users/opt/anaconda3/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 229, in process_reply&lt;BR /&gt;return self.process_error(doc, operation)&lt;BR /&gt;File "/Users/opt/anaconda3/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 329, in process_error&lt;BR /&gt;raise Fault(&lt;BR /&gt;zeep.exceptions.Fault: Item not valid: The specified the specified pattern or routePartition not found was not found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;axl_service.getHuntPilot(searchCriteria={'pattern': '7%'}, routePartitionName='PT-INTERNAL')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TypeError: {&lt;A href="http://www.cisco.com/AXL/API/12.5}GetHuntPilotReq" target="_blank" rel="noopener"&gt;http://www.cisco.com/AXL/API/12.5}GetHuntPilotReq&lt;/A&gt;() got an unexpected keyword argument 'searchCriteria'. Signature: `({uuid: {&lt;A href="http://www.cisco.com/AXL/API/12.5}XUUID" target="_blank" rel="noopener"&gt;http://www.cisco.com/AXL/API/12.5}XUUID&lt;/A&gt;} | {pattern: xsd:string, routePartitionName: {&lt;A href="http://www.cisco.com/AXL/API/12.5}XFkType" target="_blank" rel="noopener"&gt;http://www.cisco.com/AXL/API/12.5}XFkType&lt;/A&gt;}), returnedTags: {&lt;A href="http://www.cisco.com/AXL/API/12.5}RHuntPilot" target="_blank" rel="noopener"&gt;http://www.cisco.com/AXL/API/12.5}RHuntPilot&lt;/A&gt;, sequence: xsd:unsignedLong`&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jun 2022 21:32:24 GMT</pubDate>
    <dc:creator>Young2020</dc:creator>
    <dc:date>2022-06-12T21:32:24Z</dc:date>
    <item>
      <title>How to search for multiple CUCM huntPilot in Python?</title>
      <link>https://community.cisco.com/t5/call-control/how-to-search-for-multiple-cucm-huntpilot-in-python/m-p/4630417#M3268</link>
      <description>&lt;P&gt;I can get a single huntPilot OK with the following API call&lt;/P&gt;&lt;P&gt;resp = axl_service.getHuntPilot(pattern='70001920', routePartitionName='PT-INTERNAL')&lt;/P&gt;&lt;P&gt;But I got errors when trying to seach for multiple huntPilots by the following API call&lt;/P&gt;&lt;P&gt;resp = axl_service.getHuntPilot(pattern='7%', routePartitionName='PT-INTERNAL')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/Users/python/cucm/PILOT/hp.py", line 88, in &amp;lt;module&amp;gt;&lt;BR /&gt;resp = axl_service.getHuntPilot(pattern='7%', routePartitionName='PT-INTERNAL')&lt;BR /&gt;File "/Users/opt/anaconda3/lib/python3.9/site-packages/zeep/proxy.py", line 46, in __call__&lt;BR /&gt;return self._proxy._binding.send(&lt;BR /&gt;File "/Users/opt/anaconda3/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 135, in send&lt;BR /&gt;return self.process_reply(client, operation_obj, response)&lt;BR /&gt;File "/Users/opt/anaconda3/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 229, in process_reply&lt;BR /&gt;return self.process_error(doc, operation)&lt;BR /&gt;File "/Users/opt/anaconda3/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 329, in process_error&lt;BR /&gt;raise Fault(&lt;BR /&gt;zeep.exceptions.Fault: Item not valid: The specified the specified pattern or routePartition not found was not found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;axl_service.getHuntPilot(searchCriteria={'pattern': '7%'}, routePartitionName='PT-INTERNAL')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TypeError: {&lt;A href="http://www.cisco.com/AXL/API/12.5}GetHuntPilotReq" target="_blank" rel="noopener"&gt;http://www.cisco.com/AXL/API/12.5}GetHuntPilotReq&lt;/A&gt;() got an unexpected keyword argument 'searchCriteria'. Signature: `({uuid: {&lt;A href="http://www.cisco.com/AXL/API/12.5}XUUID" target="_blank" rel="noopener"&gt;http://www.cisco.com/AXL/API/12.5}XUUID&lt;/A&gt;} | {pattern: xsd:string, routePartitionName: {&lt;A href="http://www.cisco.com/AXL/API/12.5}XFkType" target="_blank" rel="noopener"&gt;http://www.cisco.com/AXL/API/12.5}XFkType&lt;/A&gt;}), returnedTags: {&lt;A href="http://www.cisco.com/AXL/API/12.5}RHuntPilot" target="_blank" rel="noopener"&gt;http://www.cisco.com/AXL/API/12.5}RHuntPilot&lt;/A&gt;, sequence: xsd:unsignedLong`&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 21:32:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-search-for-multiple-cucm-huntpilot-in-python/m-p/4630417#M3268</guid>
      <dc:creator>Young2020</dc:creator>
      <dc:date>2022-06-12T21:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for multiple CUCM huntPilot in Python?</title>
      <link>https://community.cisco.com/t5/call-control/how-to-search-for-multiple-cucm-huntpilot-in-python/m-p/4632080#M3272</link>
      <description>&lt;P&gt;The 7% wild card is not a valid search parameter for getHuntPilot. If you want to get a list of hunt pilots matching 7%, then use listHuntPilot, instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 21:49:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-search-for-multiple-cucm-huntpilot-in-python/m-p/4632080#M3272</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2022-06-14T21:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for multiple CUCM huntPilot in Python?</title>
      <link>https://community.cisco.com/t5/call-control/how-to-search-for-multiple-cucm-huntpilot-in-python/m-p/4634321#M3273</link>
      <description>&lt;P&gt;Great! listHuntPilot works. But is there a way to tell retuenTags to return all the values?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2022 14:45:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-search-for-multiple-cucm-huntpilot-in-python/m-p/4634321#M3273</guid>
      <dc:creator>Young2020</dc:creator>
      <dc:date>2022-06-18T14:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for multiple CUCM huntPilot in Python?</title>
      <link>https://community.cisco.com/t5/call-control/how-to-search-for-multiple-cucm-huntpilot-in-python/m-p/4635928#M3277</link>
      <description>&lt;P&gt;Here's a tip that should help you with all your AXL work:&amp;nbsp; Try the request with &lt;A href="https://www.soapui.org/downloads/soapui/" target="_self"&gt;SoapUI&lt;/A&gt; first (click on the link to download the free, open source version), and then apply what you learned to your Python code.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 14:50:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-search-for-multiple-cucm-huntpilot-in-python/m-p/4635928#M3277</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2022-06-21T14:50:19Z</dc:date>
    </item>
  </channel>
</rss>

