Hello All,
I am new to REST API and recently started working on Cisco Intersight. I am trying to create an API instance for Intersight in my python code. I want to get connected with key_id and private key through python code and perform GET ( let's say get critical alarms). Here is how i am trying to connect :
import requests
# api-endpoint
URL = "https://www.intersight.com/api/v1/cond/Alarms"
Key_id = "5fdb89947564612d33a0c071/5ff35f677564612d32f75778/6022c93d7564612d320ac179"
Key_file = open("/Users/akashmeghani/Desktop/intersight_python/SecretKey.txt", "r")
I am not able to get connected , is there a different way of getting connected ? Any input will be very helpful.
Thanks in advance