Cloudera AI Workbench Models (Legacy)PDF version

Authenticating clients for interacting with Cloudera AI Registry API

Clients that interact with the Cloudera AI Registry Standalone API and with model endpoints must obtain a JSON Web Token (JWT) from the Cloudera control plane, which must be passed as a Bearer token in HTTP requests sent to the serving API and endpoints.

To obtain JWT, run the following Cloudera CLI command:

$ CDP_TOKEN=$(cdp iam generate-workload-auth-token --workload-name DE | jq -r
   '.token')

In this comment, DE is the workload name.

Then pass CDP_TOKEN in the HTTP request header as follows
$ curl -H "Authorization: Bearer ${CDP_TOKEN}" <URL>

The token obtained using this method expires in one hour.

We want your opinion

How can we improve this page?

What kind of feedback do you have?