Remote DWS APIs (DOCS-1284) telnet and ssh apis

Overview

The Remote DWS allows you to view and modify settings on a BrightSign player over the Internet. The Remote DWS API is a REST framework that allows a client application to integrate with Remote DWS functionality.

The client application makes REST calls to the BrightSign WebSockets server, which in turn sends WebSockets messages to BrightSign players. Depending on the operation, the BrightSign player may return information to the BrightSign Websockets server, which will be relayed in the server REST response to the client application.

REST URLs

The following URLs are case sensitive, and the server may return code 426 if the case is not matched exactly.

Production Remote DWS Server: https://ws.bsn.cloud/rest/v1/

Production Authentication URL: https://api.bsn.cloud/2022/06/REST/Token/

Authentication

All Remote DWS calls require a valid authentication token. The target player must belong to the same network for which the token has been granted.

Authentication is carried out using the same OAUTH endpoint as other BSN.cloud services. See https://brightsign.atlassian.net/wiki/spaces/DOC/pages/1313046529/Main+REST+HTTP+API+version+2022+06#MainRESTHTTPAPIversion2022%2F06-AuthenticationWorkflow.

Request Message Format

HTTP requests to Remote DWS resources must be JSON formatted and contain the following URL parameters:

  • destinationType  string: The device type. The only currently accepted value is "player".

  • destinationName  string: The device serial number

Requests that require a JSON body need to have an outer data object. For instance, if a route expects [bool] enabled then the full JSON body would look like:

{"data": {"enabled": false}}

Some requests also require resource-specific properties in the URL or request body, as detailed in the URL Parameters and Request Body sections below.

Response Message Format

The server will respond to a REST request with a success or error message, which may also contain resource-specific properties, as detailed in the Response Body sections below.

Returned JSON objects will have an outer object containing the methods below, where data is an error or a result object containing the returned values:

  • route string: The route the request was sent to

  • method string: The request method

  • data object: The returned data

For example:

{ "route": "/v1/info", "method": "GET", "data": { "result": { "model": "LS424" ... } } }

Endpoints

GET  /info/ 

Retrieves general information about the player.

Response Body

  • serial string: The serial number of the player

  • model string: The model number of the device (e.g. "XD234")

  • connectionType string: The currently active network interface, which can be either "Ethernet" or "WiFi"

  • ethernet interfaceConfig{ }: An InterfaceConfig object containing information about the Ethernet connection. This property will only be available if there's a valid Ethernet connection on the player. The Interface Config object can contain the following properties:

    • IPv4 ipConfig{ }: An IPConfig object containing information about the IPv4 configuration. The IPConfig object can contain the following properties:

      • address string

      • netmask string

      • family string

      • mac string

      • internal bool

      • cidr string

    • IPv6 ipConfig{ }: An IPConfig object containing information about the IPv6 configuration

  • bootVersion string: The current version of the boot loader

  • fwVersion  string: The current version of firmware installed on the player

  • upTime string: The amount of time (as a human-readable string) that the player has been powered on and working correctly

  • upTimeSeconds int: The amount of time (in seconds) that the player has been powered on and working correctly

  • extensions extension[ ]: An array of Extension objects describing Firmware Extensions currently installed on the player

  • blessings blessing[ ]: An array of Blessing objects describing proprietary codecs that are currently authorized on the player

GET  /time/ 

Retrieves the date and time as configured on the player. The date/time value is formatted as "yyyy-mm-dd hh:mm:ss <timezone>". This call is identical to using the Node.js® time API.

Request Example

GET /rest/v1/time?destinationType=player&destinationName=X3F78A117334 HTTP/1.1 Host: wsstg.brightsignnetwork.com Authorization: Bearer eZaLAY8iBWCUc2U3nQWZK5NvugfpagsMV9JPoPYbSsMTDYoopk3FrLOysjkJfwdcNwDvpaD1DIa4mgYSJqDwo78hyIzgE52hxmAj2v3z840FcI7vPDFXV86o5IvIhzMs cache-control: no-cache Postman-Token: 1b2a601a-8d3d-4406-b552-e056f6e640b0


Response Example

PUT  /time/ 

Sets the date/time on the player.

Request Body

  • time string: The time to set on the player, formatted as "hh:mm:ss <timezone>"

  • date string:  The date to set on the player, formatted as "yyyy-mm-dd"

  • applyTimezone bool:  A flag specifying whether the date and time should be applied using the time zone configured on the player (true) or the UTC time zone (false)

Request Example

ON THIS PAGE

Response Example

A successful response would be a 200 status code with the following body:

GET /video-mode/ 

Retrieves the currently active video mode on the player.

Response Body

  • width int: The screen width

  • height int: The screen height

  • frames int: The framerate

  • scan string: The scan method of the video signal, which can be either progressive ("p") or interlaced ("i")

  • name string: The full name of the video mode (a full list of modes can be found here)

  • isAutoMode bool: A flag indicating whether the video mode was set using auto mode

  • mode mode{ }: A Mode object that gives additional information about the video output. This object can contain the following properties:

    • colorDepth string: The color depth of the video signal ("8bit", "10bit", or "12bit")

    • preferred bool: A flag indicating whether the video mode is the preferred mode

    • overscan bool: A flag indicating whether the video output is using an overscan setting or not

    • modeName string: The full name of the video mode (a full list of modes can be found here)

    • interlaced bool: A flag indicating whether the video output is interlaced (true) or progressive (false)

    • width int: The width of the video output

    • height int: The height of the video output

    • graphicsPlaneWidth int: The width of the graphics plane 

    • graphicsPlaneHeight int: The height of the graphics plane

    • frequency int: The frame rate of the video output

    • dropFrame bool: A flag indicating whether the video timecode utilizes drop frames

    • colorSpace string: The color space of the video signal ("rgb", "yuv420", or "yuv422")

    • colorDepth string: The color depth of the video signal ("8bit", "10bit", or "12bit")

GET /video/{:connector}/output/{:device}/ 

The {:device} value in /video/ URLs is currently 0 for single-output Series 5 players, and for all Series 4 and older players. The value can be 0-3 for the XC4055, which has multiple outputs, and 0 or 1 for the XC2055.

The current {:connector} value is always HDMI.

Retrieves information about the specified video output.

Request Example

Response Body

The following fields will be present in the response:

  • activeMode: Information about the active video mode on the player

  • attached bool: This value indicates if the HDMI® output is attached or not

  • bestMode string: The best video mode for the player. The HDMI connector must be attached because it gets details from EDID result.

  • configuredMode: The configured video mode on the player. This can be different than activeMode.

  • edid string: Returns the EDID read string of the display connected to the player. If power save is on, zeroes will be returned

  • edid_identity: Parses the above string in a JSON format for readability. Requires an HDMI output connected to the player and a display.

  • modes: List of all available video modes on the player.

  • powerSaveStatus bool: This value indicates the power save status of the display connected to the player.

  • resolutions resolutions[ ]: An array of information about the graphics, output, video resolution. Returns result values for height and width.

  • status:

    • audioBitsPerSample int

    • audioChannelCount int

    • audioFormat string

    • audioSampleRate int

    • eotf string

    • outputPowered bool

    • outputPresent bool

    • unstable bool

GET /video/{:connector}/output/{:device}/edid/ 

Returns the EDID information from a compatible monitor/television connected to the video output.

See the root endpoint (https://brightsign.atlassian.net/wiki/spaces/DOC/pages/378831527/Remote+DWS+APIs#GET-%2Fvideo%2F%7B%3Aconnector%7D%2Foutput%2F%7B%3Adevice%7D%2F ) for definitions of {:connector} and {:device}.

GET /video/{:connector}/output/{:device}/power-save/ 

Retrieves the power status of the monitor connected to the player (as reported over EDID). See the root endpoint (https://brightsign.atlassian.net/wiki/spaces/DOC/pages/378831527/Remote+DWS+APIs#GET-%2Fvideo%2F%7B%3Aconnector%7D%2Foutput%2F%7B%3Adevice%7D%2F ) for definitions of {:connector} and {:device}.

Response Body

  • is_connected bool: A flag indicating whether the monitor is connected to the HDMI output on the player

  • is_powered bool: A flag indicating whether the monitor is on (i.e. RX powered) 

  • enabled bool: A flag indicating whether power-save mode has been enabled on the HDMI/VGA output

PUT /video/{:connector}/output/{:device}/power-save/ 

Enables or disables power-save mode on the monitor connected to the player (via HDMI, VGA, or Component).

See the root endpoint ( ) for definitions of {:connector} and {:device}.

Request Body

  • enabled bool:  Whether or not power save is enabled. 

Request Example

Response Body

  • The server will return a success or error message

GET  /video/{:connector}/output/{:device}/modes/ 

Retrieves all available video modes on the specified video output.

See the root endpoint ( ) for definitions of {:connector} and {:device}.

GET /video/{:connector}/output/{:device}/mode/ 

Retrieves the current video mode on the specified video output.

See the root endpoint ( ) for definitions of {:connector} and {:device}.

You can get different mode values by passing the following parameters:

  • Best mode: Pass query parameter “?best”

  • Active mode: Pass query parameter “?active”

  • Configured mode: Pass query parameter “?configured”

Response Body

  • mode string: The currently configured video mode on the video output

PUT /video/{:connector}/output/{:device}/mode/ 

Changes the video mode on the player.

See the root endpoint ( ) for definitions of {:connector} and {:device}.

Request Body

A video mode object containing the following value(s):

  • modeName string required: The mode (for example, “1920x1080x60p”)

  • colorDepth string optional: The color depth of the video signal

  • colorSpace string optional: The color space of the video signal

  • dropFrame bool: Whether or not the video timecode uses drop frame

  • frequency int optional: The frame rate of the video output

  • width int optional: The width of the video output

  • height int optional: The height of the video output

  • graphicsPlaneWidth int optional: The width of the graphics plane

  • graphicsPlaneHeight int optional: The height of the graphics plane

  • interlaced bool optional:  Whether or not the video output is interlaced

  • overscan bool optional: Whether or not the video output is using an overscan setting or not

  • preferred bool optional: Whether or not video is the preferred mode

Request Example

Response Body

  • The server will return a success or error message

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.

Response Body

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

GET  /download-log-package/ 

Retrieves log files from the player as a download package. The log output is similar to the information generated through serial, Telnet, or SSH on the player.

Response Body

The log files are provided as a .zip file

GET  /crash-dump/ 

Retrieves the crash dump from the player.

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. Each CrashDumpFiles instance contains the following entries:

      • fileName string: The name of the file

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

      • fileContents string: The crash-dump file contents

PUT  /control/reboot/ 

Reboots the player. The player will not send a response to a reboot request.

Request Body

  • crash_report bool: Pass the body parameter {“crash_report": true}. To be used only when directed by BrightSign customer service. This will reboot the player and save a crash-report file to the brightsign-dumps folder. Customer service may request the crash report when helping you troubleshoot a player.

  • factory_reset bool: Pass the body parameter {“factory_reset”: true}. This resets the player to factory defaults, erasing all persistent registry settings for networking, security, and other applications.

  • autorun string: Pass the body parameter {“autorun”: “disable”}. This disables the current autorun script, and this is especially helpful for debugging purposes.

Request Example

GET /control/dws-password/ 

Retrieves information about the current password of the local DWS (but not the password itself) such as whether the password is blank or invalid.

Response Body

  • success bool: A flag indicating whether the password was successfully read

  • password Password{ }: A Password object that describes the DWS password. The following are possible values:

    • isResultValid bool: A flag indicating whether the DWS password is valid

    • isBlank bool: A flag indicating whether the DWS password is blank (i.e. no password is required)

PUT  /control/dws-password/ 

Sets a new password for the local DWS (or removes the password requirement).

Request Body

  • password string: The new local DWS password for the player. The absence of this parameter (or a blank string) will remove the password requirement for the DWS.

  • previous_password string: The previous DWS password. This parameter must be included. This value can be an empty string to indicate that the previous password was blank.

Request Example

Response Body

  • success bool: A flag indicating whether the password was successfully set

  • reboot bool: A flag indicating whether the player will reboot to set the password

GET /control/local-dws/ 

Retrieves the current state of the local DWS.

Response Body

  • success bool: A flag indicating whether the local DWS is enabled or disabled

PUT /control/local-dws/ 

Enables or disables the local DWS.

Request Body

  • enable bool: A flag indicating whether the local DWS should be enabled or disabled

Request Example

Response Body

  • success bool: A flag indicating whether the local DWS was successfully enabled or disabled

  • reboot bool: A flag indicating whether the player will reboot to enable/disable the local DWS

GET /files/{:path}/ 

Lists directories / files in the requested :path. You can get raw contents of a directory by passing a query parameter “?raw" with the above API.

Response Body

  • type string: Either a directory or file

  • path string: The path, for example, "sd"

  • stat object: Directory stats from the "fs" module

  • files object[ ]

    • name string:  Name of the file or directory

    • type string:  Either "file" or "dir"

    • path string: The relative path of the file or directory

    • stat object: File stats from the “fs” module

    • mime string: mime type (available only for type "file")

  • storageInfo object: If the path in the URL is a storage device, this returns information about the storage device. For more information, see storageinfo

You can get raw contents of a directory by passing a query parameter “?raw” with the API above.

  • fileSystemType string: The type of filesystem (for example, "fat32")

  • stats object:

    • blockSize int: The size of a native block

    • bytesFree int: The amount of free space

    • filesFree int: The number of used inodes

    • filesUsed int: The number of free inodes

    • isReadOnly bool: A flag indicating whether the filesystem is read only

    • sizeBytes int: The amount of total space

  • mountedOn string: The location where the file system is mounted (for example, "/storage/sd")

  • contents object[ ]:

    • name string: The name of the file or directory

    • type string:  Either "file" or "dir"

    • path string:  The absolute path of the file or directory

    • stat object: The statistics from the "fs" module 

    • mime string: mime type (available only for type "file")

    • children object[ ]:  This is available only for directory types and will have the same format as "contents"

PUT /files/

Uploads a new file to the player storage.

If you are uploading zip and media files, you should use BOS version 8.5.44 or 9.0.101 or later.

Request Body

  • fileUploadPath string: The path, for example: "/sd"

  • files object[]:

    • fileName string: The name of the file

    • fileContents string: The content of the file. It can be provided as plain text or as Data URL.

    • fileType string: Mime type

Request Example

In the examples below, use the FileReader's readAsText() or readAsDataURL() method to derive the fileContents value.

Plain Text

Any file with mime type "text/*", or any “brs”, “json”, “js”, “xml”, “rtf” extension, can be sent as plain text using FileReader's readAsText() method:

Data URL

For all other file types, including zip and media files, use the data URL format using FileReader's readAsDataURL() method:

Response Body

  • success bool: A flag that indicates if the operation succeeded or not

  • results string[]: The names of the files that were successfully created

POST  /files/{:path}/ 

Renames a file from :path. Path should include the file name. Pass body parameter {"data": {"name": "new-file-name"}}.

DELETE  /files/{:path}/ 

Deletes a file from the player storage.

Response Body

The player will return a success or error message.

DELETE  /storage/{:device_name}/ 

Reformats the specified storage device (see this page for a list of available devices).

Request Body

  • fs string: The file system to use when reformatting a storage device. The default value of fs is "exfat".

Request Example

 

GET /re-provision/ 

Calling this endpoint will re-provision the player (in other words, the B-Deploy setup currently associated with the player will be downloaded, and the device will go through setup again).

The re-provision process involves the following steps:

  1. If the “networking” section of the player’s registry contains the access and refresh tokens, it is assumed that the player was previously set up for BSN.cloud. So BrightSign keeps some setup-related keys in the networking section (these keys are listed at right) and deletes the rest of the registry entries. If the networking section does not include access and refresh tokens, it will empty the whole networking section, format the SD card, and reboot to try to provision the player.

  2. BrightSign also sets the “deviceSetupComplete“ parameter in the “autorun” section to null, so that the player can set up again. This key is set to 1 only if the player was previously set up through the on-device setup option.

  3. The code removes all files from the default storage device (this is almost always the SD card). You do not need to format the storage separately.

  4. The player reboots, fetches the setup package from B-Deploy, and re-provisions itself.

Response Body

  • success boolTrue means that the operation succeeded, False means that the operation failed. If the operation is successful, the player will reboot.

 

GET /diagnostics/ 

Run network diagnostics on the player.

Response Body

  • ethernet string

    • diagnosis string: Indicates if this type of interface is present

    • log object[ ]: This contains the diagnostic results for the ethernet interface. It has fields for name, pass, and result.

      • name string:  The name of the diagnostic test

      • pass bool: Indicates whether the test passed or not

      • result string: The actual value for the diagnostic tests like checking type and ping.

    • ok bool: If diagnostics were run on the interface or not.

  • wifi string

    • diagnosis string: Indicates if this type of interface is present

    • log object[ ]: This contains the diagnostic results for the wifi interface. It has fields for name, pass, and result.

      • name string:  The name of the diagnostic test

      • pass bool: Indicates whether the test passed or not

      • result string: The actual value for the diagnostic tests like checking type and ping.

    • ok boolIf diagnostics were run on the interface or not.

  • modem string

    • diagnosis string: Indicates if this type of interface is present

    • log object[ ]: This contains the diagnostic results for the modem interface. It has fields for name, pass, and result.

      • name string:  The name of the diagnostic test

      • pass bool: Indicates whether the test passed or not

      • result string: The actual value for the diagnostic tests like checking type and ping.

    • ok boolIf diagnostics were run on the interface or not.

  • internet string

    • diagnosis string: Indicates if this type of interface is present

    • log object[ ]: This contains the diagnostic results for the internet connectivity. It has fields for info, name, pass, and result.

      • info stringReturns DNS server info

      • name stringChecks DNS servers and internet connectivity

      • pass bool: Indicates whether the test passed or not

      • result string: The actual value for the diagnostic tests like checking type and ping. 

    • ok boolIf diagnostics were run on the interface or not.

GET /diagnostics/dns-lookup/{:domain_name}/ 

Tests name resolution on the specified DNS address.

Response Body

The player queries each DNS field separately, then collects returned data into the records object and returned errors into the errorList object. The following DNS fields are queried: "ipv4", "ipv6", "cname", "mx", "service", "text".

  • records object

    • ipv4 string[ ]

    • ipv6 string[ ]

    • text string[ ]

    • mx object[ ]

      • exchange string

      • priority int

  • server_test object

    • tcp object

      • made int:  The total number of DNS requests made

      • pass int: The total number of requests that passed

      • fail int: The total number of requests that failed.

      • timeout int: The total number of requests that timed out.

      • mismatch int

    • udp object

      • made int:  The total number of DNS requests made

      • pass int: The total number of requests that passed

      • fail int: The total number of requests that failed.

      • timeout int: The total number of requests that timed out.

      • mismatch int

  • errorList object[ ]

    • field string

    • err object

      • errno string: Error number (usually the same value as code)

      • code string: Error code number

      • syscall string

      • hostname string: The value passed in the URL

GET /diagnostics/ping/{:domain_name}/ 

Requests the player to ping the specified IP or DNS address on its local network. This call can take over 10 seconds to return.

Response Body

  • success bool: A flag that indicates if the operation succeeded or not

  • response object:

    • hostname string: The value that you passed in the URL

    • results object

      • ipv4 object[ ]

        • address string: The IPv4 address

        • results object

          • received int: The number of packets received

          • stats object

            • average intThe average time for the packet to return

            • quickest int: The quickest time for packet to return

            • slowest int: The slowest time for the packet to return

            • units int: The time units (usually microseconds)

          • transmitted int: The number of packets transmitted

      • ipv6 object[ ]

        • interface string

        • source string

        • address string: The IPv6 address

        • results object

          • received int:  The number of packets received

          • transmitted int: The number of packets transmitted

GET /diagnostics/trace-route/{:domain_name}/ 

Requests the player to perform a standard trace-route diagnostic on the specified IP or DNS address. This call can take several minutes to return.

URL Parameters

resolveAddress bool: A Boolean value specifying whether the IP/DNS address should be resolved or not

Response Body

  • address string

  • results object

    • output string[ ]: Returns the trace route output information in text format

    • protocol string: The IP protocol, for example, "ipv4"

    • route object[ ]:

      • hop int

      • servers object

        • address string: The address to which the trace route request is made

        • hostname string

        • stats object[ ]

          • reachable string

          • time string: The time required for the trace route request to return

          • units string: The time units (usually in milliseconds)

GET /diagnostics/network-configuration/{:interface}/ 

Retrieves extensive information about network-interface settings on the player. Interface names include eth0wlan0, and modem.

Response Body

  • text string: The network configuration information in plain-text form

  • output Output: The network configuration information as a JSON object:

    • interfaces Interface[ ]: An array of I nterface objects representing network interfaces:

      • name string: The interface name (e.g. "eth0")

      • errors  Error[ ]: An array of error messages associated with the interface

      • params Param[ ]: An array of Param objects representing parameters associated with the network interface. Each Param interface has the following entries:

        • name string: The property name (e.g. "MAC")

        • value string: The property value (e.g. "90:ac:3f:0b:d2:88")

    • host Info[ ]: An array of  Info objects providing network host information. Each Info object can have the following entries:

      • errors Error[ ]: An array of error messages associated with the network host

      • params Param[ ]: An array of Param objects representing parameters associated with the network host 

    • bsn Info[ ]: An array of Info  objects providing information about BSN communication. 

    • other Info[ ]: An array of Info  objects providing information miscellaneous network information.

  • caCertificate string: The contents of a CA certificate file in text form (i.e. a "pem" file).

  • clientCertificate bool: A flag indicating whether the player is using a client certificate

  • clientIdentifier string: The DHCP client identifier for the network interface

  • dnsServerList string[ ]:  An IP address list of the DNS servers

  • domain string: The domain name for the network interface

  • eapTlsOptions string: A string containing EAP-specific options

  • enabledProtocolList string[ ]: An array of enabled IP protocols. Currently supported values are "IPv4" and "IPv6".

  • identity string: The RADIUS identity

  • ipAddressList string[ ]: The IP addresses assigned to the player

  • inboundShaperRate int: The bandwidth limit for inbound traffic in bits per second. A value of -1 specifies the default bandwidth limit, and a value of 0 specifies no bandwidth limit (these two settings are functionally the same).

  • metric int:  The routing metric for the default gateway on the interface. Routes with lower metrics are preferred over routes with higher metrics.

  • mtu int: The maximum transmission unit (MTU) for the network interface in bytes

  • privateKey string: The private key for authentication

  • vlanIdList int[ ]: An array of VLAN IDs that are supported on the parent network interface

  • securityMode string: Security mode for authentication

  • securityMode string

GET /diagnostics/network-neighborhood/ 

Retrieves information about the current network neighborhood of the player.

Response Body

  • success bool: A flag that indicates if the operation succeeded

  • response object[ ]:

    • chassis-descr string

    • chassis-id string

    • chassis-name string

    • mgmt-ip string

    • port-descr string

    • port-id string

    • vlan-pvid string

If the diagnostic could not be performed, the response body may instead be an error message.

GET /diagnostics/packet-capture/ 

Gets the current status of packet capture operation. Packet capture operation requires the legacy DWS to be working.

Response Body

  • statusCode int: The success or error code (200 is success)

  • is_running bool: Flag indicating if the packet capture operation is running

POST /diagnostics/packet-capture/ 

Starts a packet capture operation. The body parameters are:

  • filename string: The name of the packet capture file. If you don't pass this string, 'capture.pcap' is the default.

  • interface string:  The name of the interface for which we are performing packet capture. 'eth0' is the default.

  • duration int: The duration for which the packet capture runs in seconds. The default is 300 seconds (5 minutes).

  • maxpackets int: The maximum number of packets to capture before concluding the process. 0 is the default value.

  • snaplen int: The maximum size of each packet. Specifying 0 will instruct the function to capture the entire packet no matter the size.

  • filter string: A field for conditional filtering of packets. This operation uses standard pcap syntax. This string is empty by default.

DELETE /diagnostics/packet-capture/ 

Stops a packet capture operation.

GET /diagnostics/telnet 

Returns information about whether or not Telnet is enabled on the player, and the port number on which it is enabled if it is. This is only available in BOS 9.0.110 and above.

A successful response is a 200 and this response body:

PUT /diagnostics/telnet

This is only available in BOS 9.0.110 and above.

Request Body

  • enabled boolean: Enable or disable Telnet on the player

  • portNumber integer: The port number on which to enable Telnet

Response

GET /diagnostics/ssh

Returns information about whether or not SSH is enabled on the player, and the port number on which it is enabled if it is. This is only available in BOS 9.0.110 and above.

A successful response is a 200 and this response body:

PUT /diagnostics/ssh

This is only available in BOS 9.0.110 and above.

Request Body

  • enabled boolean: Enable or disable SSH on the player

  • portNumber integer: The port number on which to enable SSH

  • password string: The SSH password

Response

POST /snapshot/ 

Takes a screenshot of the current screen contents and saves it to storage. See Remote DWS APIs#RequestMessageFormat for the Query String Parameters.

Request Example

Response Body

  • remoteSnapshotThumbnail string: A snapshot image thumbnail in Base64 format

  • filename string: The name and path of the snapshot image file. Call GET /file/{:path} to retrieve the full-resolution image.

  • timestamp string: The date and time the snapshot was taken. The date/time is formatted as "yyyy-mm-dd hh:mm:ss <timezone>".

GET /health/ 

Retrieves the current status of the player. Currently, this endpoint is only used to determine if a player can respond to a WebSockets request; it cannot determine the error state of a player.

Response Body

  • status string: The player status. The only possible value is "active".

  • statusTime string: The date and time the player responded to the status request. The date/time is formatted as "yyyy-mm-dd hh:mm:ss <timezone>".

PUT  /custom/ 

Sends custom data to the player. The player in turn sends the data as a message (in JSON string format) on UDP port 5000, which can then be captured by the autorun.brs or JavaScript application on the player.

Request Body

  • command string: The custom data to send

  • returnImmediately bool: A flag specifying whether the server should respond to the PUT request immediately (true) or wait on a response to the UDP message from the BrightScript/JavaScript application (false).

Response Body

If the returnImmediately property is true, the server will return a success or error message. If the property is false, the server will wait for a response from UDP port 5000 on the player and send it as the response to the PUT request.

GET /download-firmware/ 

Instructs the player to download and apply a firmware update.

URL parameter

  • url string: The public URL for downloading the firmware-update file.

Response Body

  • success bool: A flag indicating whether the download was successful

  • reboot bool: A flag indicating whether the player will reboot when applying a firmware update

GET  /registry/ 

Gets the whole registry dump of the player. 

Response Body

  • success bool: If the operation is successful

  • value object: The keys are the names of the registry sections. These are some examples:

    • brightscript string: The BrightScript key-value pairs

    • networking string: The networking key-value pairs

GET  /registry/recovery_url/ 

Retrieves the recovery URL stored in the player registry.

Response Body

  • success bool: A flag indicating whether the request was successfully read

  • value string: The recovery URL

PUT  /registry/recovery_url/ 

Writes a new recovery URL to the player registry.

Request Body

  • url string: The new recovery URL

Request Example

Response Body

  • success bool: A flag indicating whether the write was successful

GET  /remoteview/config/ 

Get the remote view configuration.

PUT  /remoteview/config/ 

Pass body parameter “accessURL" to configure the remote view server URL.

Request Example

GET  /remoteview/{:source}/view/ 

Get a list of all the active remote view session IDs.

POST  /remoteview/{:source}/view/ 

Starts remote view session and returns a sessionID.

GET  /remoteview/{:source}/view/:id/ 

Get information about a particular session using its sessionID (passed in as :id in route). The current {:source} value is always desktop. These are the parameters of the response:

Response Body

  • id string: This is the session id

  • mediaSource string: The value is always "desktop"

  • available bool: This value is always true when the session is active.

  • viewing bool: This indicates that the session is active. The value will always be true.

DELETE  /remoteview/{:source}/view/:id/ 

Delete a particular session using its sessionID.