<?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 Unable to retrieve EOX API Information. in Management</title>
    <link>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4259508#M3554</link>
    <description>&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; import requests
&amp;gt;&amp;gt;&amp;gt; auth_url = "https://cloudsso.cisco.com/as/token.oauth2"
&amp;gt;&amp;gt;&amp;gt; auth_header = {
... "client_id": "**omitted**",
... "client_secret": "**omitted**"",
... "grant_type": "client_credentials"
... }
&amp;gt;&amp;gt;&amp;gt; response = requests.post(auth_url, params=auth_header)
&amp;gt;&amp;gt;&amp;gt; token = response.json()
&amp;gt;&amp;gt;&amp;gt; token
{'access_token': '**omitted**"', 'token_type': 'Bearer', 'expires_in': 3599}
&amp;gt;&amp;gt;&amp;gt; http_auth_header = {
... "Accept": "application/json",
... "Authorization": "%s %s" % (token['token_type'],
... token['access_token']),
... }
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; call = requests.get(url="https://api.cisco.com/supporttools/eox/rest/4/EOXBySerialNumber/1/**omitted**"?responseencoding=json", headers=http_auth_header)
&amp;gt;&amp;gt;&amp;gt; call.text
'&amp;lt;h1&amp;gt;Not Authorized&amp;lt;/h1&amp;gt;'

&amp;gt;&amp;gt;&amp;gt; call.status_code
403&lt;/PRE&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies if this is not the correct place for this but i am relatively new to DevNet.&lt;/P&gt;&lt;P&gt;I am trying to integrate with the EOX Api to retrieve EOS/EOL dates for some of our cisco hardware.&lt;/P&gt;&lt;P&gt;I followed the documentation steps and have signed up a new application in the apiconsole and have gotten a client_id/secret.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 17:36:35 GMT</pubDate>
    <dc:creator>hooversciscotac</dc:creator>
    <dc:date>2020-12-16T17:36:35Z</dc:date>
    <item>
      <title>Unable to retrieve EOX API Information.</title>
      <link>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4259508#M3554</link>
      <description>&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; import requests
&amp;gt;&amp;gt;&amp;gt; auth_url = "https://cloudsso.cisco.com/as/token.oauth2"
&amp;gt;&amp;gt;&amp;gt; auth_header = {
... "client_id": "**omitted**",
... "client_secret": "**omitted**"",
... "grant_type": "client_credentials"
... }
&amp;gt;&amp;gt;&amp;gt; response = requests.post(auth_url, params=auth_header)
&amp;gt;&amp;gt;&amp;gt; token = response.json()
&amp;gt;&amp;gt;&amp;gt; token
{'access_token': '**omitted**"', 'token_type': 'Bearer', 'expires_in': 3599}
&amp;gt;&amp;gt;&amp;gt; http_auth_header = {
... "Accept": "application/json",
... "Authorization": "%s %s" % (token['token_type'],
... token['access_token']),
... }
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; call = requests.get(url="https://api.cisco.com/supporttools/eox/rest/4/EOXBySerialNumber/1/**omitted**"?responseencoding=json", headers=http_auth_header)
&amp;gt;&amp;gt;&amp;gt; call.text
'&amp;lt;h1&amp;gt;Not Authorized&amp;lt;/h1&amp;gt;'

&amp;gt;&amp;gt;&amp;gt; call.status_code
403&lt;/PRE&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies if this is not the correct place for this but i am relatively new to DevNet.&lt;/P&gt;&lt;P&gt;I am trying to integrate with the EOX Api to retrieve EOS/EOL dates for some of our cisco hardware.&lt;/P&gt;&lt;P&gt;I followed the documentation steps and have signed up a new application in the apiconsole and have gotten a client_id/secret.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:36:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4259508#M3554</guid>
      <dc:creator>hooversciscotac</dc:creator>
      <dc:date>2020-12-16T17:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to retrieve EOX API Information.</title>
      <link>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4259534#M3555</link>
      <description>&lt;P&gt;I understand certain contracts must be in place between partner/customer orgs for entitlement to this API - might doublecheck the requirements/steps here: &lt;A href="https://developer.cisco.com/docs/support-apis/#!user-onboarding-process" target="_blank"&gt;https://developer.cisco.com/docs/support-apis/#!user-onboarding-process&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that seems ok, suggest contacting the API support team directly so they can look at the details of your account: &lt;A href="https://developer.cisco.com/docs/support-apis/#!support" target="_blank"&gt;https://developer.cisco.com/docs/support-apis/#!support&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 18:16:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4259534#M3555</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2020-12-16T18:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to retrieve EOX API Information.</title>
      <link>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4260290#M3557</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/docs/support-apis/#!eox/get-eox-by-serial-numbers" target="_blank"&gt;https://developer.cisco.com/docs/support-apis/#!eox/get-eox-by-serial-numbers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.cisco.com/supporttools/eox/rest/5/EOXBySerialNumber/{pageIndex}/{serialNumber" target="_blank"&gt;https://api.cisco.com/supporttools/eox/rest/5/EOXBySerialNumber/{pageIndex}/{serialNumber&lt;/A&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In your call .. there is extra " .. I guess added when omitted the serial. Not a problem coz you would get syntax error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; call = requests.get(url="https://api.cisco.com/supporttools/eox/rest/4/EOXBySerialNumber/1/**omitted**&lt;FONT size="5" color="#993300"&gt;"&lt;/FONT&gt;?responseencoding=json", headers=http_auth_header)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Try this -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;call = requests.get(url="https://api.cisco.com/supporttools/eox/rest/&lt;FONT size="4" color="#993300"&gt;4&lt;/FONT&gt;/EOXBySerialNumber/1/FCW2140L039?responseencoding=json", headers=http_auth_header)
&amp;gt;&amp;gt;&amp;gt; call.text
'&amp;lt;h1&amp;gt;Not Authorized&amp;lt;/h1&amp;gt;'
&amp;gt;&amp;gt;&amp;gt;

&amp;gt;&amp;gt;&amp;gt; call = requests.get(url="https://api.cisco.com/supporttools/eox/rest/&lt;FONT size="4" color="#993300"&gt;5&lt;/FONT&gt;/EOXBySerialNumber/1/FCW2140L039?responseencoding=json", headers=http_auth_header)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; call.text&lt;BR /&gt;'{"PaginationResponseRecord":{"PageIndex":1,"LastIndex":1,"TotalRecords":1,"PageRecords":1},"EOXRecord":[{"EOLProductID":"","ProductIDDescription":"","ProductBulletinNumber":"","LinkToProductBulletinURL":"","EOXExternalAnnouncementDate":{"value":"","dateFormat":null},"EndOfSaleDate":{"value":"","dateFormat":null},"EndOfSWMaintenanceReleases":{"value":"","dateFormat":null},"EndOfRoutineFailureAnalysisDate":{"value":"","dateFormat":null},"EndOfServiceContractRenewal":{"value":"","dateFormat":null},"LastDateOfSupport":{"value":"","dateFormat":null},"EndOfSvcAttachDate":{"value":"","dateFormat":null},"UpdatedTimeStamp":{"value":"","dateFormat":null},"EOXError":{"ErrorID":"SSA_ERR_026","ErrorDescription":"EOX information does not exist for the following product ID(s): C9300-24UX-A","ErrorDataType":"PRODUCT_ID","ErrorDataValue":"C9300-24UX-A"},"EOXMigrationDetails":{"PIDActiveFlag":"","MigrationInformation":"","MigrationOption":"","MigrationProductId":"","MigrationProductName":"","MigrationStrategy":"","MigrationProductInfoURL":""},"EOXInputType":"ShowEOXBySerialNumber","EOXInputValue":"FCW2140L039"}]}'&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2020 19:28:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4260290#M3557</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-12-17T19:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to retrieve EOX API Information.</title>
      <link>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4260838#M3558</link>
      <description>Same error:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; call = requests.get(url="&lt;A href="https://api.cisco.com/supporttools/eox/rest/5/EOXBySerialNumber/1/FCW2140L039?responseencoding=json" target="_blank"&gt;https://api.cisco.com/supporttools/eox/rest/5/EOXBySerialNumber/1/FCW2140L039?responseencoding=json&lt;/A&gt;", headers=http_auth_header)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; call.text&lt;BR /&gt;'&lt;H1&gt;Not Authorized&lt;/H1&gt;'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Dec 2020 15:59:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4260838#M3558</guid>
      <dc:creator>hooversciscotac</dc:creator>
      <dc:date>2020-12-18T15:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to retrieve EOX API Information.</title>
      <link>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4260993#M3559</link>
      <description>&lt;P&gt;Im thinking there must be something wrong with the token permissions, i cannot even do a lookup by product id:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; import requests
&amp;gt;&amp;gt;&amp;gt; import json
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; auth_url = "https://cloudsso.cisco.com/as/token.oauth2"
&amp;gt;&amp;gt;&amp;gt; auth_header = {
...     "client_id": "***",
...     "client_secret": "***",
...     "grant_type": "client_credentials"
... }
&amp;gt;&amp;gt;&amp;gt; response = requests.post(auth_url, params=auth_header)
&amp;gt;&amp;gt;&amp;gt; token = response.json()
&amp;gt;&amp;gt;&amp;gt; token
{'access_token': '***', 'token_type': 'Bearer', 'expires_in': 3599}
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; http_auth_header = {
... "Accept": "application/json",
... "Authorization": "%s %s" % (token['token_type'],
... token['access_token']),
... }
&amp;gt;&amp;gt;&amp;gt; call = requests.get(url="https://api.cisco.com/supporttools/eox/rest/5/EOXByProductID/1/WIC-1T=?responseencoding=json", headers=http_auth_header)
&amp;gt;&amp;gt;&amp;gt; call.text
'&amp;lt;h1&amp;gt;Not Authorized&amp;lt;/h1&amp;gt;'
&amp;gt;&amp;gt;&amp;gt; call.status_code
403
&amp;gt;&amp;gt;&amp;gt; &lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Dec 2020 19:51:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4260993#M3559</guid>
      <dc:creator>hooversciscotac</dc:creator>
      <dc:date>2020-12-18T19:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to retrieve EOX API Information.</title>
      <link>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4261034#M3560</link>
      <description>&lt;P&gt;yeah looks like there is a permissions issue .. please contact API support to check further -&amp;nbsp;&lt;A href="mailto:supportapis-help@cisco.com" target="_blank"&gt;supportapis-help@cisco.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://developer.cisco.com/docs/support-apis/#!support" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/docs/support-apis/#!support&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 22:36:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/unable-to-retrieve-eox-api-information/m-p/4261034#M3560</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-12-18T22:36:43Z</dc:date>
    </item>
  </channel>
</rss>

