Skip to content

New version of vSphere REST API - #31

Open
kiruka4 wants to merge 1 commit into
canonical:mainfrom
kiruka4:patch-1
Open

kiruka4 wants to merge 1 commit into
canonical:mainfrom
kiruka4:patch-1

Conversation

@kiruka4

@kiruka4 kiruka4 commented Jun 4, 2021

Copy link
Copy Markdown

Without my changes this script didn't work with vCenter v 7.0.2. Additional information about REST API changes here - https://core.vmware.com/blog/vsphere-7-update-2-rest-api-modernization . Also script tried to register new host in any folder under specified datacenter. As for me it's inconvinient trying to find new host in a random folder. So I changed this behavior. Now new host will be added directly in the datacenter. Without any folders

Without my changes this script didn't work with vCenter v 7.0.2. Additional information about REST API changes here - https://core.vmware.com/blog/vsphere-7-update-2-rest-api-modernization . Also script tried to register new host in any folder under specified datacenter. As for me it's inconvinient trying to find new host in a random folder. So I changed this behavior. Now new host will be added directly in the datacenter. Without any folders
@ltrager

ltrager commented Jun 4, 2021

Copy link
Copy Markdown
Contributor

Thanks for the patch! Do you know if these changes are compatible with vCenter 6? If not we need to modify this so it works with vCenter 6 and 7.

@ITJamie

ITJamie commented Apr 25, 2022

Copy link
Copy Markdown

its not backwards compatible.

@skyecas

skyecas commented Aug 18, 2023

Copy link
Copy Markdown
Contributor

Hey @kiruka4,
Necoring an old PR here: Are you still willing to work on this?
If so, could you add a small modification to switch between /rest and /api depending on the version of VCentre in use?
We'd rather not introduce breaking changes where possible.
Thanks!

@skyecas skyecas added bug Something isn't working ESXi triaged Triaged to be addressed in a given cycle labels Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ESXi triaged Triaged to be addressed in a given cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants