Sample Exchange

 View Only

Workspace ONE Intelligence Report Download 

Mar 07, 2023 06:10 PM

This script leverages Workspace ONE Intelligence API to automate the process of getting the latest data from Workspace ONE Intelligence, downloading, and saving the report as CSV. Please see more information in the readme.md file for details.

Overview

Author: Targoon Siripanichpong

Email: tsiripanichpon@vmware.com

Date Created: 3/7/2023

Platform: Python, Powershell

Purpose

Leveraging Workspace ONE Intelligence API to automate the process of getting the latest data from Workspace ONE Intelligence, downloading, and saving the report as CSV.

Requirements

  1. Generate Workspace ONE Intelligence Service Account (getting client ID and client sercret)
  2. Create a report and share it with the Service Account
  3. Obtain the report ID

How to execute the script

Execute the script using the following parameters:

Example (Python): python3 IntelligenceReportDownload.py -Region "sandbox" -ReportId "XXX" -ClientId "XXX" -ClientSecret "XXX" -OutFile "device_report.csv"

Example (Powershell): .\Intelligence_report_download_ps.ps1 -Region "sandbox" -ReportId "XXX" -ClientId "XXX" -ClientSecret "XXX" -OutFile "device_$(Get-Date -Format "yyyyMMddHHmmss").csv"

Change Log

3/7/2023 - Initial upload


#WorkspaceONEIntelligence
#PowerShell
#MIT
#python

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
zip file
Workspace-ONE-Intelligence-Report-Download-main.zip   4 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Comments

Oct 23, 2023 07:56 PM

I get the error: Intelligence_report_downloadTest.py: error: the following arguments are required: -Region, -ReportId, -ClientId, -ClientSecret, -OutFile even tho I updated that in the arg in the py file? is there away to run this in Power Bi to pull in reports?

Oct 23, 2023 07:56 PM

I get the error: Intelligence_report_downloadTest.py: error: the following arguments are required: -Region, -ReportId, -ClientId, -ClientSecret, -OutFile even tho I updated that in the arg in the py file? is there away to run this in Power Bi to pull in reports?

Related Entries and Links

No Related Resource entered.