Google Drive
Connect & Ingest data from / into Google Drive
Setup
The following credentials keys are accepted:
Authentication Options
Option 1: Service Account Key File
key_file
(optional) -> Path to the service account JSON key file.
Option 2: Service Account Key Body
key_body
(optional) -> The service account JSON key content as a string. Or as Environment VariableKEY_BODY
.
Option 3: OAuth2 Credentials
client_id
(optional) -> OAuth2 client ID.client_secret
(optional) -> OAuth2 client secret.access_token
(optional) -> OAuth2 access token.refresh_token
(optional) -> OAuth2 refresh token.token_expiry
(optional) -> Access token expiry time in RFC3339 format.
Optional Parameters
folder_id
(recommended) -> Use a specific folder as the root directory instead of the actual Google Drive root.file_id
(optional) -> Direct access to a specific file by its Google Drive ID. When set, only read operations are supported.scopes
(optional) -> JSON array of Google Drive API scopes. Defaults to["https://www.googleapis.com/auth/drive"]
.
Using sling conns
sling conns
Here are examples of setting a connection named GDRIVE
. We must provide the type=gdrive
property:
Environment Variable
In JSON/YAML format:
Sling Env File YAML
Usage Examples
Last updated