<?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: ISE proxy setting error on using ansible API in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5003761#M586686</link>
    <description>&lt;PRE&gt;&lt;SPAN&gt;ise_hostname: "{{ hostname }}.{{domain}}"&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;should just be&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;ise_hostname: "{{ hostname }}"&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Jan 2024 15:52:42 GMT</pubDate>
    <dc:creator>Charlie Moreton</dc:creator>
    <dc:date>2024-01-23T15:52:42Z</dc:date>
    <item>
      <title>ISE proxy setting error on using ansible API</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5003740#M586685</link>
      <description>&lt;P&gt;Hi Team, Using below config -getting error as "None".&lt;/P&gt;&lt;P&gt;- name: Update all&lt;BR /&gt;cisco.ise.proxy_connection_settings:&lt;BR /&gt;ise_hostname: "{{ hostname }}.{{domain}}"&lt;BR /&gt;ise_username: "{{ username }}"&lt;BR /&gt;ise_password: "{{ password }}"&lt;BR /&gt;ise_verify: false&lt;BR /&gt;state: present&lt;BR /&gt;#bypassHosts: string&lt;BR /&gt;fqdn: "{{ fqdn_IPaddress }}"&lt;BR /&gt;#password: string&lt;BR /&gt;#passwordRequired: true&lt;BR /&gt;port: "{{ port }}"&lt;BR /&gt;register: result&lt;BR /&gt;#userName: admin&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The full traceback is:&lt;BR /&gt;NoneType: None&lt;BR /&gt;fatal: [Node1]: FAILED! =&amp;gt; {&lt;BR /&gt;"changed": false,&lt;BR /&gt;"msg": [&lt;BR /&gt;"debug, register, when. Supported parameters include: ise_debug, passwordRequired, password, ise_uses_csrf_token, ise_single_request_timeout, fqdn, state, ise_uses_api_gateway, ise_hostname, ise_verify, ise_username, port, ise_wait_on_rate_limit, userName, ise_password, bypassHosts, ise_version."&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;The full traceback is:&lt;BR /&gt;NoneType: None&lt;BR /&gt;fatal: [Node2]: FAILED! =&amp;gt; {&lt;BR /&gt;"changed": false,&lt;BR /&gt;"msg": [&lt;BR /&gt;"debug, register, when. Supported parameters include: ise_debug, passwordRequired, password, ise_uses_csrf_token, ise_single_request_timeout, fqdn, state, ise_uses_api_gateway, ise_hostname, ise_verify, ise_username, port, ise_wait_on_rate_limit, userName, ise_password, bypassHosts, ise_version."&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 15:22:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5003740#M586685</guid>
      <dc:creator>lanagna</dc:creator>
      <dc:date>2024-01-23T15:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: ISE proxy setting error on using ansible API</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5003761#M586686</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;ise_hostname: "{{ hostname }}.{{domain}}"&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;should just be&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;ise_hostname: "{{ hostname }}"&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jan 2024 15:52:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5003761#M586686</guid>
      <dc:creator>Charlie Moreton</dc:creator>
      <dc:date>2024-01-23T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: ISE proxy setting error on using ansible API</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5004114#M586694</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/317086"&gt;@Charlie Moreton&lt;/a&gt;&amp;nbsp;Thanks for the input, I tried the same still getting the same error.&lt;/P&gt;&lt;P&gt;And btw with domain, I can get the success result on using other API's.&lt;BR /&gt;Can you please provide me the alternate options.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 04:42:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5004114#M586694</guid>
      <dc:creator>lanagna</dc:creator>
      <dc:date>2024-01-24T04:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: ISE proxy setting error on using ansible API</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5004638#M586701</link>
      <description>&lt;P&gt;The error you are seeing is resolved by formatting the request.&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;- name: Update all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;  cisco.ise.proxy_connection_settings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    ise_hostname: "{{ hostname }}.{{domain}}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    ise_username: "{{ username }}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    ise_password: "{{ password }}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    ise_verify: false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    state: present&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    #bypassHosts: string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    fqdn: "{{ fqdn_IPaddress }}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    #password: string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    #passwordRequired: true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    port: "{{ port }}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    #userName: admin&lt;BR /&gt;  register: result&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;The `register: result` line is not a part of the `&lt;SPAN&gt;cisco.ise.proxy_connection_settings` module, which is causing the issue you are seeing.&amp;nbsp; The indented lines are, since the `register` attribute is an Ansible system attribute, this is place at the same level as calling the module.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDITED TO ADD:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Even when formatted correctly and not getting that error, I got the following error:&lt;/P&gt;
&lt;PRE&gt;An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoneType: None&lt;BR /&gt;fatal: [localhost]: FAILED! =&amp;gt; changed=false&lt;BR /&gt;&amp;nbsp; msg: Object does not exists, plugin only has update&lt;/PRE&gt;
&lt;P&gt;so I went to&amp;nbsp;&lt;A href="https://cs.co/ise-api" target="_blank"&gt;https://cs.co/ise-api&lt;/A&gt;&amp;nbsp;to look up the API equivalent to the ansible module.&amp;nbsp; &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;&lt;/SPAN&gt;There is no API for this!&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As a matter of fact, I couldn't find any reference to `proxy` on any page for the&amp;nbsp;Cisco Identity Services Engine API&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 15:16:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5004638#M586701</guid>
      <dc:creator>Charlie Moreton</dc:creator>
      <dc:date>2024-01-24T15:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: ISE proxy setting error on using ansible API</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5005400#M586717</link>
      <description>&lt;P&gt;I've done some digging and found that the API used in the ansible module is `&lt;SPAN&gt;/api/v1/system-settings/proxy` under System Settings.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've tested this and here is the Ansible Play that I have working:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Enable proxy on {{ ise_hostname }}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;delegate_to&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;localhost&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ansible.builtin.uri&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"https://{{ ise_hostname }}.securitydemo.net/api/v1/system-settings/proxy"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;method&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;PUT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url_username&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"{{ ise_username }}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url_password&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"{{ ise_password }}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;force_basic_auth&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;body&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"fqdn"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"{{ proxy_address }}"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"passwordRequired"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"port"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;80&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;status_code&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;201&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# Created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;500&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# Internal server error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;body_format&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;validate_certs&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"{{ ise_verify }}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return_content&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;register&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;response&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV&gt;&lt;SPAN&gt;Here's the link to the ISE System Settings APIs on Devnet:&amp;nbsp;&lt;A href="https://developer.cisco.com/docs/identity-services-engine/latest/#!system-settings-openapi" target="_blank"&gt;https://developer.cisco.com/docs/identity-services-engine/latest/#!system-settings-openapi&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Jan 2024 12:38:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-proxy-setting-error-on-using-ansible-api/m-p/5005400#M586717</guid>
      <dc:creator>Charlie Moreton</dc:creator>
      <dc:date>2024-01-25T12:38:25Z</dc:date>
    </item>
  </channel>
</rss>

