Determine the API URL for the virtual cluster you want to access
using the API. The API URL for managing jobs is different from the URL
used to obtain the access token.
In the Cloudera Data Platform (CDP) console, click the Data
Engineering tile and click Overview
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 using API.
Click JOBS API URL to copy the
link to your clipboard.
For example:
https://pmjkrgn5.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/dex/api/v1
When you make an API call, include the JWT as a bearer token.
For example, to list all jobs associated with the virtual cluster,
assuming you have saved the token as an environment variable named
CDE_TOKEN: