vsphere-automation-sdk-rest icon indicating copy to clipboard operation
vsphere-automation-sdk-rest copied to clipboard

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

Open dkalaluhi opened this issue 6 years ago • 14 comments

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.

dkalaluhi avatar Oct 20 '17 14:10 dkalaluhi

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!

jrgarcia avatar Oct 20 '17 15:10 jrgarcia

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

any idea ???

hocineKHE avatar Apr 08 '19 13:04 hocineKHE

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

jrgarcia avatar Apr 09 '19 14:04 jrgarcia

i think i can't use REST API with vSphere 6.0

Le mar. 9 avr. 2019 à 16:02, J.R. Garcia [email protected] a écrit :

@houcinedz https://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vmware/vsphere-automation-sdk-rest/issues/14#issuecomment-481265027, or mute the thread https://github.com/notifications/unsubscribe-auth/AYf8NwKDLHc4JrNwxiRK6bogRl0hQBuqks5vfJ1jgaJpZM4QAyz2 .

hocineKHE avatar Apr 09 '19 14:04 hocineKHE

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

jrgarcia avatar Apr 09 '19 14:04 jrgarcia

Because i can't create a machine or get datacenter list, but i was connect ans get token, so which solution you think is better to let me automate vshere 6.0

Le mar. 9 avr. 2019 à 16:09, J.R. Garcia [email protected] a écrit :

@houcinedz https://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vmware/vsphere-automation-sdk-rest/issues/14#issuecomment-481267785, or mute the thread https://github.com/notifications/unsubscribe-auth/AYf8NyoKdElCRR_U25FwJZnUjpiMJ7Elks5vfJ7_gaJpZM4QAyz2 .

hocineKHE avatar Apr 09 '19 14:04 hocineKHE

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

jrgarcia avatar Apr 09 '19 14:04 jrgarcia

Pyvmomi i have ssl problem fo you have tuto or doc ?

Le mar. 9 avr. 2019 à 16:15, J.R. Garcia [email protected] a écrit :

@houcinedz https://github.com/houcinedz You can use one of the management SDKs that use the SOAP-based APIs. There is a Java version available https://code.vmware.com/web/sdk/6.0/vsphere-management as well as pyvmomi https://github.com/vmware/pyvmomi for Python, rbvmomi https://github.com/vmware/rbvmomi for Ruby, and govmomi https://github.com/vmware/govmomi for Go.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vmware/vsphere-automation-sdk-rest/issues/14#issuecomment-481270368, or mute the thread https://github.com/notifications/unsubscribe-auth/AYf8Ny_As7ztfXzx4_sHlunuYBOs-v0fks5vfKCDgaJpZM4QAyz2 .

hocineKHE avatar Apr 09 '19 14:04 hocineKHE

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

jrgarcia avatar Apr 09 '19 14:04 jrgarcia

thanks bro

Le mar. 9 avr. 2019 à 16:22, J.R. Garcia [email protected] a écrit :

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vmware/vsphere-automation-sdk-rest/issues/14#issuecomment-481273010, or mute the thread https://github.com/notifications/unsubscribe-auth/AYf8N4hXQPHt0BkH1gofYnLNx2k2Pybyks5vfKIIgaJpZM4QAyz2 .

hocineKHE avatar Apr 09 '19 14:04 hocineKHE

and what do you think about pyvmomi.samples. in git

Le mar. 9 avr. 2019 à 16:22, Hocine Kheddadji [email protected] a écrit :

thanks bro

Le mar. 9 avr. 2019 à 16:22, J.R. Garcia [email protected] a écrit :

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vmware/vsphere-automation-sdk-rest/issues/14#issuecomment-481273010, or mute the thread https://github.com/notifications/unsubscribe-auth/AYf8N4hXQPHt0BkH1gofYnLNx2k2Pybyks5vfKIIgaJpZM4QAyz2 .

hocineKHE avatar Apr 09 '19 14:04 hocineKHE

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

jrgarcia avatar Apr 09 '19 14:04 jrgarcia

how i can use https://github.com/vmware/pyvmomi-community-samples ??

Le mar. 9 avr. 2019 à 16:45, J.R. Garcia [email protected] a écrit :

@houcinedz https://github.com/houcinedz There are a few samples in the main pyvmomi repo, but almost all of the samples can be found in the community samples https://github.com/vmware/pyvmomi-community-samples.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vmware/vsphere-automation-sdk-rest/issues/14#issuecomment-481282856, or mute the thread https://github.com/notifications/unsubscribe-auth/AYf8N8GlKMcKzeIY6t9UvNGSAjR_T5Plks5vfKeMgaJpZM4QAyz2 .

hocineKHE avatar Apr 09 '19 14:04 hocineKHE

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

yosiasz avatar Apr 20 '20 19:04 yosiasz