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

Cisco ACI Authentication with cURL doesn't work

fc00::/7
Level 1
Level 1

I've been reading about Cisco ACI Automation with cURL here http://networkbit.ch/cisco-aci-automation-curl/ and trying to follow the same steps.

Unfortunately, the code doesn't work on cURL. I'm getting the following error.

C:\>curl -X POST -k https://x.x.x.x/api/aaaLogin.json -d '{"aaaUser":{"attributes":{"name":"user007","pwd":"password007"}}}'
{"totalCount":"1","imdata":[{"error":{"attributes":{"code":"400","text":"JSON parsing failed - incomplete attribute value at line: 1"}}}]}
C:\>

However, when I test the same code using Postman, it's working like a charm. What was wrong with the curl command?

0 Replies 0

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License