API: List of VMs

Overview

In this exercise you will list all VMs on the specified cluster.

Note

Estimated time to complete: 5 MINUTES

Exercise: List the VMs

  1. Click + in the main window to create a new tab-window

  2. Click the dropdown and select POST

    • v3 standardizes on POST for listing to offer server-side filtering, grouping, and sorting
  3. Enter the URL to list images

    • https://{{prism_central_ip}}:9440/api/nutanix/v3/vms/list
  4. Configure basic authentication for this API call

    • Follow the same steps from the first exercise
    • v3 conforms to HTTP as a stateless protocol such that each API call is authenticated
  5. Set the media type to application/json

    • Follow the same steps 5 from the first exercise
  6. Fill out the body

    • Click the Body tab
    • Copy or type an empty dictionary in the json body as seen below
    {}
    
    ../_images/apimetajson3.png
  7. Click Send to submit the v3 API call

    • The intent response provides an array of VMs
../_images/vmlist.png