Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Nutanix v4 SDK Sample Script

Code sample to demonstrate use of the new Nutanix v4 APIs via Go SDK.

Requires Prism Central 2024.1 or later and AOS 6.8 or later

Usage

Example instructions are for a Linux or Mac OS X environment.

  • Install Go in your local environment as per the Go documentation

  • Create folder for your Go development (example only)

    mkdir ~/godev
    cd ~/godev
    
  • Install dependencies, including the Nutanix Go SDKs:

    go mod init nutanixdev/v4api_sdk
    go get github.com/nutanix/ntnx-api-golang-clients/vmm-go-client/v4/...@v4.0.1-beta.1
    go get golang.org/x/term
    
  • Run script:

    go run list_images_sdk.go -pc_ip=<prism_central_ip_address_or_fqdn> -username=<prism_central_username> [-debug]
    

    Note: User will be prompted for password. If -debug is specified, additional debug information will be shown during script execution.

Screenshot

Example script execution