06-24-2017 11:50 PM
I just recently started trying using my Python scripts to get the OAuth2.0 tokens with my registered client ID and the client secret, and the scripts are able to used the token to get a successful response of "https://api.cisco.com/hello".
However, when I try to use the same token to get "https://api.cisco.com/bug/v2.0/bugs/products/product_id/A9K-RSP880-SE", I always get an error of 403 "Not Authorized". Why is this happening?
FYI, I am following the Bug API's doc pointed by this link:
https://apiconsole.cisco.com/docs/bugv2/apidocs
--Joe Chen
06-26-2017 04:37 AM
Hi Joe,
The Support APIs, including Bug API, are available to Cisco Smart Net Total Care (SNTC) customers and Cisco Partner Support Services (PSS) partners. See the Getting Started section of the Support APIs' DevNet site for details on how to be enable through their processes.
Once you have completed the on-boarding process and have the appropriate role associated with your CCO ID ("API Developer" for SNTC and "API Console User" for PSS), you will see Bug API in the API Console and then will be able to create an app using the API.
Keith
09-05-2017 08:23 AM
Hi Joe -
You're only going to receive a 403 error if your token is incorrect.
Ensure the application you're generating the token for has the Bug API included. Then run your GET request with the replied token.
Example per API documentation:
GET https://api.cisco.com/bug/v2.0/bugs/bug_ids_CSCdr72939 -H "Authorization: Bearer <Generated Token>"
- Gil
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide