vSphere

 View Only
  • 1.  vSphere Management SDK url is just blank page

    Posted Jul 17, 2015 11:40 AM

    I'm trying to get started using the vSphere API, reading the document at the link below I should be able to browse to my vcenter using "sdk" in the URL but it's blank. Also I read that you have to download the root certificates, but that link is not where this document claims it is. I'm using 5.5

    https://vdc-download.vmware.com/vmwb-repository/dcr-public/2d445149-7707-4c7d-98a7-9f00394b7df2/7322d611-ef3b-454a-ab63-ad3302d8b218/SDK/vsphere-ws/docs/SDK-README.html

    Do I need to enable this SDK in vCenter?



  • 2.  RE: vSphere Management SDK url is just blank page

    Posted Jul 17, 2015 11:58 AM
    Do I need to enable this SDK in vCenter?

    No, and what you're getting is the expected behavior: VMware KB: Cannot access the SDK URL at https://servername/sdk

    The service athttps://localhost/sdk is not an HTML webserver that can serve web pages. The service functions over the SOAP protocol (an .xml based protocol) and only responds to SOAP requests.

    For example a SOAP protocol request will serve https://vcenteripaddress/sdk/vimService.wsdl page wherevimservice.wsdl is the name of the Web Services Description Language (WSDL) webpage file provided by VMware.

    Try browse the URL https://vcenteripaddress/sdk/vimService.wsdl



  • 3.  RE: vSphere Management SDK url is just blank page

    Posted Jul 17, 2015 12:03 PM
    Thanks for you reply, that helps very much. Am I safe to assume that all the references I need are in the "VMware vSphere API Reference Documentation"? I'm using python but all the references seem to be for .NET and Java.


  • 4.  RE: vSphere Management SDK url is just blank page

    Posted Jul 17, 2015 12:18 PM

    Not sure about python, but you can found more information here: vSphere API and SDK Documentation

    And on this link I found some reference to python: VMware API and SDK Documentation



  • 5.  RE: vSphere Management SDK url is just blank page

    Posted Jul 17, 2015 03:15 PM

    As Richardson Porto pointed out, /sdk is the SOAP endpoint.  There is also web-ui oriented interface called the mob at /mob.

    Overall the API documentation is generic to any of the SDK kits (Python, Perl, dotNet, Java, etc).

    For Python, you'll probably want to use pyvmomi: https://github.com/vmware/pyvmomi

    You'll have to know the utility functions for each SDK (they vary) and there are some quirks between how you instantiate the API objects.



  • 6.  RE: vSphere Management SDK url is just blank page

    Posted Apr 19, 2017 06:20 AM

    Hello Everyone,

         I'm have same issue, please suggest me how to enable SDK (I'm running vCenter 6)

    Thanks,

    Eakkasak