Network Cameras - Retrieve

An existing Network Camera object can be retrieved, updated, and deleted through the Network Cameras endpoint.

network_camera_id
string
The unique identifier of the Network Camera object to be retrieved.
url
string
Camera's media URL.
camera_name
string
User-specified camera name included as a tag with all detections from this camera.
description
string
Additional user-provided description of the network camera.
active
boolean
True = Camera is active - frames will be processed by the camera. There is no direct control of the camera.

False = Camera is inactive - frames are not being processed from the camera.
tenant_id
string
The tenant ID for the network camera
hae
int
Height above ellipsoid expressed in meters.
Reserved for UAV use.
lon
float
longitudinal location of camera
lat
float
latitudinal location of camera
create_at
float
Unix timestamp at time of camera creation
modified_at
float
Unix timestamp of last modification
created_by
string
User who created camera

Retrieve Network Cameras

GET /1/networkCameras/{network_camera_id}
Host: https://api.cogniac.io
{
  "network_camera_id": "Asj45tQ1",
  "url": "rtsp://admin:[email protected]",
  "camera_name": "Camera 1",
  "description": "Cogniac Network Camera",
  "active": True,
  "tenant_id": "rt06diepwc3i",
  "hae": 0,
  "lat": -33.918861,
  "lon": 18.423300,
  "created_at": 1463179215.124683,
  "modified_at": 1463179215.124683,
  "created_by": "[email protected]"
 }

These fields are defined in the "Network Cameras Create" section.

Retrieve Network Cameras associated with a gateway

GET /1/gateways/{gateway_id}/networkCameras
Host: https://api.cogniac.io

This responds with details of network cameras which are associated with given gateway_id

{'data': 
	[
    {"network_camera_id": "ffHk4d7", 
     "url": "http://10.1.10.44:8080/mjpg/video.mjpg", 
     "tenant_id": "fdahgfdja", 
     "camera_name": "atm-cam-1", 
     "hae": 0,
     "lat": -31.918861,
     "lon": 16.423300,
     "modified_at": 1492792358.847191, 
     "created_by": "[email protected]", 
     "active": True, 
     "created_at": 1490130444.014414, 
     "description": None },
    {"network_camera_id": "fksdjh21",
     "active": True,
     "url": "http://172.17.0.1/mjpg/video.mjpg", 
     "tenant_id": "fkEh8f2ja", 
     "camera_name": "atm-cam-2", 
     "hae": 0,
     "lat": -21.938861,
     "lon": 10.473300,
     "modified_at": 1492792358.847191, 
     "created_by": "[email protected]",
     "created_at": 1490130444.014414, 
     "description": None }
  ]
}

These fields are defined in the "Network Cameras Create" section.