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

Question on Catalyst Center and API

econstas
Level 1
Level 1

I am trying to figure out how to get the Token for Cat Center 2.3.7.6.  Is it the call to get a Token that's active for 1hr and then use it to make other requests? Or is there a place to get a token attached to my id? I have been looking for the ID option, but no luck. 

Can you assist because I have also tried the generate token via a call but it seems to not be working right now. Any assistance will be helpful.

2 Accepted Solutions

Accepted Solutions

Hello!

To get the token you have to make an POST request to /dna/system/api/v1/auth/token with username/password. The token is valid for 60minutes. What is the API call you tried to make? 

BR

****Kindly rate all useful posts*****

View solution in original post

Torbjørn
Spotlight
Spotlight

The "getting started" section of the API documentation is a good place to start. https://developer.cisco.com/docs/dna-center/getting-started/ 

If you are still having issues, verify if AES encryption is enabled under "System > Settings > Authentication API Encryption". If so, you should see this part of the API Docs and will need a valid key.

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

View solution in original post

2 Replies 2

Hello!

To get the token you have to make an POST request to /dna/system/api/v1/auth/token with username/password. The token is valid for 60minutes. What is the API call you tried to make? 

BR

****Kindly rate all useful posts*****

Torbjørn
Spotlight
Spotlight

The "getting started" section of the API documentation is a good place to start. https://developer.cisco.com/docs/dna-center/getting-started/ 

If you are still having issues, verify if AES encryption is enabled under "System > Settings > Authentication API Encryption". If so, you should see this part of the API Docs and will need a valid key.

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

Review Cisco Networking for a $25 gift card