Import of saved report views
You use the POST
operation on the api/reports
element
to import a saved report view from another instance of License Metric Tool.
Resource URL
https://hostname:port/api/reports
Resource information
Operation details | Description |
---|---|
Purpose | Imports a saved report view from another instance of License Metric Tool. |
HTTP method | POST |
Resource URI | https://hostname:port/api/reports |
Request headers |
|
Request payload | Saved reports element |
Request Content-Type |
|
Response headers |
|
Response payload | n/a |
Response Content-Type |
|
Normal HTTP response codes |
|
Error HTTP response codes |
For more details about each error code, check the tema.log log file that is in the install_dir/wlp/usr/servers/server1/logs/ directory. |
Example HTTP conversation
- Request
-
POST https://hostname:port/api/reports
- Request header
-
Content-Type: application/json Accept-Language: en-US Token: <token>
- Request body
-
{ "id":4, "user_id":2, "pagestate_id":"7ebb0b0a018ab55fab8e6e40d5eb62529ea38fad", "name":"pvu_report", "path":"/sam/pvuonlysubcapreports", "private":true, "state":{ "columns":["product","quantity","hwm_history"], "criteria":{"and":[["quantity",">","200"]]}, "grid_options":["autosize_columns"], "order":{ "asc":true, "col":"quantity" }, "time_range":{ "max":"2014-07-21T10:18:04Z", "min":"2014-04-21T22:00:00Z", "type":"absolute_to_now", "units":"days", "value":"90" }, "column_order":{ "hwm_history":1, "product":0, "quantity":2 }, "column_widths":{ "hwm_history":180, "product":524, "quantity":719 }}}
- Response
-
HTTP/1.1 200 OK