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

Downloading Reports in Catalyst Center 2.3.7.6 VA via API

smeredith
Level 1
Level 1

Has anyone had any issues getting report downloading via API to work with CCVA running 2.3.7.6?

I keep getting HTTP error 406 indicating incorrect info in the GET request header, but I'm using the recommended accept conditions from Cisco's API reference guide.

Example of the code and URL I'm trying to work with:

 

 

url = "https://<CC-address>/dna/intent/api/v1/data/reports/<reportId>/executions/<execId>"

payload = None

headers = { "X-Auth-Token": toke['Token'], "Accept": 'application/json' } # Also tried setting accept type to 'text/csv' to match the file type I'm trying to download

response = requests.request('GET', url, headers=headers, data = payload, verify=False)

 

Seems to work just fine when grabbing data from other APIs but CC rejects this when trying to trigger a file download

0 Replies 0

Review Cisco Networking for a $25 gift card