testSiteSsrDnsResolution
POST https://{{host}}/api/v1/sites/:site_id/devices/:device_id/resolve_dns
DNS resolutions are performed on the Device. The output will be available through websocket. As there can be multiple command issued against the same SSR at the same time and the output all goes through the same websocket stream, session
is used for demux.
Subscribe to Device Command outputs
WS /api-ws/v1/stream
```json
{
subscribe
: /sites/{site_id}/devices/{device_id}/cmd
}
Example output from ws stream
Router | Hostname | Resolved | Last Resolved | Expiration |
---|---|---|---|---|
test-device | xxx.yyy.net | Y | 2022-03-28T03:56:49Z | 2022-03-28T03:57:49Z |
See [websocket example] for more details.
RESPONSES
status: OK
{"session":"session_id"}