Establishing a Connection
The objects available within our connector are accessible from the "cdata.connect" module. To use the module's objects directly:
- Import the module as follows:
import cdata.connect as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("AuthScheme=basic;URL=http://hostname:port/rest.rsc;User=my_user;Password=my_password;")
Connecting to CData Connect Cloud
Follow these steps to connect to CData Connect Cloud:
- AuthScheme: Select OAuth.
- Click Test Connection or Sign In to open the OAuth sign in page.
- Enter your CData Connect Cloud credentials and sign in.
Connecting to CData Connect Server
Enter following connection properties to connect to CData Connect Server:
- AuthScheme: Select Basic.
- URL: The REST URL found on the Endpoints page of the Admin Console.
- User: A user that you configured in the Connect Server dashboard.
- Password: The AuthToken for the chosen user.