Question

NGT with APIv2 AHV not supported

  • 7 December 2020
  • 3 replies
  • 112 views

Hi, I’m trying to create a automated NGT install script for my environment:

 

Code:

curl --insecure --request POST --url https://x.x.x.x:9440/PrismGateway/services/rest/v2.0/vms/ef064f22-7ac8-4221-96dd-4cc6f2433dfb/manage_vm_guest_tools --header 'authorization: Basic xxxxx' --header 'content-type: application/json' --data '{"operation":"MOUNT","override_guest":true,"uuid":"ef064f22-7ac8-4221-96dd-4cc6f2433dfb"}'

 

Response:

{"message":"Hypervisor ahv not supported","detailed_message":null,"error_code":{"code":1101,"help_url":"http://my.nutanix.com"}}

 

AOS: 5.15.1


3 replies

Userlevel 5
Badge +5

Nutanix Dev states that “This API works only for Esxi.”

Userlevel 5
Badge +5

You would have to use APIv3 but then you might as well use inbuilt PC capability to perform bulk installation Prism Central Guide: Installing NGT on Multiple VMs

Hi, 

 

I resolved this with API v1. Thank you by your support.

 

Enabling NGT:

URL endpoint: https://x.x.x.x:9440/PrismGateway/services/rest/v1/vms/ef064f22-7ac8-4221-96dd-4cc6f2433dfb/guest_tools/

 

Body:
{
  "applications": {"Vss Snapshot": true},
  "enabled": true,
  "vmUuid": "ef064f22-7ac8-4221-96dd-4cc6f2433dfb"
}

 

Mounting NGT:

https://x.x.x.x:9440/PrismGateway/services/rest/v1/vms/ef064f22-7ac8-4221-96dd-4cc6f2433dfb/guest_tools/mount

 

Reply