Exporting and importing a saved report view
To export a saved report view to another instance of BigFix Inventory, check the ID of the report view in the source instance of BigFix Inventory. Then, use the GET operation to retrieve the definition of the saved report view. Next, use the POST operation to import it to another instance of BigFix Inventory.
About this task
Procedure
- Check the identifier of the saved report view.
- Obtain API tokens from both instances of BigFix Inventory.
- Hover over the User icon , and click Profile.
- In the API Token line, click Show token.
- Open the command line interface and change to the location where cURL is installed.
- To export the report view, use the following GET request:
Where:curl -o C:\saved_reports\report_definitions\pvu_subcapacity.txt -X GET server_host_name:port_number/api/reports/report_ID? token=5edd5aey7cd91467h08450bc258c31f0ce706543
- -o
- Specifies the path to the file where the definition of the saved report view is to be saved.
- -X
- Specifies the type of HTTP request.
- report_ID
- Specifies the identifier of the saved report view that is to be exported.
HTTP/1.1 200 OK
- To import the saved report view to another instance of BigFix Inventory,
use the following POST request:
Where:curl -H "Content-Type: application/json" -X POST -d "@C:\saved_reports\report_definitions\pvu_subcapacity.txt" server_host_name:port_number/api/reports? token=5cd3gh78499496e89a3246ab343474e85d8bc8fc
- -H
- Specifies the header of the request.
- -X
- Specifies the type of HTTP request.
- -d
- Specifies the path to the file where the definition of the saved report view was saved.