getSiteSsrServicePath

POST https://{{host}}/api/v1/sites/:site_id/devices/:device_id/show_service_path

Get service path information of the Device. The output will be available through websocket. As there can be multiple command issued against the same device at the same time and the output all goes through the same websocket stream, session is introduced for demux.

Parameters

NameTypeDescription
service_namestring(Optional) The exact service name for which to display the service path
nodestring(Optional) The exact service name for which to display the service path

subscribe to Device Command outputs

{
    "subscribe": "/sites/:site_id/devices/:device_id/cmd"
}

Example output from ws stream

show service-path
Service    Service-route     Type              Destination  Next-Hop  Interface  Vector  Cost  Rate  Capacity        State
Web        web-route1        service-agent     4.4.4.4      1.1.1.2     lan        red     10    1    200/3000       Up\\\*
Web        web-route1        service-agent     4.4.4.4      1.1.1.3     lan        red     10    1    200/3000       Up
Web        web-route2        service-agent     5.5.5.5      2.2.2.2     lan       blue     20    2    50/unlimited   Down
Login                  BgpOverSVR        10.1.1.1     1.2.3.4     wan        red     10    3        -          Up
Login                  BgpOverSVR        11.1.1.1     1.2.3.4     wan        red     10    1        -          Up
App1                   Routed                -           -         -          -      -     -        -          -
App1       learned-routed    Routed                -           -         -          -      -     -        -          -

Request Body

{"service_name"=>"any"}

RESPONSES

status: OK

{"session":"session_id"}