Skip to main content

IBM Cloud DrAutomation Python SDK

Project description

Build Status semantic-release

IBM Cloud DrAutomation Python SDK Version 0.1.0

Python client library to interact with 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 Python SDK allows developers to programmatically interact with the following IBM Cloud services:

Service Name - Plan Module Name Imported Class Name
DrAutomation Service ibm_dra_python_sdk.dr_automation_service_v1 DrAutomationServiceV1
PowerHA Service ibm_dra_python_sdk.powerha_automation_service_v1 PowerhaAutomationServiceV1

Prerequisites

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

Installation

To install, use pip:

python -m pip install --upgrade ibm-dra-python-sdk

Then in your code, you can import the appropriate service like this:

Example – DrAutomation Service-Plan

from ibm_dra_python_sdk.dr_automation_service_v1 import *

where dr_automation_service_v1 is the service's module name from the table above

Example – PowerHA Service-Plan

from ibm_dra_python_sdk.powerha_automation_service_v1 import *

where powerha_automation_service_v1 is the service's module name from the table above

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.md.

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ibm_dra_python_sdk-0.1.0.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ibm_dra_python_sdk-0.1.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file ibm_dra_python_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: ibm_dra_python_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for ibm_dra_python_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5d7146b5d61744df5954f0b59ebe7694819c0c59e81adeeee1bb955308a9f9bf
MD5 9b1e3954dc95250d684ab6d1266a7796
BLAKE2b-256 0ae3943d043b4608c6eb812813dc4d4a5918f3fdd107ede38f2776141e79969b

See more details on using hashes here.

File details

Details for the file ibm_dra_python_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ibm_dra_python_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a587f143240a05f59135614d7f4fdfe97095ffc2448199a1363c0676fe0a81d6
MD5 a351bc891b4dd547bca3407055dd16bc
BLAKE2b-256 c0516dcd9d54e2d9eb4995edd7d5252f0ee6bca16643971c5dbee2f46029095d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page