Quantcast
Channel: VMware Communities : Discussion List - VMware vCloud Director
Viewing all articles
Browse latest Browse all 4515

Unable to authenticate via API on vCloud Director

$
0
0

I am having issues authenticating with the vCloud Director API. I am using the following cURL commands:

 

curl -i -k -H "Accept:application/*+xml;version=1.5" -u '[username]@[LDAP Domain]:[password]' -X POST https://[vCloud Director IP]/api/sessions


curl --request POST --url https://[vCloud Director IP]/api/sessions --header 'accept: application/*+xml;version=5.6' --header 'authorization: Basic [encodedCredentials]


and I get a '401 Unauthorized' return code. I am trying to connect to vCloud Director v8.10.0.3879706. The account I am trying to use in the cURL command is the same one I connect to the Web Portal as, which has System Administrator privileges. I have also tried connecting as an Organisation Administrator user in a specific VDC. I am able to get output from /api/versions, so I know the API is functioning.


Can anyone help locate the cause of this 401 return code issue? It seems to me it's a problem with how I'm formatting my credentials, but I can't find the exact issue. The credentials look something like this:


exampleuser@this.ldap.domain:Test$Pass%


Thanks.


Viewing all articles
Browse latest Browse all 4515

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>