cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1976
Views
0
Helpful
2
Replies

How to Get Authorized for Using Cisco Bug API?

c-joseph.chen
Level 1
Level 1

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

2 Replies 2

kcolberg
Cisco Employee
Cisco Employee

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

gsalas111
Level 1
Level 1

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