elasticio / microsoft-onedrive-component

elastic.io iPaaS integration component for Microsoft OneDrive
https://www.elastic.io
2 stars 1 forks source link
elasticio elasticio-component onedrive onedrive-client

Microsoft OneDrive Component

Table of Contents

Description

Microsoft OneDrive Component is designed to manage files and folders in OneDrive service using Microsoft Graph API

Environment variables

Name Mandatory Description Values
API_RETRIES_COUNT false Set how many time system try to make request to API on server errors (3 by default) integer above 0 and below 5
API_REQUEST_TIMEOUT false HTTP requests timeout in milliseconds (15000 by default) integer above 500 and below 20000

API version

Current release of component tested on Graph API v1 (https://graph.microsoft.com/v1.0/)

Credentials

Microsoft OneDrive uses the OAuth 2.0. How to register an application look here. Redirect URI for platform is https://{your-tenant-address}/callback/oauth2

Actions

Create Folder

Create new folder in provided path. If path not exist component will fail.

Configuration Fields

Input Metadata

Output Metadata

Metadata of created folder

Delete File

Action to delete item from OneDrive by provided path in selected disc.

Configuration Fields

Input Metadata

Output Metadata

Get File

Lookup a single file by its path.

Configuration Fields

Input Metadata

Output Metadata

File information as JSON object, if Enable File Attachments checked, there also will be additional field attachmentUrl with link to file on platform

Upsert File

Updates (if record exist) or creates a new file

Configuration Fields

Input Metadata

If Upload single file checked, there will be 2 fields:

If Upload single file unchecked:

Output Metadata

Result object from upsert.

Triggers

Get New and Updated Objects Polling

Retrieve all the updated or created objects within a given time range.

Configuration Fields

Input/Output Metadata

None.

Output Metadata

Depends on Enable File Attachments and Emit behavior fields.

Limitations