Accessing the Cloudera Anywhere Cloud API
Review the methods that you can access the Cloudera Anywhere Cloud API based on your infrastructure setup.
Using the Anywhere Cloud Console
You can access the Cloudera Anywhere Cloud API using the Anywhere Cloud Console. After logging in to the Anywhere Cloud Console, you can select
and click on the API Explorer. This will
open the API documentation, where you can try out the different endpoints.
and click on the API Explorer. This will
open the API documentation, where you can try out the different endpoints.Using the REST API references
You can review the available API endpoints by opening the following REST API reference
documentation for Cloudera Anywhere Cloud:
- Anywhere Cloud Console REST API reference
- Authentication REST API reference
- Diagnostics REST API reference
Creating tokens for using the API
Create bearer tokens in exchange of your access keys required to use the Cloudera Anywhere Cloud API. The JWT tokens are obtained using the client_id and client_secret, which are bound to your identity.
Access keys let you create a reusable client_id and
client_secret pair that are bound to your user identity. You
exchange these credentials for short-lived JSON Web Tokens (JWT) bearer tokens.
These tokens are used to authenticate Cloudera Anywhere Cloud API
calls.
- Ensure that you know the domain name of your Cloudera Anywhere Cloud cluster, for example,
mycluster.example.com. - Ensure that you have valid user credentials. Before an external identity
provider is configured, use the LDAP credentials that were set during Cloudera Anywhere Cloud installation. After a SAML identity
provider is configured, the
curlmethod is not available to retrieve thehadoop-jwtsession cookie. Instead ofcurl, use the browser steps. - Ensure that you have installed
curl.
