<?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 TACACS Profile - API for common task type in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/tacacs-profile-api-for-common-task-type/m-p/5039922#M588112</link>
    <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for Ansible API for the particular &lt;STRONG&gt;"Common Task type" to set as Nexus&lt;/STRONG&gt; and by default it will choose Shell using API&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cisco.ise.tacacs_profile, but couldn't able to find the API for the Nexus setup as per the below snip.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lanagna_0-1710435277662.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/212556iDFFB3AC6C7B26A34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lanagna_0-1710435277662.png" alt="lanagna_0-1710435277662.png" /&gt;&lt;/span&gt;&lt;P&gt;Please help me with the exact API or reference link&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 16:55:13 GMT</pubDate>
    <dc:creator>lanagna</dc:creator>
    <dc:date>2024-03-14T16:55:13Z</dc:date>
    <item>
      <title>TACACS Profile - API for common task type</title>
      <link>https://community.cisco.com/t5/network-access-control/tacacs-profile-api-for-common-task-type/m-p/5039922#M588112</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for Ansible API for the particular &lt;STRONG&gt;"Common Task type" to set as Nexus&lt;/STRONG&gt; and by default it will choose Shell using API&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cisco.ise.tacacs_profile, but couldn't able to find the API for the Nexus setup as per the below snip.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lanagna_0-1710435277662.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/212556iDFFB3AC6C7B26A34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lanagna_0-1710435277662.png" alt="lanagna_0-1710435277662.png" /&gt;&lt;/span&gt;&lt;P&gt;Please help me with the exact API or reference link&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 16:55:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/tacacs-profile-api-for-common-task-type/m-p/5039922#M588112</guid>
      <dc:creator>lanagna</dc:creator>
      <dc:date>2024-03-14T16:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: TACACS Profile - API for common task type</title>
      <link>https://community.cisco.com/t5/network-access-control/tacacs-profile-api-for-common-task-type/m-p/5040209#M588120</link>
      <description>&lt;P&gt;There is no such for those 'Common Task Types'. You would need to select the Raw View tab and build your API calls based on that data.&lt;/P&gt;
&lt;PRE&gt;Example:&lt;BR /&gt;{&lt;BR /&gt;"TacacsProfile": {&lt;BR /&gt;"id": "e09c3a20-e250-11ee-a3a8-1296ee463e27",&lt;BR /&gt;"name": "Nexus_RO",&lt;BR /&gt;"description": "",&lt;BR /&gt;"sessionAttributes": {&lt;BR /&gt;"sessionAttributeList": [&lt;BR /&gt;{&lt;BR /&gt;"type": "OPTIONAL",&lt;BR /&gt;"name": "shell:roles",&lt;BR /&gt;"value": "\"network-operator\""&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"link": {&lt;BR /&gt;"rel": "self",&lt;BR /&gt;"href": "https://ise32-3.ise.trappedunderise.com:9060/ers/config/tacacsprofile/e09c3a20-e250-11ee-a3a8-1296ee463e27",&lt;BR /&gt;"type": "application/json"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Mar 2024 22:28:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/tacacs-profile-api-for-common-task-type/m-p/5040209#M588120</guid>
      <dc:creator>Greg Gibbs</dc:creator>
      <dc:date>2024-03-14T22:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: TACACS Profile - API for common task type</title>
      <link>https://community.cisco.com/t5/network-access-control/tacacs-profile-api-for-common-task-type/m-p/5040220#M588123</link>
      <description>&lt;P&gt;The easiest way to do this is to configure it in the GUI like you have done then perform a GET on the respective API object (tacacsprofile) to see what the REST object looks like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;curl  --include  --insecure  --location \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --user $ISE_REST_USERNAME:$ISE_REST_PASSWORD \
  --request GET https://$ISE_HOSTNAME/ers/config/tacacsprofile/name/ReadOnly

{
  "TacacsProfile" : {
    "id" : "a8696100-e255-11ee-a872-5600453c2db2",
    "name" : "ReadOnly",
    "description" : "",
    "sessionAttributes" : {
      "sessionAttributeList" : [ {
        "type" : "OPTIONAL",
        "name" : "shell:roles",
        "value" : "\"network-operator\""
      } ]
    },
    "link" : {
      "rel" : "self",
      "href" : "https://198.18.133.27/ers/config/tacacsprofile/name/ReadOnly",
      "type" : "application/json"
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;You can then use that data to figure out what values to use in the respective &lt;A href="https://docs.ansible.com/ansible/latest/collections/cisco/ise/tacacs_profile_module.html" target="_self"&gt;cisco.ise.tacacs_profile&lt;/A&gt; module:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;- name: Create TACACS Profile `ReadOnly` 
  cisco.ise.tacacs_profile:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    description: string
    name: ReadOnly
    sessionAttributes:
      sessionAttributeList:
      - name: "shell:roles"
        type: OPTIONAL
        value: "\"network-operator\""&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 23:01:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/tacacs-profile-api-for-common-task-type/m-p/5040220#M588123</guid>
      <dc:creator>thomas</dc:creator>
      <dc:date>2024-03-14T23:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: TACACS Profile - API for common task type</title>
      <link>https://community.cisco.com/t5/network-access-control/tacacs-profile-api-for-common-task-type/m-p/5045715#M588254</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/26555"&gt;@thomas&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/388087"&gt;@Greg Gibbs&lt;/a&gt;&amp;nbsp;for the inputs. Let me check on the same.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 19:49:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/tacacs-profile-api-for-common-task-type/m-p/5045715#M588254</guid>
      <dc:creator>lanagna</dc:creator>
      <dc:date>2024-03-20T19:49:50Z</dc:date>
    </item>
  </channel>
</rss>

