VMware {code} Community
abhinawkr
Contributor
Contributor

What is the rest end point to login VCenter

What is rest end poing and how can i use same with basic authentication?
Reply
0 Kudos
3 Replies
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi,

 

Could you please explain what are you trying to achieve and give some more details.

Usually <vcenter_ip>/ui is used to access the HTML Client and <vcenter_ip>/vsphere-client is used to acces the Flex Client.

Reply
0 Kudos
abhinawkr
Contributor
Contributor

I want to call check valid login with usrid & password as parameter/ arguments.

exp:

<vcenter_ip>/login?userid={uid}&pw="pw"

or using header params in case post request

which can return me with vallid http status and json data with details.

If i use flex/ html not sure how can i check same.

Reply
0 Kudos
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi,

 

You can get the current user session by using the UserSessionService's getUserSession() method. It will give you information about the currently logged in user or null otherwise.

 

Best Regards,

Denis

Reply
0 Kudos