You can list Cloudera Data Engineering (CDE) jobs using the API
by issuing a GET
request to the /jobs
endpoint.
Get an access token and save it as an environment variable as described
in Getting a Cloudera Data Engineering API
access token.
-
Determine the API URL for the virtual cluster you want to access
using the API:
- Navigate to the Cloudera Data Engineering
Overview page.
-
In the CDE Services column, select the environment
containing the virtual cluster you want to interact with using the API.
- In the Virtual Clusters column on
the right, click the Cluster Details icon
for the virtual cluster you want to interact with.
- Copy the URL under JOBS API
URL.
For example:
https://pmjkrgn5.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/dex/api/v1
- Issue a
GET
request to the
/jobs
endpoint:
curl -H "Authorization: Bearer ${CDE_TOKEN}" -X GET "https://pmjkrgn5.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/dex/api/v1/jobs"