go get github.com/rubrikinc/rubrik-sdk-for-go/rubrikcdm
package main
import (
"fmt"
"log"
"github.com/rubrikinc/rubrik-sdk-for-go/rubrikcdm"
)
func main() {
rubrik, err := rubrikcdm.ConnectEnv()
if err != nil {
log.Fatal(err)
}
// GET the Rubrik cluster Version
clusterSummary, err := rubrik.Get("v1", "/cluster/me")
if err != nil {
log.Fatal(err)
}
fmt.Println(clusterSummary.(map[string]interface{})["version"])
// Simplified Function to determine the Rubrik cluster version
clusterVersion, err := rubrik.ClusterVersion()
if err != nil {
log.Fatal(err)
}
fmt.Println(clusterVersion)
}
Here are some resources to get you started! If you find any challenges from this project are not properly documented or are unclear, please raise an issue and let us know! This is a fun, safe environment - don't worry if you're a GitHub newbie! ❤️
- Quick Start Guide
- SDK for Go Documentation
- Rubrik API Documentation
- VIDEO: Getting Started with the Rubrik SDK for Go
- BLOG: Introducing the Rubrik SDK for Go
We glady welcome contributions from the community. From updating the documentation to adding additional functions, all ideas are welcome. Thank you in advance for all of your issues, pull requests, and comments! ⭐
We encourage all contributors to become members. We aim to grow an active, healthy community of contributors, reviewers, and code owners. Learn more in our Welcome to the Rubrik Build Community page.
We'd love to hear from you! Email us: build@rubrik.com 💌