Authentication


StreamSets DataOps Platform SDK for Python uses API Credentials for authentication.

For more details, refer to the StreamSets DataOps Platform Documentation.

Create API Credentials

Using a web browser log into StreamSets DataOps Platform.

In the UI, API Credentials are as seen below:

../_images/api_credentials.png

Create new API credentials by referring to the StreamSets DataOps Platform Documentation.

For the purpose of this documentation, the above API Credentials will be referred as <credential ID> and <token>.

Connecting to Control Hub

Connect to Control Hub by creating an instance of streamsets.sdk.ControlHub, passing in the API Credentials.

# Connect to the StreamSets DataOps Platform.
sch = ControlHub(credential_id=<credential ID>, token=<token>)