/api/output/list
Use this interface to obtain output list.
Input/output viewing permissions are required.
Prototype
Protocol |
HTTP/HTTPS GET |
URL |
ip[:port]/api/output/list |
Content-Type |
Response: Content-Type: application/json |
Request URL parameters
Parameter |
Description |
start |
Starting number |
count |
Maximum number returned |
key |
List the outputs containing the 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/output/list?start=0&count=1 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 outputs. |
list |
Refer to output list. |
Output Object Definition
Response Example
{
"list": [
{
"config": {
"enable-auth": true,
"key": "1",
"max-client-num": 30,
"password": "1",
"port": 554,
"type": 0,
"username": "1"
},
"dir": 512,
"id": 11089,
"name": "rtsp_test",
"owner-o": "#1s",
"owner-o-d": 100053,
"protocol": 16,
"type": 514
},
{
"config": {
"enable-auth": false,
"key": "dd",
"max-client-num": 2,
"port": 554,
"type": 0
},
"dir": 512,
"id": 11088,
"name": "ddds",
"owner-o": "Push",
"owner-o-d": 100006,
"protocol": 16,
"type": 514
}
],
"result": 0,
"start": 0,
"total": 89
}