Is there a way to fetch the efficiency state for VMs (Bully, Over Provisioned, Constrained, Inactive VM, Good) using API requests?"
Solved
Get efficiency state for VMs using API
Best answer by Ahmed_Elyacoubi
this works:
get https://pc_ip:9440/api/nutanix/v3/groups
body:
{
"entity_type": "mh_vm",
"query_name": "eb:data:Efficiency-1713467304436",
"grouping_attribute": " ",
"group_count": 3,
"group_offset": 0,
"group_member_count": 120,
"group_member_sort_attribute": "vm_name",
"group_member_sort_order": "ASCENDING",
"group_member_attributes": [
{
"attribute": "vm_name"
},
{
"attribute": "capacity.vm_efficiency_status"
}
],
"filter_criteria": "(platform_type!=aws,platform_type==[no_val]);is_cvm==0;feature_name==VM_INEFFICIENCY_DETECTION"
}
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.