cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
982
Views
0
Helpful
3
Replies

Cisco Automated Software Distribution API

mjbright757
Level 1
Level 1

Hello Everyone,

 

Curious if anyone has messed with or used the Cisco Automated Software Distribution API and has had success retrieving the download urls for the software images.  I've been granted access and have followed all documentation at Automated Software Distribution - Support API Docs - Document - Cisco DevNet.  However when I make a call for any version I receive the below message instead of download url

"exception": [
    {
        "code": "LOGIN_IMG_DWLD",
        "message": "To Download this software, you must Log In with your Cisco.com user ID. The image information is provided by this service but you would not be able to get the Image Download URL from the download service."
   }
],


I came across this thread, but haven't found any official documentation on using other forms of authentication.
Solved: Automated Software Distribution API - Error LOGIN_REQD - Cisco Community

1 Accepted Solution

Accepted Solutions

Sergiu.Daniluk
VIP Alumni
VIP Alumni

You have all the auth methods explained here: https://apiconsole.cisco.com/files/Token_Access.pdf

 

Take care,

Sergiu

View solution in original post

3 Replies 3

Sergiu.Daniluk
VIP Alumni
VIP Alumni

You have all the auth methods explained here: https://apiconsole.cisco.com/files/Token_Access.pdf

 

Take care,

Sergiu

Thank you Sergiu! 

 

Would you be able to offer any guidance on using grant_type authorization code or implicit in a python script without the need for a user-agent to sign in to cisco.com?  I'm working on writing a python script to poll Cisco Suggested Software Images by pids and then retrieve the download urls of those pid images.  However I'm getting stuck on the authorization part.  Works fine in Postman as I'm presented with a browser window to enter my CCO credentials, but I'm trying to eliminate the need for human interaction.

I may be able to help here.

For the authorization part, your API keys must have "Resource Owner Password" permissions

nathlord93_0-1665764646358.png

grant_type will be "password"

Your authorization request will need to look like the following:

grant_type: password
username: <Cisco_CCO_Username>
password: <Cisco_CCO_Password>
client_id:
client_secret:

This will get you your token. Hope that helps!

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: