management-sdk-go

command module
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

README

Cohesity Management SDK GO

Overview

The Cohesity Management SDK provides an easy-to-use language binding to harness the power of Cohesity DataPlatform APIs in your Golang applications .These APIs are available for apps running on Cohesity Apps Infrastructure.

Getting Started

go get github.com/cohesity/management-sdk-go

Note: To update the package do:

 go get -u github.com/cohesity/management-sdk-go
How to use

In order to setup authentication and initialization of the API client, you need the following information.

Import library

import CohesityManagementSdk "github.com/cohesity/management-sdk-go/managementsdk"

Initialize the App Client.

Username := "cluster_admin"
Password := "cluster_password"
ClusterVip := "prod-cluster.eng.cohesity.com"
var Domain string // Set for AD user only.
client := CohesityManagementSdk.NewCohesitySdkClient(ClusterVip, Username, Password, Domain)

Get Cluster Basic Info

cluster = client.Cluster()
cluster.GetBasicClusterInfo()

Questions or Feedback :

We would love to hear from you. Please send your questions and feedback to: cohesity-api-sdks@cohesity.com

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL