AnsweredAssumed Answered

Calling a RESTful API Curl Statement: Authorization

Question asked by Roguen Keller Employee on Apr 10, 2017
Latest reply on Apr 10, 2017 by Roguen Keller


I pulled an example curl statement from the the useful Admin API interface on HCI

Screen Shot 2017-04-10 at 5.34.19 PM.png

But then I wanted to see if I could do the same on command line.  I cut and paste the example shown here into Cygwin.

Screen Shot 2017-04-10 at 5.34.32 PM.png

I added a "-k" to the line to bypass my self-signed cert.

But when I correct that I get nothing back.  I'm assuming this is because I need to add an authorization header to my curl command, but what is the format.

On HCP this would be "Authorization HCP <base64username>:<md5sumPassword>" is it the same but replace HCI rather than HCP?

Outcomes