Export Dashboard
put
/serviceapi/dashboards.service/export
Exports 1 or more dashboards into a file.
The input must be a JSON array with the names of the dashboards that are going to be exported.
Request
Supported Media Types
- application/json
Path Parameters
-
checkOnly: boolean
Check and print a brief summary about what will be exported. Export will NOT be executed.
Root Schema : schema
Type:
Show Source
array
-
Array of:
string
An array with the name of the dashboard that will be exported.Example:
["demoDashboard01", "demoDashboard02"]
Response
Supported Media Types
- application/json
200 Response
Successful operation - Export result will be stored in
Examples
Create a new JSON file called export_input.json and paste the following, this JSON file will contain the names of the dashboards to be exported:
["dashboardName1", "dashboardName2"]
This cURL call will export the selected dashboards:
curl -u ${tenant_ID}.${OMC_USERNAME}:${PASSWORD} -X PUT -H "Content-Type:application/json" "https://{OMC_URL}/serviceapi/dashboardModel/export" --data @/<yourpath>/export_input.json -o /<yourpath>/export_output
Example of Response
The following shows an example of the response body and the export result will be stored into 'export_output' file. This file will contain the dashboard's information that is required for the import endpoint.
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 293k 0 293k 0 18 185k 11 --:--:-- 0:00:01 --:--:-- 185k