Skip to main content

Device Logs

Used to fetch a log containing all the activities performed for the given DeviceID.

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SSMS

GET https://{tenantId}.{hostname}/digitanium/v4/device/{deviceId}/logs?limit=<limit>&offset=<offset>

HTTP request URL for SHIFT

GET https://{hostname}/auth/realms/{tenantId}/v3_device/{deviceId}/logs?limit=<limit>&offset=<offset>
note

At this moment, this API is applicable only for SSMS based installations.

note

API requests must be made over https. Calls made over plain http will fail.

Parameters (*Required)

Parameter NameTypeDescription
*limitIntegerprovide limit
*offsetIntegerprovide offset

Request body

No request body fields are required.

Response

Field NameTypeDescription
messageStringMessage explains result of the API call. Refer Response status Information for details.
statusStringThe status of the API call. Refer Response status Information for details.
subSystemIntegersubSystem categorizes the type of API that has been called. Refer Subsystem details for details.
dataArrayList of all device details. Refer Data Representation for details.

Sample Response

{
"data": {
"moreResultsAvailable": true,
"reportingFilterUsed": {
"deviceId": "4501",
"limit": 2,
"offset": 5
},
"reportingInfoItems": [{
"action": "20",
"alertErrorCode": 72,
"archived": false,
"certificateSerialNumber": "2033460708",
"details": "Starting a transaction failed: User ID of transaction [testuser23] does not match the user ID, which is assigned to the device [joker]4501",
"deviceId": "4501",
"id": 186089,
"issuerDN": "CN=asm internal ca ec58ecd4-0fc3-4fb8-a062-d6ae4aa01e30,UID=DctH2B9f1l,O=KOBIL SYSTEMS,C=DE",
"logDate": "1601221875",
"status": "-129",
"subSystemId": 501,
"userId": "joker"
},
{
"action": "20",
"alertErrorCode": 72,
"archived": false,
"certificateSerialNumber": "2033460708",
"details": "Starting a transaction failed: User ID of transaction [testuser23] does not match the user ID, which is assigned to the device [joker]4501",
"deviceId": "4501",
"id": 186088,
"issuerDN": "CN=asm internal ca ec58ecd4-0fc3-4fb8-a062-d6ae4aa01e30,UID=DctH2B9f1l,O=KOBIL SYSTEMS,C=DE",
"logDate": "1601221865",
"status": "-129",
"subSystemId": 501,
"userId": "joker"
}
]
},
"message": "Logs fetched successfully",
"status": "OK",
"subSystem": 5
}

Data Representation

Field NameTypeDescription
reportingFilterUsedObjectFilters applied to retrieve info items
reportingInfoItemArrayAvailable reporting informations
moreResultsAvailableBooleanThis value is true, if the available records are more than the limit set.
limitIntegerNumber of records to be fetched per request.
offsetIntegerIndicates the page number.
actionIntegerAction of device to be worked on. This is usually an UUID
archivedBooleanIf true the record is archived.
certificateSerialNumberIntegerA unique number identifying the certificate.
deviceIdIntegerThe SSMS registered id of the device used.
idIntegerId of device to be worked on. This is usually an UUID.
issuerDNStringThe CA that issues the certificate
logDateIntegerDevice log date
statusIntegerDevice current status
uidStringUnique user id

Response Status Information

Status CodeStatusMessage
200OKLogs fetched successfully
400BAD_REQUESTDeviceID should not be null or empty
401UnauthorizedHTTP 401 Unauthorized
404DEVICE_NOT_FOUNDDevice does not exist