Tree search
Tree search
Camera tree search. If none of the search parameters are provided, a 422 error will be returned.
GET /api/admin/v1/cameras/search/tree |
Method parameters
string
search, search performed based on the address
string
vendor_name, search performed based on the camera vendor (manufacturer)
string
model_name, search performed based on the camera model
string
service, search performed based on the services of configurations applied to the camera
string
tags, search performed based on the name of the tag associated with the camera
boolean
is_intercom, cameras that are related to an intercom system or not
200 |
Returns a list of cameras on page i of pagination
JSON
|
401 |
Authorization token is not provided or is invalid. Obtaining a token |
cURL
BASH
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/cameras/search/tree' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"search": "string",
"vendor_name": "string",
"model_name": "string",
"service": "string",
"tags": "string",
"is_intercom": "boolean"
}'
PHP
PHP
$data = array (
'search' => 'string',
'vendor_name' => 'string',
'model_name' => 'string',
'service' => 'string',
'tags' => 'string',
'is_intercom' => 'boolean',
);
$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/search/tree', false, $context);