Authentication
Section Contents
Authentication#
StreamSets Platform SDK for Python uses API Credentials for authentication.
For more details, refer to the StreamSets Platform Documentation.
Create API Credentials#
Using a web browser log into StreamSets Platform.
In the UI, API Credentials are as seen below:
Create new API credentials by referring to the StreamSets 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 Platform.
sch = ControlHub(credential_id=<credential ID>, token=<token>)