Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.rst

Go Code Samples - multiple_vm_clone.go

This readme file is specifically for the multiple_vm_clone.go Go code sample.

To run this code sample, please ensure the following requirements are met:

  1. Go is already installed on your system

  2. You have the github.com/tidwall/gjson package installed:

    go get -u github.com/tidwall/gjson

Code Sample Details

This Go code sample creates multiple clones of the specified VM in a specified network using the Nutanix Prism Element v2.0 API.

JSON Parameters

The cloned VM parameters are specified via the JSON object within the enterCloneName function. Please modify the parameters there if the example parameters are not suitable for your environment.

Usage

  1. Build the script:

    go build
  2. Run the compiled program:

    ./multiple_clone_vm

Sample Screenshot

The screenshot shows the script being built and run.

Note: The system used in the screenshot already has the github.com/tidwall/gjson package installed.

./multiple_vm_clone.png