Missing CVM Information in PRISM REST API v3 | Nutanix Community
Skip to main content

I’m trying to retrieve all VM and CVM using the following endpoint in PowerShell

 

https://example.com:9440/api/nutanix/v3/vms/list


I get all VM information back as requested but unfortunately I’m not getting any CVM and there is no information related to this in the offial API documentation.

As far as I understand in version 1 you would get all vms and cvms using same endopint (vm/list)

Is there something I’m missing to set up in order to get the controller vitrual machines ? 

{
    "kind"  = "vm"  
    "length" =  50000
    "offset" =  0
}

What user are you using for the requests.  Try doing the request with the Admin user, as I believe they’re filtered out for non-admin users.

Also, you could try passing a filter that reads: include_cvms=true.   Worth a try...


I just got the admin role but I got the same result. 

I found out it has something to do with API versioning, I don’t think there is no way to get thos objects though.

https://next.nutanix.com/how-it-works-22/unable-to-retrieve-cvm-from-v2-v3-api-39756?sort=dateline.desc#comments