Skip to main content

Get Device Logs

To get the device Logs of KnoxConfigure, use the following methods.

Example

import { KnoxInstance } from '@redredgroup/samsungknox-api';
const instance = new KnoxInstance({
region: 'YOUR_KNOX_REGION',
knoxAccessToken: 'YOUR_JWT_TOKEN',
});

const kcGetDeviceLog = await instance.kcDevice.getDeviceLogs({
args: {
deviceId: 'YOUR_DEVICE_ID',
}, // <- other optional param
});

console.log(kcGetDeviceLog);

Input parameters:

  • args: Insert parameters for the device (required) deviceId.
  • region: Insert the Knox region. Most of them are EU (case insensitive)
  • knoxAccessToken: Your X-KNOX-APITOKEN.

Output:

  • Responds with a detailed log for the Device.