Question

How to use the prism API to list VMs?

  • 24 February 2021
  • 2 replies
  • 484 views

Hello,

I’m using prism_services_java.jar that I’ve extracted from the SDK. My issue is that there is no documentation for the Java API, and I don’t know how to use

 

VMAdministration.getVMs()

 

I guess the parameters match the REST API, but I need the documentation to make it work.

Any help is appreciated, thanks.


2 replies

Userlevel 6
Badge +5

Hey @MassimoZ Here is some documentation related to REST APIs https://www.nutanix.dev/reference/prism_element/v2/api/vms/get-vms-uuid-getvm

 

https://www.nutanix.dev/reference

 

I hope this helps you. Let me know if you need anything else.:smile:

Thanks Anish! Unfortunately, this API requires the UUID, which I don’t have to begin with. I rather need to use https://www.nutanix.dev/reference/prism_element/v2/api/vms/get-vms-getvms/

 

However this query needs 7 parameters that I don’t know how to populate.

Reply