rDWS Logs Endpoints

Base URL for these endpoints:  https://ws.bsn.cloud/rest/v1/

_________________________________________________________________________

GET /logs/ 

Fetches the player log files as a raw string. The log output is similar to the information generated through serial, Telnet, or SSH on the player.

Request Example

GET /rest/v1/logs/?destinationType=player&destinationName={{deviceSerial}} HTTP/1.1 Host: ws.bsn.cloud Authorization: Bearer {{UserAccessToken} Accept: application/json, application/vnd.bsn.error+json

Response Body

  • result string: The raw contents of the player log. Each line is separated by a newline character ("\

 

GET /crash-dump/ 

Retrieves the crash dump from the player

Request Example

GET /rest/v1/crash-dump/?destinationType=player&destinationName={{deviceSerial}} HTTP/1.1 Host: ws.bsn.cloud Authorization: Bearer {{UserAccessToken}} Accept: application/json, application/vnd.bsn.error+json

Response Body

  • result Result: A Result object containing crash-dump files:

    • isRecent bool: A flag indicating if this is the most recent set of crash-dump files

    • crashDumpFiles CrashDumpFiles[ ]: An array of CrashDumpFiles instances that contain the following entries:

      • fileName string: The name of the file. You can use this field to download the file later using GET /v1/files/sd/{{filename}}?contents.

      • mimeType string: The MIME type of the crash-dump file

      • fileContents string: The crash-dump file contents