Friday, March 8, 2019

[Cisco] Access to Cisco API


Hello,

Today we will review how to access to Cisco API.

You would like to create a script that will check coverage, warranty for all your Cisco equipments in your infrastructure, but you don't know where to begin ? Follow these simple steps :

1 - Get access to Cisco Services Access Management

You have to be an administrator and get access to https://cdceb.cloudapps.cisco.com/csam/login.do?action=home. The user that will be used for the script/application must be configured to be an "API Developper" and "SNTC Administrator". If you don't have access to this part, contact cisco support.

2 - Declare your application on Cisco

Connect to https://apiconsole.cisco.com/, you can browse the site as you wish, but the interesting part is "Registering New Application".

Put the information linked to your application, and then select the Cisco API(s) you will be requesting. In our coverage check example, we select Serial Number to Information API Version 2.

3 - Retrieve your ID

In order to make API requests to cisco you will have to use the newly created application parameters : Client ID and Client secret. They will correspond to the account the application is registered under, so it will have exactly the same rights, contracts attached, visibility...