Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Missing VM information from .../vcenter/vm/{vm} #14

Open
dkalaluhi opened this issue Oct 20, 2017 · 14 comments
Open

Missing VM information from .../vcenter/vm/{vm} #14

dkalaluhi opened this issue Oct 20, 2017 · 14 comments

Comments

@dkalaluhi
Copy link

I noticed recently while writing a CMDB integration, that {cluster} is not included in the information retrieved from the above endpoint. {resource_pool} is not included as well, which could be a way to work around the issue.

Also, (since we're talking missing information), while the above endpoint shows datastore, it does not show datastore cluster, which would really be handy to have, as the VM can move at any given point in time.

@jrgarcia
Copy link
Contributor

Hi @dkalaluhi, thanks for letting me know about this. I'm going to log this internally. I appreciate the feedback and definitely welcome your continued feedback. Let me know about anything you run into. Thanks!

@hocineKHE
Copy link

{
"name": "com.vmware.vapi.rest.httpNotFound",
"localizableMessages": [
{
"defaultMessage": "Not found.",
"id": "com.vmware.vapi.rest.httpNotFound"
}
],
"majorErrorCode": 404
}

any idea ???

@jrgarcia
Copy link
Contributor

jrgarcia commented Apr 9, 2019

@houcinedz A 404 typically means that the resource you are looking for is not found. I would need more information about the call you made to help with diagnosing why your request failed.

@hocineKHE
Copy link

hocineKHE commented Apr 9, 2019 via email

@jrgarcia
Copy link
Contributor

jrgarcia commented Apr 9, 2019

@houcinedz You can, but the calls are limited on vSphere 6.0. The content library and tagging functionality is available, but all other calls are not available until vSphere 6.5.

@hocineKHE
Copy link

hocineKHE commented Apr 9, 2019 via email

@jrgarcia
Copy link
Contributor

jrgarcia commented Apr 9, 2019

@houcinedz You can use one of the management SDKs that use the SOAP-based APIs. There is a Java version available as well as pyvmomi for Python, rbvmomi for Ruby, and govmomi for Go.

@hocineKHE
Copy link

hocineKHE commented Apr 9, 2019 via email

@jrgarcia
Copy link
Contributor

jrgarcia commented Apr 9, 2019

@houcinedz If you are having issues with pyvmomi, please report them on their issues or request an invite to the VMware {code} Slack team and join the #pyvmomi channel.

@hocineKHE
Copy link

hocineKHE commented Apr 9, 2019 via email

@hocineKHE
Copy link

hocineKHE commented Apr 9, 2019 via email

@jrgarcia
Copy link
Contributor

jrgarcia commented Apr 9, 2019

@houcinedz There are a few samples in the main pyvmomi repo, but almost all of the samples can be found in the community samples.

@hocineKHE
Copy link

hocineKHE commented Apr 9, 2019 via email

@yosiasz
Copy link

yosiasz commented Apr 20, 2020

I wish vm folder name was also included in the vm data coming back from rest api

rest/vcenter/vm/vm-1914/guest/folder
rest/vcenter/vm/vm-1914/folder

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants