Searching:
0 results foundAudits/Get (List)
Description
Gets a list of all the Audits of the applications assigned to the requesting user. A Tenant user gets a list of all the Audits of all the Applications that belong to the Tenant and its Sub-tenants.
To get the details of a specific Audit, refer to Audits/Get (Specific).
See the following for request and response details:
See Also
Request ‒ Audits/Get (List)
Property | Type | Description | Mandatory |
appId | String | A unique Application identifier that is automatically generated by Axonize. This is the identifier of the Application to which this user is assigned.
This identifier is automatically generated by Axonize when the Applications/Post endpoint is used. The Token or the Client ID/Client Secret used for authentication in the request header specifies the application(s) to which this user is allowed access. |
Y |
Example JSON Audits/Get (List) Request
curl -X GET \
https://api.stg.axonize.com/odata/audits \
-H ‘Authorization: Token’ \
-H ‘appId: be517433-c4b8-4788-9258-1ba220435d63’
Response ‒ Audits/Get (List)
For each Audit, the response provides the properties in Audits/Post.
Example JSON Audits/Get (List) Response
Status 200 ‒ OK
{
“@odata.context”: “https://stg-axonizeapi-axonize.stg-ase-axonize.p.azurewebsites.net/odata/$metadata#Audits”,
“value”: [
{
“entityName”: null,
“entityId”: null,
“action”: “SendCommandToMultipleDevices”,
“category”: “Devices”,
“userEmail”: “System”,
“userId”: null,
“requestDateTime”: “2018-06-17T11:55:01.8164737Z”,
“responseDateTime”: “2018-06-17T11:55:02.0196423Z”,
“application”: “test application”,
“tenant”: “5851631d4e41925b98f01234”,
“correlationId”: “a4d94269-9847-4842-91de-663735e3ded5”,
“ip”: “52.323.323.123”,
“isSuccessful”: false,
“result”: “BadRequest”,
“requestDurationMs”: 203.1686,
“requestUrl”: “https://stg-axonizeapi-axonize.stg-ase-axonize.p.azurewebsites.net/odata/Devices/SendCommandToMultipleDevices”,
“actionDisplay”: “msg_audit_sendcommandtomultipledevices”,
“categoryDisplay”: “msg_audit_devices”,
“userName”: null,
“roles”: [
“systemadmin”
],
“sourceName”: null,
“sourceType”: “Unknown”,
“id”: “5b264c16e5cdcf55dc981234”,
“appId”: “be517433-c4b8-4788-9258-1ba220431234”,
“createDate”: “2018-06-17T11:55:02.035Z”,
“createUser”: null,
“updateDate”: “0001-01-01T00:00:00Z”,
“updateUser”: null,
“additionalInfo”: [
{
“key”: “commandId”,
“value”: “5a966c3e71da9b06b0f932e4”
},
{
“key”: “deviceIds”,
“value”: “[\r\n \”5859b09b983df81008361234\”\r\n]”
}
]
},
{
“entityName”: null,
“entityId”: null,
“action”: “SendCommandToMultipleDevices”,
“category”: “Devices”,
“userEmail”: “System”,
“userId”: null,
“requestDateTime”: “2018-06-21T11:55:06.3539129Z”,
“responseDateTime”: “2018-06-21T11:55:06.7601702Z”,
“application”: “test application”,
“tenant”: “5851631d4e41925b98f01234”,
“correlationId”: “57d3baee-f362-4f07-a22d-474692263aa3”,
“ip”: “52.123.115.233”,
“isSuccessful”: false,
“result”: “OK”,
“requestDurationMs”: 406.25730000000004,
“requestUrl”: “https://stg-axonizeapi-axonize.stg-ase-axonize.p.azurewebsites.net/odata/Devices/SendCommandToMultipleDevices”,
“actionDisplay”: “msg_audit_sendcommandtomultipledevices”,
“categoryDisplay”: “msg_audit_devices”,
“userName”: null,
“roles”: [
“systemadmin”
],
“sourceName”: null,
“sourceType”: “Unknown”,
“id”: “5b2b921ae5cdcf3224ab1234”,
“appId”: “be517433-c4b8-4788-9258-1ba220431234”,
“createDate”: “2018-06-21T11:55:06.76Z”,
“createUser”: null,
“updateDate”: “0001-01-01T00:00:00Z”,
“updateUser”: null,
“additionalInfo”: [
{
“key”: “commandId”,
“value”: “5a966c3e71da9b06b0f932e4”
},
{
“key”: “deviceIds”,
“value”: “[\r\n \”5859b123983df81008361234\”\r\n]”
}
]
}
]
}