Quick Start
Set up your environment and use the REST API to communicate with Oracle Data Transforms by performing the following tasks.
- Setting the prerequisites
- Sending the first request
Prerequisites
| Prerequisite | More Information |
| Ensure your Data Transforms deployment is running and accessible. |
Autonomous AI Database: https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/access-adp-odt.html Marketplace: https://docs.oracle.com/en/database/data-integration/data-transforms/using/access-oracle-data-transforms.html |
| Know your Data Transforms host URL |
URL for Data Transforms hosted on Autonomous AI Database:
URL for Data Transforms launched from Marketplace:
|
| Know your Tenant OCID and database OCID. | |
For Marketplace deployments you need the base 64 encoding of your Data
Transforms username:password |
For example, user123:pass456 becomes
dXNlcjEyMzpwYXNzNDU2 |
Send your first request
To make your first request try to request a token for each deployment.
Autonomous AI Database Deployments
- Request a token by calling the
odi/broker/pdbcs/public/v1/tokenendpoint.Example using cURL:
curl 'https://<host-url>/odi/broker/pdbcs/public/v1/token' -H 'Content-Type: application/json' -d '{"username":"<username>","password":"<password>","tenant_name":"<tenant OCID>","database_name":"<database name>","cloud_database_name":"<database OCID>","grant_type":"password"}' - Use the obtained access token as your Bearer token in the Authorization header to call
any other endpoints.
Example using cURL:
curl 'https://<host-url>/odi/dt-rest/v2/about' -H 'Authorization: Bearer <access_token> -d
- Request a token by calling calling
/dt-rest/v2/authentication/tokenendpoint using Basic Authentication.Example using cURL:
curl 'http://<host_ip>:9999/dt-rest/v2/authentication/token -H 'Authorization: <base64_username:password>' - Use the obtained access token as your Bearer token in the Authorization header to call
any other endpoints.
Example using cURL:
curl 'https://<host-ip>:9999/dt-rest/v2/about' -H 'Authorization: Bearer <access_token> -d