Incorrect streams
Incorrect streams
Incorrect streams. A list of incorrect streams (streams that had at least 1 reconnection) divided into 3 categories:
Incorrect cameras – cameras that had at least 1 reconnection
Problematic cameras – cameras that accumulated Y reconnections during a certain period of time
Disabled cameras – cameras that are turned off on the media server
GET /api/admin/v1/streams/inactive |
Method parameters
int
per_page, number of items per page for pagination. Default is 25
int
page, page number for pagination
string
condition, type of streams to be returned. Defined in the stream_conditions section of the Main configurations
string
search, search performed by camera address or name
string
ip, search performed by IP address of the stream
string
sort, field to sort the servers by
string
dir, sorting direction. desc - from largest to smallest, asc - from smallest to largest
string
domain, filter by media server domain (filtering is done based on the main media server)
200 |
List of cameras belonging to the group
JSON
|
401 |
Authorization token is not provided or is invalid. Obtaining a token |
cURL
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/streams/inactive' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"per_page": 0,
"page": 0,
"condition": "string",
"search": "string",
"ip": "string",
"sort": "string",
"dir": "string",
"domain": "string"
}'
PHP
$data = array (
'per_page' => 0,
'page' => 0,
'condition' => 'string',
'search' => 'string',
'ip' => 'string',
'sort' => 'string',
'dir' => 'string',
'domain' => 'string',
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/streams/inactive', false, $context);