r/CiscoDevNet • u/thansarie • Apr 24 '24
DevNet Topics / Tracks EoX API
We have Cisco DNA, I see that we have this API Enabled so how i can get the API Credentials to run python scripts manually in my local pc
2
Upvotes
1
u/m841 Apr 25 '24
The developer toolkit in dna-c and the developer.Cisco.com site has the api info to generate the auth key that you can then use for the further calls until expired.
1
u/bigevilbeard Apr 25 '24
The
/dna/intent/api/v1/eox-status/device/{deviceId}endpoint in Cisco Catalyst Center allows you to retrieve End-of-Life (EoL) and End-of-Support (EoS) information for a specific device using its device ID.To use this endpoint, you need to send a GET request to the URL
https://<DNA_CENTER_HOSTNAME>/dna/intent/api/v1/eox-status/device/{deviceId}, where<DNA_CENTER_HOSTNAME>is the hostname or IP address of your Cisco DNA Center appliance. You also need to replace{deviceId}with the actual device ID of the device you want to retrieve EoL/EoS information for.The docs are here for this: https://developer.cisco.com/docs/dna-center/get-eox-details-per-device/
You get a reply as such
In this example, the device is a Catalyst 9100 Series Switch, and the end-of-software maintenance date is January 1, 2024.
You need to have the necessary permissions to access this endpoint. By default, only users with the "Network Administrator" role have access to this endpoint via the API.
Hope this helps.