Create a Destination to Connect Google Drive
Create destinations in your SAP BTP cockpit to connect Google Drive with Document Management Service, Integration Option.
Overview
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
Prerequisites
Prerequisites
- You’ve added entitlements for Document Management Service, Integration Option. For more information about entitlements, see Configure Entitlements and Quotas for Subaccounts
- You’ve created a service instance and service key of Document Management Service, Integration Option. For more information, refer to this tutorial Create a Service Instance and then a Service Key of SAP Document Management Service, Integration Option.
- You’ve added the roles
SDM_UserandSDM_Adminfor your user. - You’ve downloaded the JSON file with public/private key pair that is generated and downloaded to your local folder. For more information about the detailed steps, see Configure Service Account Access.
Steps
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
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.
Logon to the Google Cloud console.
In the Google Cloud console, navigate to Menu, select your project and choose IAM & Admin > Service Accounts.
!

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

Selecting Service Account 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.
Click on the tile of your Cloud Foundry subaccount.
!
Navigate to Connectivity and click on the Destinations button on the left panel. Click New Destination to open a new destination configuration form.
!
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.
!
Click on the Check Connection icon on the newly created Destination to see if everything works.
!
Resources
Discussion
Share feedback on this tutorial or join the conversation in SAP Community.