Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

REST queries and responses

REST query

REST query body example

REST response

Response states

Description

/cdn/show_nodes



Code Block
languagejs
themeRDark
[
    {
        "globalState": "ACTIVE", 
        "id": "192.168.1.64", 
        "processingState": "NEW_STREAMS_ALLOWED", 
        "role": "TRANSCODER"
    }, 
    {
        "globalState": "ACTIVE", 
        "id": "192.168.1.39", 
        "processingState": "NEW_STREAMS_ALLOWED", 
        "role": "ORIGIN"
    }
]

200 – OK

500 – Internal Server Error

Show CDN nodes state

Parameters

Parameter name

Description

Example

globalState

Статус узла

Node state: ACTIVE

или

or PASSIVE

ACTIVE

id

Адрес узла

Node address

192.168.1.64
processingState
Участвует ли узел в выборе маршрута для воспроизведения потоков

If this node participates in stream playback route elections:

NEW_STREAMS_ALLOWED -

участвует

participates

GROUP_CONNECTION_ALLOWED -

не участвует

not participates

NEW_STREAMS_ALLOWED
role
Роль узла
Node role: ORIGIN, TRANSCODER
или
or EDGE
ORIGIN

REST query /cdn/show_nodes may be sent to certain node, the node responds with all visible CDN nodes state excluding itself.

...