vmware-archive / vsphere-automation-sdk-rest

REST (Postman and JavaScript) samples and API reference documentation for vSphere using the VMware REST API
MIT License
198 stars 107 forks source link

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

Open dkalaluhi opened 7 years ago

dkalaluhi commented 7 years ago

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 commented 7 years ago

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 commented 5 years ago

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

any idea ???

jrgarcia commented 5 years ago

@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 commented 5 years ago

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

Le mar. 9 avr. 2019 à 16:02, J.R. Garcia notifications@github.com 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 .

jrgarcia commented 5 years ago

@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 commented 5 years ago

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 notifications@github.com 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 .

jrgarcia commented 5 years ago

@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 commented 5 years ago

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

Le mar. 9 avr. 2019 à 16:15, J.R. Garcia notifications@github.com 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 .

jrgarcia commented 5 years ago

@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 commented 5 years ago

thanks bro

Le mar. 9 avr. 2019 à 16:22, J.R. Garcia notifications@github.com 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 commented 5 years ago

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

Le mar. 9 avr. 2019 à 16:22, Hocine Kheddadji khedadjihoucine@gmail.com a écrit :

thanks bro

Le mar. 9 avr. 2019 à 16:22, J.R. Garcia notifications@github.com 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 .

jrgarcia commented 5 years ago

@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 commented 5 years ago

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

Le mar. 9 avr. 2019 à 16:45, J.R. Garcia notifications@github.com 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 .

yosiasz commented 4 years ago

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