Using API
After successfully deploying Cloudera Workflow Orchestrator, access it through API.
- Obtain your access token by performing steps 1 through 3 in the Creating tokens for using the API section.
-
Obtain the Cloudera Workflow Orchestrator URL
(
CWO_URL).- Access Anywhere Cloud Console.
- Sign in using your enterprise identity provider.
-
Click
Apps in the left navigation pane on the Anywhere Cloud Console. The list of deployed engines and the associated blueprints is displayed.
- In the Deployed Engines tab, search for the required Cloudera Workflow Orchestrator instance.
- Click on that instance. A details pane is displayed.
- Copy the URL available in the URL column.
-
Set the
ACCESS_TOKENandCWO_URLto run the Airflow API requests.Example
curl -H "Authorization: Bearer ${ACCESS_TOKEN}" ${CWO_URL}api/v2/dags/example_bash_operator {"dag_id":"example_bash_operator","dag_display_name":"example_bash_operator","is_paused":false,"is_stale":false....}For more information about using Airflow API, see Airflow API.
