<?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: Return Code 403 - Forbidden (Access Denied) on several API's in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/return-code-403-forbidden-access-denied-on-several-api-s/m-p/4498290#M2337</link>
    <description>&lt;P&gt;Ok, yesterday I had a call with Cisco and the problem ist solved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) My permissions were insufficient and&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I did not know, that api* und apx* URL's are behind different gateways and need different authentication / client credentials due to different applications in use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;api* URL is behind Mashery GW and uses the application(s) on &lt;A href="https://apiconsole.cisco.com" target="_self"&gt;https://apiconsole.cisco.com&lt;/A&gt; while&lt;/P&gt;&lt;P&gt;apx* URL is behind Mulesoft GW and uses the application(s) on&amp;nbsp;&lt;A href="https://anypoint.mulesoft.com/apiplatform/apx/#/portals" target="_blank"&gt;https://anypoint.mulesoft.com/apiplatform/apx/#/portals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With having both in place and the correct permissions granted API access is working for CCW-R and Service APIs.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 07:50:06 GMT</pubDate>
    <dc:creator>CiscoAPI</dc:creator>
    <dc:date>2021-11-05T07:50:06Z</dc:date>
    <item>
      <title>Return Code 403 - Forbidden (Access Denied) on several API's</title>
      <link>https://community.cisco.com/t5/controllers/return-code-403-forbidden-access-denied-on-several-api-s/m-p/4497643#M2336</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got some experience in using API's but I'm new to the Cisco API's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to Cisco my account has the correct permissions using CCW-R (we're PSS) and Service API's. We registered the API's we want to use to two apps due to different auth methods - one for the CCW-R and one for Service API's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While some API's are working fine (e.g. EoX and Advisories) I've goth 'Access Denied' on other API's. For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;GET &lt;A href="https://api.cisco.com/sn2info/v2/coverage/status/serial_numbers/FCW2323G0TV" target="_blank" rel="noopener"&gt;https://api.cisco.com/sn2info/v2/coverage/status/serial_numbers/FCW2323G0TV&lt;/A&gt;&lt;BR /&gt;GET &lt;A href="https://api.cisco.com/product/v1/information/product_ids/UBR10012,ASR1001" target="_blank" rel="noopener"&gt;https://api.cisco.com/product/v1/information/product_ids/UBR10012,ASR1001&lt;/A&gt;&lt;BR /&gt;GET &lt;A href="https://apx.cisco.com/cs/api/v1/customer-info/customer-details" target="_blank" rel="noopener"&gt;https://apx.cisco.com/cs/api/v1/customer-info/customer-details&lt;/A&gt;&lt;BR /&gt;GET &lt;A href="https://apx.cisco.com/cs/api/v1/customer-info/customer-details" target="_blank" rel="noopener"&gt;https://apx.cisco.com/cs/api/v1/customer-info/customer-details&lt;/A&gt;&lt;BR /&gt;POST &lt;A href="https://api-test.cisco.com/ccw/renewals/api/v1.0/search/contractSummary" target="_blank" rel="noopener"&gt;https://api-test.cisco.com/ccw/renewals/api/v1.0/search/contractSummary&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please give me a hint if I'm doing it wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the API's registered for the service (please ignore, that the CCW-R is added as well):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="01.png" style="width: 312px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/136520iD8CBB8B279F70D4F/image-dimensions/312x800?v=v2" width="312" height="800" role="button" title="01.png" alt="01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The token request is working fine (using it for EoX and Advisories as well because it's the same app):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02.png" style="width: 550px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/136524i2B6442F8F4BC8D68/image-size/large?v=v2&amp;amp;px=999" role="button" title="02.png" alt="02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My request header is looking like the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/136522i74CE6D241945876D/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.png" alt="03.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;According to the API and their documentation I add JSON information to the body. For example the customerID when trying to receive respective information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="04.png" style="width: 931px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/136523i34D1B459A2001108/image-size/large?v=v2&amp;amp;px=999" role="button" title="04.png" alt="04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response is always the same:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="05.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/136521i09FCBCF01295CA3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="05.png" alt="05.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your help! Thanks, David.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 06:45:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/return-code-403-forbidden-access-denied-on-several-api-s/m-p/4497643#M2336</guid>
      <dc:creator>CiscoAPI</dc:creator>
      <dc:date>2021-11-04T06:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Return Code 403 - Forbidden (Access Denied) on several API's</title>
      <link>https://community.cisco.com/t5/controllers/return-code-403-forbidden-access-denied-on-several-api-s/m-p/4498290#M2337</link>
      <description>&lt;P&gt;Ok, yesterday I had a call with Cisco and the problem ist solved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) My permissions were insufficient and&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I did not know, that api* und apx* URL's are behind different gateways and need different authentication / client credentials due to different applications in use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;api* URL is behind Mashery GW and uses the application(s) on &lt;A href="https://apiconsole.cisco.com" target="_self"&gt;https://apiconsole.cisco.com&lt;/A&gt; while&lt;/P&gt;&lt;P&gt;apx* URL is behind Mulesoft GW and uses the application(s) on&amp;nbsp;&lt;A href="https://anypoint.mulesoft.com/apiplatform/apx/#/portals" target="_blank"&gt;https://anypoint.mulesoft.com/apiplatform/apx/#/portals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With having both in place and the correct permissions granted API access is working for CCW-R and Service APIs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 07:50:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/return-code-403-forbidden-access-denied-on-several-api-s/m-p/4498290#M2337</guid>
      <dc:creator>CiscoAPI</dc:creator>
      <dc:date>2021-11-05T07:50:06Z</dc:date>
    </item>
  </channel>
</rss>

