Getting a Cloudera Data Engineering API access token
Cloudera Data Engineering uses JSON Web Tokens (JWT) for API authentication. To interact with a virtual cluster using the API, you must obtain an access token for that cluster.
Determine the authentication endpoint
for your virtual cluster:
- Navigate to the Cloudera Data Engineering Overview page by clicking the Data Engineering tile in the Cloudera Data Platform (CDP) management console.
- In the CDE Services column, select the environment containing the virtual cluster you want to interact with.
- In the Virtual Clusters column on the right, click the Cluster Details icon on the virtual cluster you want to interact with.
- Click the link under GRAFANA CHARTS. The
hostname of the URL in your browser is the base URL, and
/gateway/authtkn/knoxtoken/api/v1/token
is the endpoint. For example:https://service.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/gateway/authtkn/knoxtoken/api/v1/token