Using vsphere-automation-sdk-go with vmware.local

Go integration

✓ Official SDK
Install
go get github.com/vmware/vsphere-automation-sdk-go
Quick start
import "vsphere-automation-sdk-go"

// Initialize client
client := vsphere-automation-sdk-go.NewClient("YOUR_API_KEY")
List nodes
curl \
  -H "Authorization: $API_KEY" \
  http://vmware.local/infra/nodes
List vms
curl \
  -H "Authorization: $API_KEY" \
  http://vmware.local/entities/vms
Show version info
curl \
  -H "Authorization: $API_KEY" \
  http://vmware.local/info/version
SDK on GitHub 📄 API Docs
SDK
vsphere-automation-sdk-go
Go
API
vmware.local
vmware.local:vrni
At a glance
Language Go
Endpoints161
Base URLhttp://vmware.local
✓ Official