To create OneDrive storage for the File Protect appliance using the CLI:
Enable the CLI configuration mode:
hostname > enable hostname # configure terminal
Generate OneDrive admin consent authorization and paste the URL generated from the
authorizecommand into a Web browser. Copy the tenant ID value for Step 3.hostname (config) # fmps o365 authorize Paste the following URL in your browser and approve the app's access. Copy the value of 'tenant=' and use with cli: fmps o365 cvonnect tenant-id* https://login.microsoftonline.com/common/adminconsent?redirect_uri=https%3A%2F%2 Fwww.fireeye.com&client_id=49b9606f-50dd-4ee1-b080-70e10cb855d0Below is a sample of an admin consent containing a
tenant=property value retrieved from the redirect URL in the Web browser..png)
Get an access token for API communication for the tenant ID retrieved from Step 2.
hostname (config)# fmps o365 connect tenant-id <OneDriveTenantID>Enter a unique name for the OneDrive storage and the OneDrive quarantine folder location.
hostname (config) # fmps storage create o365 name <OneDriveStorageName> app onedrive email <AdminEmail>
OneDrivestorage connected successfully.
View your OneDrive storage configuration.
hostname (config) # show fmps storage name MyOneDriveStorage Storage type: o365 Name: MyOneDriveStorage App: onedrive Quarantine Email: admin@fireeye.com Status: Office 365 configured and connectedSave your changes.
hostname (config) # write memory