Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.55 KB

File metadata and controls

45 lines (28 loc) · 1.55 KB

GoDoc Go Report Card

CloudHealth API in Go

A Go wrapper for the CloudHealth Cloud Management Platform API.

Getting Started

Run the following command to retrieve the SDK:

go get -u github.com/nextgenhealthcare/cloudhealth-sdk-go

You will also need an API Key from CloudHealth. For more information, see Getting Your API Key

import "github.com/nextgenhealthcare/cloudhealth-sdk-go"

client, _ := cloudhealth.NewClient("api_key", "https://chapi.cloudhealthtech.com/v1/")

account, err := client.GetAwsAccount(1234567890)
if err == cloudhealth.ErrAwsAccountNotFound {
	log.Fatalf("AWS Account not found: %s\n", err)
}
if err != nil {
	log.Fatalf("Unknown error: %s\n", err)
}

log.Printf("AWS Account %s\n", account.Name)

Contributing

Any and all contributions are welcome. Please don't hesitate to submit an issue or pull request.

Roadmap

The initial release is focused on being consumed by a Terraform provider in AWS environments such as support for managing AWS Accounts in CloudHealth. Eventually, we plan to introduce support for perspectives and other vendor integrations such as Datadog.

Development

Run unit tests with make test.