VMware {code} Community
aqwelea
Enthusiast
Enthusiast

First Steps in vCLoud API : Need help to create a login session

Hi all,

I am a real newbie in REST API. Already did some stuff with vCNS and NSX but never with vCloud.

My goal here is to get information about a catalog item using a REST API request.

The problem is that i am not even able to create a login session using a Basic HTTP Authentication.

I followed the official vCloud API programming guide and tried this part :

pastedImage_1.png

When i run my POST request, i do not receive any answer. No error. Nothing !

I tried with the following REST clients : Mozilla REST Client and HTTP Requester .

Also tried to follow old William Lam's post  with the cURL way without any improvement.

Any idea ?

Many thanks in advance

0 Kudos
1 Reply
cpatidar
VMware Employee
VMware Employee

aqwelea

I use Firefox REST client.  Pass the below parameters to login to vCloud using API:

1. Add Basic Authentication

Username : Administartor@System

Password : - - - - - - -

2. Headers:

Accept:application/*+xml;version=5.5 

you can try with different supported versions.

3. you use either Get or Post Method with URL : https://1.1.1.1/api/login

aqwelea
0 Kudos