Skip to Content

Create a Destination to Connect Google Drive

Create destinations in your SAP BTP cockpit to connect Google Drive with Document Management Service, Integration Option.
You will learn
  • How to download key from the Google Cloud console
  • How to configure a basic HTTP destination
  • What are some of the additional properties you need to add while configuring the destination?
  • How to specify the Google parameters that are required to create a destination
Vikramkulkarni01Vikram KulkarniJanuary 5, 2024
Created by
Vikramkulkarni01
June 13, 2023
Contributors
Vikramkulkarni01

Prerequisites

Information

Destinations are key building blocks in SAP BTP, and are used to define connections for outbound communication from your application to remote systems. These remote systems can be on-premises or in the cloud. A destination has a name, a URL, authentication details, and some other configuration details.

  • Step 1
    1. Logon to the Google Cloud console.

    2. In the Google Cloud console, navigate to Menu, select your project and choose IAM & Admin > Service Accounts.

      Google Service Accounts
    3. Select and click on your service account. If it is not available, you can create a new one and select it.

      Selecting Service Account
    4. Once you are on the service account page, click Keys > Add key > Create new key. Select JSON, then click Create.

      ServiceKey

    Results: Your new public/private key pair is generated and downloaded to your machine as a new file. The values from this file will be used in the next step, so please keep it accessible.

  • Step 2

    Click on the tile of your Cloud Foundry subaccount.

    Accessing Subaccount
  • Step 3

    Navigate to Connectivity and click on the Destinations button on the left panel. Click New Destination to open a new destination configuration form.

    CreateNewDestination
  • Step 4

    Enter all the following fields in the destination configuration section and confirm with Save.

    Field Name Value
    Name MyTest
    Type HTTP
    Description Destination to connect Google Drive
    URL https://www.googleapis.com/drive/v3
    Proxy Type Internet
    Authentication OAuth2ClientCredentials
    Client ID A client ID that is obtained from a JSON file.
    Client Secret Enter the key from the JSON file
    Token Service URL Type Dedicated
    Token Service URL A token URI that is obtained from a JSON file.

    And the following Additional Properties:

    > Note: Open the downloaded JSON file with public/private key pair from Google service accounts. For more information about the detailed steps, see Configure Service Account Access.

    Property Name Value
    google.client_email A client email obtained from a JSON file.
    google.private_key_id A private key ID obtained from a JSON file
    google.project_id A project ID obtained from a JSON file

    > Note:
    When connecting your services to SAP BTP services and on-premise systems, credentials are exposed in plain text to the person performing the configuration. Make sure that you’ve operational countermeasures in place to prevent unauthorized copies of credentials from being leaked.

    When you specify a URL with the HTTPS scheme, a checkbox Use default JDK truststore will appear. Ensure that this is checked.

    HTTPDestination
  • Step 5

    Click on the Check Connection icon on the newly created Destination to see if everything works.

    CheckDestinationConnection
  • Step 6

    What does the Check Connection dialog shows?

Back to top