Skip to main content
Question

Nutanix V4.1 API - Error Compute-Recommendations

  • May 27, 2026
  • 0 replies
  • 18 views

Hi All,

I’m developing a script to move away from GUI LCM click-ops for our Prism Central instances, I’m having some trouble with the lifecycle V4.1 namespace.

https://{pc-ip}:9440/api/lifecycle/v4.1/operations/$actions/compute-recommendations

I’m getting errors trying to POST the following data. I understand recommendationSpec expects the UUID and targetVersion but I simply can’t get this to work, any suggestions?

I’m following this documentation → https://developers.nutanix.com/api-reference?namespace=lifecycle&version=v4.1

I have both a NTNX-Request-ID and X-Cluster-ID in my request, I recieve a a 400 bad request response.

{
"recommendationSpec": [
{ "entityUuid": "<LCM-uuid>", "toVersion": "3.1.0.1" },
{ "entityUuid": "<Foundation-uuid>", "toVersion": "5.7.1" },
{ "entityUuid": "<AOS-uuid>", "toVersion": "7.3.1.6" },
{ "entityUuid": "<AHV-uuid>", "toVersion": "20230302.100173" }
]
}