Enabling Data APIs

To use the Cloudera Data Visualization Data API, enable the required configuration settings and restart the Cloudera Data Visualization service.

Before invoking the Data API, you must first enable it in the web server configuration file and obtain an API key.

If you want to access the API outside of Cloudera AI jobs or sessions, you must enable Enable Unauthenticated Access for the application. For more information, see the Public Applications section in Securing Applications.

  1. Click the Gear icon in the main navigation bar to open the Administration menu and select Site Settings.
  2. Select Advanced Settings from the left navigation and scroll to the Advanced Site Settings section.
  3. Add the following ENABLE_API_KEYS and DATA_API_ENABLED settings.
    ENABLE_API_KEYS = True  # If you plan to access via API keys
    DATA_API_ENABLED = True
  4. Save your changes and restart the Cloudera Data Visualization service.