Getting Cloudera Data Engineering job information using the API

You can get Cloudera Data Engineering job information using the API by issuing a GET request to the /jobs/<job_name> endpoint.

Get an access token and save it as an environment variable as described in Getting a Cloudera Data Engineering API access token

  1. Determine the API URL for the virtual cluster you want to access using the API:
    1. In the Cloudera Data Engineering UI, click Administration in the left navigation menu.
    2. In the Virtual Clusters section, navigate to the virtual cluster that you want to interact with, and click Cluster Details.
    3. Click Actions > Copy Jobs API URL to copy the URL.
      For example: https://pmjkrgn5.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/dex/api/v1
  2. Issue a GET request to the /jobs/<jobname> endpoint:
    curl -H "Authorization: Bearer ${CDE_TOKEN}" -X GET "https://pmjkrgn5.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/dex/api/v1/jobs/SparkPi"