Skip to main content
Question

A lot of VM off

  • July 29, 2026
  • 1 reply
  • 17 views

Hi, I have a nutanix cluster with a lot of VM’s in state Off i want to know if exist a safety way to “depure/eliminated”, or exist a way to know how much time a specific vm is this status (shutdown)?

1 reply

jarrodl
Forum|alt.badge.img+2
  • Vanguard
  • July 30, 2026

Using v4 of the API, the updateTime could be a measure of when a VM was last updated since that was most likely the last action done against the VM.

 

The one edge case for this would be if someone updates the VM config after powering it off.

VMM API Endpoint: https://{host}:{port}/api/vmm/v4.2/ahv/config/vms/{extId}

"name": "Test VM",
"description": "Description for your VM",
"createTime": "2009-09-23T14:30:00-07:00",
"updateTime": "2009-09-23T14:30:00-07:00",

 

If you wanted something that is a more accurate reflection, you can review the task history to fetch when the VM was powered off, either via Prism Central or Prism Element:

 

To script this you will need to refer to the tasks API endpoint

Task API endpoint: https://{host}:{port}/api/prism/v4.3/config/tasks