/api/input/source/list

Use this interface to obtain input list.

Input/output viewing permissions are required.

Prototype

Protocol HTTP/HTTPS GET
URL ip[:port]/api/input/source/list
Content-Type Response: Content-Type: application/json

Request URL parameters

Parameter Description
start Starting number
count Maximum number returned
key Keyword
sort Sorting algorithms, by name is supported. By default, the devices are sorted by register time.
order Available when 'sort' = name, options are descending, and ascending.

Request Example

GET /api/input/source/list?start=0&count=2 HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
result Result code
start The starting number
total Total number of inputs.
list Refer to input list.
input
Parameter Description
name Name
id ID
type Node type definition
dir Node stream direction. Refer to node stream direction
owner-i Nodes are added to channels as inputs and outputs. The value of the field is an array, each element of the array is the channel name.
config Source configuration, refer to Source configurations
protocol Protocol types

Response Example

{
    "list":[
        {
            "config":{
                "type":1,
                "url":"rtmp://10.10.10.10/live/test"
            },
            "dir":256,
            "id":1038,
            "name":"test1",
            "protocol":1,
            "type":258
        },
        {
            "config":{
                "type":1,
                "url":"rtmp://sfs.ll/sfs.ff/fff/fsfsf"
            },
            "dir":256,
            "id":1037,
            "name":"sff",
            "owner-i":[
                "testaaa"
            ],
            "owner-i-d":[
                100002
            ],
            "protocol":1,
            "type":258
        }
    ],
    "result":0,
    "start":0,
    "total":38
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""