Installing the Looker API Explorer on a Looker (Google Cloud core) instance on a private IP network

Note: Installing Looker Marketplace content directly on a Looker (Google Cloud core) instance on a private IP network is not currently supported. This article describes a method to manually download and install the Looker API Explorer application from the public repository. Other Looker Marketplace content can also be manually downloaded and installed, but the process may differ from the process shown in this article. 
 
The Looker API Explorer is a Looker application that provides the following:
Because the Looker API Explorer is stored in a public repository, it is not available to a Looker (Google Cloud core) instance on a private IP network configuration or on a configuration that uses both public IP and private IP networks. This document describes how to download the Looker API Explorer locally and then install it on your Looker (Google Cloud core) server.
  1. Before you can install the API Explorer, a Looker admin must enable the Extension Framework feature.
  2. Go to the looker-open-source / extension-api-explorer GitHub repository.
  3. In the GitHub repository, click Code, and then click Download Zip to download the API Explorer files on to your local computer.
  4. Extract the files from the downloaded zip file.
  5. Sign in to your Looker (Google Cloud core) instance.
  6. Enter Development mode.
  7. Create a new blank project for your downloaded files.
  8. Drag each of the extracted files, except for the LICENSE.lkml file, from your local file system to the File Browser in your new LookML project. You must drag each file individually:

    drag-and-drop-to-ide.gif

    Note: The LICENSE.lkml file provides information about the use of the API Explorer. However, it is not valid LookML, so if you add it to your project, it will cause LookML validation errors.

  9. The application requires a valid connection name. In the manifest.lkml file there is a constant LookML parameter called CONNECTION_NAME that includes a value subparameter. Enter the name of a valid database connection in the value subparameter. For example:

    constant: CONNECTION_NAME {
      value: "sample_bigquery_connection"
      export: override_optional
    }


  10. The project_name LookML parameter is not supported in Looker (Google Cloud core). Remove the project_name parameter from the manifest.lkml file by either deleting the project_name line or by adding a hashtag character at the beginning of the project_name parameter to make it a comment. For example:

    # project_name: "api-explorer"

  11. To save the edit to the manifest.lkml file, click Save Changes.
  12. If you have not already created a Git repository, create a bare git repository on your Looker server.
  13. Click Validate LookML.
  14. Click Commit Changes and Push.
  15. Enter a commit message and click Commit.
  16. Click Deploy to Production.
The API Explorer should now appear as an option under the Applications menu in Looker (Google Cloud core).
Contributors
Comments
Roderick
Community Manager
Community Manager

Good stuff! Thanks so much for sharing! 

Version history
Last update:
‎03-11-2024 05:00 PM
Updated by: