List Dashboard User History
get
/serviceapi/dashboardModel/history/users/{userName}
Get all the actions that this user has performed on dashboards.
Request
Path Parameters
-
userName: string
The name of the user.
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : Action
Type:
object
This is the object that is returned whenever an action is performed.
-
actionDetail:
string
The value of the action type.
Values: SHARE_VIEW_PRIVILEGE | REVOKE_VIEW_PRIVILEGE |SHARE_MANAGE_PRIVILEGE |REVOKE_MANAGE_PRIVILEGE |CREATE | EDIT | DELETE | CHANGE_OWNER | WIDGET_DELETE_OUTSIDE | WIDGET_NAMECHANGE_OUTSIDE
Example:CREATE
-
actionTime:
string(date-time)
The time in UTC when the action completed.Example:
2017-12-23T21:08:45.998Z
-
actionType:
string
The type of action that was performed. Values: DATA_CHANGE | PRIVILEGE_CHANGEExample:
DATA_CHANGE
-
changedData(optional):
string
What data was changed for this action.Example:
demouser1
-
dashboardId:
string(BigInteger)
The id of the dashboard.Example:
5432361245
-
dashboardName:
string
The name of this dashboard.Example:
A Public Single Dashboard
-
id:
string(BigInteger)
The id of this action.Example:
1111
-
userName:
string
The user who is receiving this action.Example:
demouser
Examples
This cURL call will get all the actions that the user with name demouser has performed on every dashboard:
curl -u ${OMC_USERNAME}:${PASSWORD} -X GET "https://{OMC_URL}/serviceapi/dashboardModel/history/users/demouser"
Example of Response
The following shows an example of the response body.
[ { "id": "1", "dashboardId": "5432361245", "dashboardName": "A Shared Single Dashboard", "actionTime": "2019-04-23T12:49:47.605+0000", "userName": "demouser", "actionDetail": "EDIT", "actionType": "DATA_CHANGE" }, { "id": "2", "dashboardId": "5432361245", "dashboardName": "A Shared Single Dashboard", "actionTime": "2019-04-23T12:48:36.734+0000", "userName": "demouser", "actionDetail": "EDIT", "actionType": "DATA_CHANGE" }, { "id": "1", "dashboardId": "816584826123", "dashboardName": "Rex_is_using", "actionTime": "2019-04-17T04:55:22.417+0000", "userName": "demouser", "changedData": "{\"name\":\"Rex_is_using\",\"description\":\"\",\"enableDescription\":\"FALSE\",\"enableTimeRange\":\"GC\",\"enableEntityFilter\":\"GC\",\"enableRefresh\":true,\"showInHome\":true,\"sharePublic\":false,\"lastModifiedBy\":\"demouser11\",\"owner\":\"demouser11\",\"screenShotHref\":\"https://example.host.com/serviceapi/dashboardModel/1155/screenshot/1.46.0/images/15554.png\",\"optionsHref\":\"https://example.host.com/serviceapi/dashboardModel/1155/options\",\"href\":\"https://example.host.com/serviceapi/dashboardModel/1155/\",\"type\":\"NORMAL\",\"federationSupported\":\"NON_FEDERATION_ONLY\",\"shareStatus\":0,\"id\":\"1155\",\"createdOn\":\"2019-04-16T10:05:20.135+0000\",\"systemDashboard\":false,\"lastModifiedOn\":\"2019-04-17T04:55:22.417+0000\",\"tiles\":[{\"type\":\"DEFAULT\",\"row\":0,\"column\":1,\"height\":2,\"isMaximized\":false,\"tileId\":\"5951736557309968728530062705822754435200\",\"title\":\"Access Log Error Status Codes\",\"width\":6,\"widgetDeleted\":false,\"federationSupported\":\"NON_FEDERATION_ONLY\",\"PROVIDER_ASSET_ROOT\":\"assetRoot\",\"PROVIDER_NAME\":\"LogAnalyticsUI\",\"PROVIDER_VERSION\":\"1.0\",\"WIDGET_CREATION_TIME\":\"2015-12-15T02:31:02.922Z\",\"WIDGET_DESCRIPTION\":\"Top 4xx and 5xx errors codes in HTTP Access Logs. \",\"WIDGET_GROUP_NAME\":\"Log Analytics\",\"WIDGET_KOC_NAME\":\"emcla-visualization\",\"WIDGET_NAME\":\"Access Log Error Status Codes\",\"WIDGET_OWNER\":\"ORACLE\",\"WIDGET_SOURCE\":1,\"WIDGET_TEMPLATE\":\"/html/search/widgets/visualizationWidget.html\",\"WIDGET_UNIQUE_ID\":\"2017\",\"WIDGET_VIEWMODEL\":\"/js/viewmodel/search/widget/VisualizationWidget.js\",\"WIDGET_SUPPORT_TIME_CONTROL\":true,\"WIDGET_LINKED_DASHBOARD\":null,\"SELECTOR_INELIGIBLE\":false,\"tileParameters\":[]}]}", "actionDetail": "EDIT", "actionType": "DATA_CHANGE" }, { "id": "2", "dashboardId": "816584826123", "dashboardName": "Rex_is_using", "actionTime": "2019-04-17T04:54:25.972+0000", "userName": "demouser", "changedData": "{\"name\":\"Rex_is_using\",\"description\":\"\",\"enableDescription\":\"FALSE\",\"enableTimeRange\":\"GC\",\"enableEntityFilter\":\"GC\",\"enableRefresh\":true,\"showInHome\":true,\"sharePublic\":false,\"lastModifiedBy\":\"demouser11\",\"owner\":\"demouser11\",\"screenShotHref\":\"https://https://example.host.com/serviceapi/dashboardModel/1155/screenshot/1.46/images/15554.png\",\"optionsHref\":\"https://https://example.host.com/serviceapi/dashboardModel/1155/options\",\"href\":\"https://https://example.host.com/serviceapi/dashboardModel/1155\",\"type\":\"NORMAL\",\"federationSupported\":\"NON_FEDERATION_ONLY\",\"shareStatus\":0,\"id\":\"1155\",\"createdOn\":\"2019-04-16T10:05:20.135+0000\",\"systemDashboard\":false,\"lastModifiedOn\":\"2019-04-17T04:54:25.972+0000\",\"tiles\":[{\"type\":\"DEFAULT\",\"row\":0,\"column\":1,\"height\":2,\"isMaximized\":false,\"tileId\":\"5951736557309968728530062705822754435200\",\"title\":\"Access Log Error Status Codes\",\"width\":6,\"widgetDeleted\":false,\"federationSupported\":\"NON_FEDERATION_ONLY\",\"PROVIDER_ASSET_ROOT\":\"assetRoot\",\"PROVIDER_NAME\":\"LogAnalyticsUI\",\"PROVIDER_VERSION\":\"1.0\",\"WIDGET_CREATION_TIME\":\"2015-12-15T02:31:02.922Z\",\"WIDGET_DESCRIPTION\":\"Top 4xx and 5xx errors codes in HTTP Access Logs. \",\"WIDGET_GROUP_NAME\":\"Log Analytics\",\"WIDGET_KOC_NAME\":\"emcla-visualization\",\"WIDGET_NAME\":\"Access Log Error Status Codes\",\"WIDGET_OWNER\":\"ORACLE\",\"WIDGET_SOURCE\":1,\"WIDGET_TEMPLATE\":\"/html/search/widgets/visualizationWidget.html\",\"WIDGET_UNIQUE_ID\":\"2017\",\"WIDGET_VIEWMODEL\":\"/js/viewmodel/search/widget/VisualizationWidget.js\",\"WIDGET_SUPPORT_TIME_CONTROL\":true,\"WIDGET_LINKED_DASHBOARD\":null,\"SELECTOR_INELIGIBLE\":false,\"tileParameters\":[]}]}", "actionDetail": "EDIT", "actionType": "DATA_CHANGE" } ]