servicePingFromSSR
POST https://{{host}}/api/v1/sites/:site_id/devices/:device_id/service_ping
Query Parameters
Name | Type | Description |
---|---|---|
host | string | host name |
service | string | ping packet takes the same path as the service |
tenant | string | tenant context in which the packet is sent |
count | int | (Optional) Supported only for ping. default is 10 |
size | int | (Optional) default is 56. Range 56-65535 |
subscribe to Device Command outputs
{
"subscribe": "/sites/:site_id/devices/:device_id/cmd"
}
The Actual Output Data
{
"event": "data",
"channel": "/sites/4ac1dcf4-9d8b-7211-65c4-057819f0862b/devices/00000000-0000-0000-1000-5c5b350e0060/cmd",
"data": {
"session": "session_id",
"raw": "64 bytes from 23.211.0.110: seq=8 ttl=58 time=12.323 ms\n"
}
}
Request Body
{"host"=>"1.1.1.1", "count"=>10, "service"=>"web-session"}
RESPONSES
status: OK
{"session":"session_id"}