vSAN1

 View Only
  • 1.  vSAN REST API

    Posted Apr 01, 2021 07:19 AM

    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. 



  • 2.  RE: vSAN REST API

    Posted Apr 01, 2021 08:38 AM

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



  • 3.  RE: vSAN REST API

    Posted Apr 01, 2021 12:35 PM

    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. 



  • 4.  RE: vSAN REST API

    Posted Apr 07, 2021 12:20 AM

    Can someone share their view for this question?



  • 5.  RE: vSAN REST API

    Posted Apr 07, 2021 06:48 AM

    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.



  • 6.  RE: vSAN REST API

    Posted Jul 19, 2022 09:58 PM

    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."

     

     

     



  • 7.  RE: vSAN REST API

    Posted Jul 21, 2022 05:38 AM

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