Dell_Technologi
Enthusiast
Enthusiast

vSAN REST API

Can someone share vSAN REST API URL?  I would like to see what are all the end points are available.  I could not locate one. 

0 Kudos
6 Replies
depping
Leadership
Leadership

the documentation can be found here: https://code.vmware.com/apis/398/vsan

Dell_Technologi
Enthusiast
Enthusiast

Thank you. I was aware of this page.  This particular page refers to Managed Object , Data Objects, etc.  I am looking for typical REST API end points.  Something like, swagger URL.  The end point which I can use in Postman. 

0 Kudos
Dell_Technologi
Enthusiast
Enthusiast

Can someone share their view for this question?

0 Kudos
CyberNils
Hot Shot
Hot Shot

I haven't used it myself, but I understand that you access it via the vSphere APIs.

"The vSAN API is exposed as a Web service, running on both the VMware vCenter server systems as well as the VMware ESXi systems. The API provides access to the methods that you can use to manage vSAN.

Managed Objects for vSphere Management API/SDK are serviced with the vSphere SDK service endpoint(the Web Service URL - '/sdk').
While the Managed Objects for vSAN API are serviced with dedicated Web Service endpoints.
At ESXi side, the dedicated vSAN API service endpoint is '/vsan'. At VC side, the dedicated vSAN API service endpoint is '/vsanHealth'."

I hope this helps.



Nils Kristiansen
https://cybernils.net/
0 Kudos
tomsmig
Contributor
Contributor

Hi, I am looking for the same information.

Basically, I couldn't find REST API reference for vSAN.

Documentation says "vSAN API are serviced with dedicated Web Service endpoints", but I was not able to query for any information about vSAN using rest method.

For example, I was trying to query following URLs with GET :

https://<vcenter>/rest/vsanhealth/VsanCapabilitySystem
https://<vcenter>/vsanhealth/VsanCapabilitySystem
https://<vcenter>/api/vsanhealth/VsanCapabilitySystem

All results returned with: "The remote server returned an error: (404) Not Found."

 

 

 

0 Kudos
dustin_weibel
Contributor
Contributor

I actually want to use rest API for my site  but i can't seem to find the perfect one yet.

0 Kudos