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

Missing CVM Information in PRISM REST API v3


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
}

Best answer by Ricardo Soria

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

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

ktelep
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 540 replies
  • August 8, 2024

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...


  • Author
  • Voyager
  • 1 reply
  • Answer
  • August 8, 2024

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