Skip to content

adityag2706/Batch-v3-API-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Batch-v3-API-Go

Golang script to send batch tasks to Prism Central

Batch API Script golang V3

Please refer to Nutanix Developer portal Go samples link for dependencies: https://github.com/nutanixdev/code-samples/tree/master/go

This script sends batch v3 API calls to Prism Central to perform a set of tasks. The tasks are defined in the batch_request.json file.

User, password login details for Prism Central in the script need to be updated. You also need to edit the Prism Central VIP in the code. After the above updates are done code can be built or run directly.

The script requires batch_request.json as file as this file contains the payload for the Batch call. You can leave the file in the same directory as the go binary or point the code to the file location during run time.

Usage Image:

Go v3 Batch API Script Usage

Please note the json payload file contains a cluster reference that needs to be edited ; it needs to include Cluster uuid and cluster name for the PE cluster on which the create VM task will be executed . Cluster uuid can be obtained by running “ncli cluster info” from PE CVM or from Prism UI

About

Golang script to send batch tasks to Prism Central

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages