Get list of all available groups
GET http://IP-Address:port/prefix/group
Sample response:
{ "groups" : [ { "Brief" : "Group1", "Description" : "", "Id" : "35fc84a0-2280-4b30-acd2-cc8419a2dc68", "ObjectCount"" : "14" "groups" : [ { "Brief" : "Group2", "Description" : "", "Id" : "dac24803-313c-43ab-aa9a-276922a55cb6", "ObjectCount"" : "5" "groups" : [] }, { "Brief" : "Group3", "Description" : "", "Id" : "13764152-6910-44b6-99b5-f74641ad4a14", "ObjectCount"" : "3" "groups" : [ { "Brief" : "Group4", "Description" : "Group4", "Id" : "9a64e2a0-eb92-4adc-bc4f-81d30ceb6c2f", "ObjectCount"" : "6" "groups" : [] } ] } ] } ] }
ObjectCount – number of video cameras in the group.
Get group contents
GET http://IP-Address:port/prefix/group/GROUPID
where GROUPID – value of the Id field received using the previous request.
Sample response:
{ "members" : [ "hosts/SERVER1/DeviceIpint.1/SourceEndpoint.video:0:0" ] }
Get list of groups containing specified camera
GET http://IP-Address:port/prefix/group/contains/VIDEOSOURCEID
where VIDEOSOURCEID - three-component source endpoint ID (see Get list of video sources (cameras)).
Sample:
http://localhost:8000/group/contains/SERVER1/DeviceIpint.1/SourceEndpoint.video:0:0
Sample response:
{ "groups" : [ "35fc84a0-2280-4b30-acd2-cc8419a2dc68", "13764152-6910-44b6-99b5-f74641ad4a14", "dac24803-313c-43ab-aa9a-276922a55cb6" ] }