Hello,
I am trying to be able to utilize VMware's REST APIs.
I followed theses videos on utilizing the ZIP file for Postman use:
https://youtu.be/vq-7HLY74tQ
https://youtu.be/nr3pJovtbzM
That reference this GitHub - vmware/vsphere-automation-sdk-rest: REST (Postman and JavaScript) samples and API reference documentation for v… for downloading the REST APIs.
I tried putting in our credentials into the Postman > Manage Environments for the {{vc}}, {{user}}, and {{password}}, but when I go to send the request on Postman as a POST to this URL - https://{{vc}}/rest/com/vmware/cis/session, the response is a 400 Bad Request and it is blank. But these are the right credentials to log into our server(s). So I am unsure why this is the case.
Is this because these APIs are vCenter specific?
Is there a difference between vCenter, vSphere, and ESXi? Because we have a VMware vSphere 6 Hypervisor servers with VMs. I would assume that ESXi was underneath the realm of vSphere so I would be able to utilize them. Or when I tried https://{{vc}}/rest/vcenter/datacenter -- should /vcenter be changed to /vsphere instead? Or even /esxi?
I just want to be able to see if I can access and manage or even just use the REST APIs/SDKs than doing things along the ESXi interface.
Please let me know if this is applicable.
Thanks!