We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Auto deploy Dashboards, Data sources, Widgets to Dashboard Server from a Directory

You can auto deploy the dashboards, widgets, and data sources from a directory by using the following power shell file. You can do the following operations using the power shell file.

  1. Add/update dashboards from a directory.
  2. Add/update widgets from the directory.
  3. Add/update data source from the directory.

Download the file from the following link,

http://www.syncfusion.com/downloads/support/directtrac/212119/ze/AutomateDeployment209766437.zip  

Add/update dashboards from the directory

To add/update dashboards from the directory, you need to pass these parameters (serverUrl, username, password, directoryPath, ItemType, name, action, categoryName) as input.

 

Add dashboard

PARAMETERS

DESCRIPTION

serverUrl

URL to connect with the Dashboard Server (mandatory).

username

Username of the user who is in active state in the Dashboard Server, and the user must have permission to add the dashboard (mandatory).

 

password

Password of the user (mandatory).

directoryPath

Path where the dashboard files will reside (mandatory).

ItemType

ItemType can be a dashboard (mandatory).

 

name

Name of the dashboard that needs to be add into the server. Consider the file name as an item name if the file name is not mentioned.

action

Add (If no parameters have been passed, the script will read the directory and add the dashboards that do not exist in the Dashboard Server).

categoryName

Name of the category for the dashboards that want to be published. Consider the directory name as a category if the category name is not mentioned.

 

 

Update dashboard

PARAMETERS

DESCRIPTION

serverUrl

URL to connect with the Dashboard Server (mandatory).

username

Username of the user who is in active state in the Dashboard Server, and the user must have permission to update the dashboard (mandatory).

 

password

Password of the user (mandatory).

directoryPath

Path where the dashboard files will reside (mandatory).

ItemType

ItemType can be a dashboard (mandatory).

 

name

Name of the dashboard that needs to be update into the server. Consider the file name as item name if the name is not mentioned.

action

Update (If no parameters passed, the script will read the directory and update the dashboards that already exists in the Dashboard Server).

categoryName

Name of the category for the dashboards that want to be published. Consider the directory name as a category if the category name is not mentioned.

 

Add/update widgets from the directory

To add/update widgets from a directory, you need to pass these parameters (serverUrl, username, password, directoryPath, ItemType, name, action) as input.

 

Add widget

PARAMETERS

DESCRIPTION

serverUrl

URL to connect with the Dashboard server (mandatory).

username

Username of the user who is in active state in the Dashboard Server, and the user must have permission to add the widget (mandatory).

 

password

Password of the user (mandatory).

directoryPath

Path where the widget files will reside (mandatory).

ItemType

ItemType can be a widget (mandatory).

 

name

Name of the widget that needs to be add into the server. Consider the file name as item name if the name is not mentioned.

action

Add (If no parameters have been passed, the script will read the directory and add the widgets that do not exist in the Dashboard Server).

 

Update widget

PARAMETERS

DESCRIPTION

serverUrl

URL to connect with the Dashboard server (mandatory).

username

Username of the user who is in active state in the Dashboard Server, and the user must have permission to add the widget (mandatory).

 

password

Password of the user (mandatory).

directoryPath

Path where the widget files will reside (mandatory).

ItemType

ItemType can be a widget (mandatory).

 

name

Name of the widget that needs to be update into the server. Consider the file name as an item name if the name is not mentioned.

action

Update (If no parameters have been passed, the script will read the directory and update the widgets that already exist in the Dashboard Server).

 

Add/update data source from the directory

To add/update the data source from the directory, you need to pass these parameters (serverUrl, username, password, directoryPath, ItemType, name, action) as input.

 

Add data source

PARAMETERS

DESCRIPTION

serverUrl

URL to connect with the Dashboard Server (mandatory).

username

Username of the user who is in active state in the Dashboard Server, and the user must have permission to add the data source (mandatory).

 

password

Password of the user (mandatory).

directoryPath

Path where the data source files will reside (mandatory).

ItemType

ItemType can be a data source (mandatory).

 

name

Name of the data source that needs to be add into the server. Consider the file name as an item name if the name is not mentioned.

action

Add (If no parameters have been passed, the script will read the directory and add the data sources that do not exist in the Dashboard Server).

 

Update data source

PARAMETERS

DESCRIPTION

serverUrl

URL to connect with the Dashboard Server (mandatory).

username

Username of the user who is in active state in the Dashboard Server, and the user must have permission to add the data source (mandatory).

 

password

Password of the user (Mandatory).

directoryPath

Path where the data source files will reside (mandatory).

ItemType

ItemType can be a data source (mandatory).

 

name

Name of the data source that needs to be update into the server. Consider the file name as item name if the name is not mentioned.

action

Update (If no parameters have been passed, the script will read the directory and update the data sources that already exists in the Dashboard Server).

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
9230 08/31/2018 09/18/2018 Dashboard Platform Dashboard Server
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.