Skip to main content

Microsoft OneDrive - Download Files to Shipyard

Overview​

This blueprint can be used to download one or multiple files from OneDrive to Shipyard.

The match type selected greatly affects how this Blueprint works.

Variables​

NameReferenceTypeRequiredDefaultOptionsDescription
Client IDONEDRIVE_CLIENT_IDPasswordβœ…--The Client ID of the app created in Azure
Client SecretONEDRIVE_CLIENT_SECRETPasswordβœ…--The secret value of the app created in Azure
TenantONEDRIVE_TENANTAlphanumericβœ…--The ID of the tenant associated with the app
User EmailONEDRIVE_USER_EMAILAlphanumericβœ…--The email of the user to impersonate. The user must be a member of the organization/tenant
File Match TypeONEDRIVE_FILE_MATCH_TYPESelectβž–exact_matchExact Match: exact_match

Regex Match: regex_match

The match type used to identify files to load
OneDrive File NameONEDRIVE_FILE_NAMEAlphanumericβœ…--The name of the file(s) to download from OneDrive
OneDrive Folder NameONEDRIVE_FOLDER_NAMEAlphanumericβž–--The folder name within OneDrive where the files reside. If omitted, the blueprint will search within the root directory
Shipyard Folder NameONEDRIVE_LOCAL_FOLDER_NAMEAlphanumericβž–--The optional name of the folder where the data should be downloaded to in Shipyard
Shipyard File NameONEDRIVE_LOCAL_FILE_NAMEAlphanumericβž–--The name of the file(s) once downloaded from OneDrive. If omitted, the original file name will be used

YAML​

Below is the YAML template for this Blueprint and can be used in the Fleet YAML Editor.

source:
blueprint: Microsoft OneDrive - Download Files to Shipyard
inputs:
ONEDRIVE_CLIENT_ID: null ## REQUIRED
ONEDRIVE_CLIENT_SECRET: null ## REQUIRED
ONEDRIVE_TENANT: null ## REQUIRED
ONEDRIVE_USER_EMAIL: null ## REQUIRED
ONEDRIVE_FILE_MATCH_TYPE: exact_match
ONEDRIVE_FILE_NAME: null ## REQUIRED
ONEDRIVE_FOLDER_NAME: null
ONEDRIVE_LOCAL_FOLDER_NAME: null
ONEDRIVE_LOCAL_FILE_NAME: null
type: BLUEPRINT
guardrails:
retry_count: 1
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- '180'
- '181'
- '182'
- '183'
- '184'
- '200'
- '202'
- '203'
- '204'
- '205'
- '206'
- '207'
- '208'
- '209'
- '210'
- '249'