IBM Cloud DrAutomation Go SDK 0.1.0

April 28, 2026 · View on GitHub

Build Status semantic-release

IBM Cloud DrAutomation Go SDK 0.1.0

Go client library to interact with the various IBM Cloud DrAutomation services APIs.

Disclaimer: this SDK is being released initially as a pre-release version. Changes might occur which impact applications that use this SDK.

Table of Contents

Overview

The IBM Cloud DrAutomation services Go SDK allows developers to programmatically interact with the following IBM Cloud services:

Service Name - PlanPackage name
DrAutomation Servicedrautomationservicev1
PowerHA Servicepowerhaautomationservicev1

Prerequisites

  • An IBM Cloud account.
  • An IAM API key to allow the SDK to access your account. Create one here.
  • Go version 1.25 or above.

Installation

The current version of this SDK: 0.1.0

Go modules

If your application uses Go modules for dependency management (recommended), just add an import for each service that you will use in your application.

Example – DrAutomation Service-Plan

import (
	"github.com/IBM/dra-go-sdk/drautomationservicev1"
)

Example – PowerHA Service-Plan

import (
	"github.com/IBM/dra-go-sdk/powerhaautomationservicev1"
)

Next, run go build or go mod tidy to download and install the new dependencies and update your application's go.mod file.

In the example above, the drautomationservicev1 part of the import path is the package name associated with the Example Service service. See the service table above to find the approprate package name for the services used by your application.

go get command

Alternatively, you can use the go get command to download and install the appropriate packages needed by your application:

Example – DrAutomation Service-Plan

go get -u github.com/IBM/dra-go-sdk/drautomationservicev1

Example – PowerHA Service-Plan

go get -u github.com/IBM/dra-go-sdk/powerhaautomationservicev1

Be sure to use the appropriate package name from the service table above for the services used by your application.

Using the SDK

For general SDK usage information, please see this link

Environment Configuration

The SDK can be configured using environment variables. Here's an example configuration:

DrAutomation Service Configuration

# Authentication type
export DR_AUTOMATION_SERVICE_AUTH_TYPE=bearerToken

# Bearer token for authentication
export DR_AUTOMATION_SERVICE_BEARER_TOKEN=<bearerToken>

PowerHA Service Configuration

# Authentication type
export POWERHA_AUTOMATION_SERVICE_AUTH_TYPE=bearerToken

# Bearer token for authentication
export POWERHA_AUTOMATION_SERVICE_BEARER_TOKEN=<bearerToken>

Note: The bearer token shown above is an example. For production use:

  • Use the actual service endpoint URL
  • Generate your own valid IAM bearer token

Questions

If you are having difficulties using this SDK or have a question about the IBM Cloud services, please ask a question at Stack Overflow.

Issues

If you encounter an issue with the project, you are welcome to submit a bug report. Before that, please search for similar issues. It's possible that someone has already reported the problem.

Open source @ IBM

Find more open source projects on the IBM Github Page

Contributing

See CONTRIBUTING.

License

This SDK project is released under the Apache 2.0 license. The license's full text can be found in LICENSE.