A Go wrapper for the CloudHealth Cloud Management Platform API.
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)
Any and all contributions are welcome. Please don't hesitate to submit an issue or pull request.
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.
Run unit tests with make test
.