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
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. |
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
}