Retrieve a list of Bridge devices
Device list
Paginated list of all devices available in the system. Devices (bridges) are software that is used to provide access to cameras that are not directly accessible to the media server (located on the internal network) Permission - bridges
GET api/admin/v1/bridges |
string
search, Search is carried out by serial number or MAC address of the device
bool
is_online, Filtering devices by online status, 1 - online, 0 - offline.
int
per_page, Number of elements in one pagination page.
string
sort, Field by which devices are sorted
string
dir, A field that specifies the sorting direction.
array
user_ids, An array of user ids, this field is used to filter bridges by user affiliation.
int
page, Pagination page number
200 |
Returns a list of bridges on the i pagination page
JSON
|
401 |
Authorization token not sent or not valid |
422 |
Returns a JSON object with an error.
JSON
|
cURL
curl -k --request POST \
--url 'https://your-domainapi/admin/v1/bridges' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"search": "string",
"is_online": true,
"per_page": 0,
"sort": "string",
"dir": "string",
"user_ids": [],
"page": 0
}'
PHP
$data = array (
'search' => 'string',
'is_online' => true,
'per_page' => 0,
'sort' => 'string',
'dir' => 'string',
'user_ids' =>
array (
),
'page' => 0,
);
$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-domainapi/admin/v1/bridges', false, $context);