Skip to content

A Go implementation of the CloudHealth Cloud Management Platform API

License

Notifications You must be signed in to change notification settings

nextgenhealthcare/cloudhealth-sdk-go

Repository files navigation

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.

About

A Go implementation of the CloudHealth Cloud Management Platform API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published