Problem
Problem
List of problematic cameras. Cameras with a status other than «active» or «initialization» are considered problematic.
GET /api/admin/v1/cameras/inactive |
Method parameters
int
per_page, number of items per pagination page. Default is 25
int
page, pagination page number
string
sort, pagination page number
string
dir, sorting direction. desc - from larger to smaller, asc - from smaller to larger
string
search, search by camera name or its IP address
bool
is_reserved, display cameras with reserved or non-reserved IP addresses only
string
source, camera establishment type: auto for automatic via billing, manual for administrator via admin panel
string
streams_source, camera streams establishment type: auto for automatic via billing, manual for administrator via admin panel
200 |
Returns a list of cameras on the i pagination page
JSON
|
401 |
Authorization token is not provided or is invalid. Obtaining a token |
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/cameras/inactive' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"per_page": 0,
"page": 0,
"sort": "string",
"dir": "string",
"search": "string",
"is_reserved": true,
"source": "string",
"streams_source": "string"
}'
$data = array (
'per_page' => 0,
'page' => 0,
'sort' => 'string',
'dir' => 'string',
'search' => 'string',
'is_reserved' => true,
'source' => 'string',
'streams_source' => '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/cameras/inactive', false, $context);