Tenants - Network Cameras

The Tenant's network cameras endpoint allows users to search network cameras available to the authorized tenant, sorted alphabetically based on the name of Network Camera.

ArgumentDescription
tenant_id
boolean
(required) The unique identifier of the Tenant object to be retrieved
reverse
boolean
(optional) Results order can be reversed by adding the ?reverse=true parameter
GET /1/tenants/{tenant_id}/networkCameras
Host: https://api.cogniac.io

Example: List Tenant's Network Cameras

curl -X GET https://api.cogniac.io/1/tenants/current/networkCameras \
-H "Authorization: Bearer abcdefg.hijklmnop.qrstuvwxyz"
import requests

my_headers = {"Authorization":"Bearer abcdefg.hijklmnop.qrstuvwxyz"}
resp = requests.get("https://api.cogniac.io/1/tenants/current/networkCameras",
                    headers=my_headers)
{
  "data": [  
    {
      "network_camera_id": "Asj45tQ1",
      "url": "rtsp://admin:[email protected]",
      "camera_name": "Camera 1",
      "description": "Cogniac Network Camera",
      "active": True,
      "created_at": 1463179215.124683,
      "modified_at": 1463179215.124683,
      "tenant_id": "rt06diepwc3i",
      "created_by": "[email protected]",
      "hae" : "0",
      "lat" : "0",
      "lon" : "0"
    },
    {
      "network_camera_id": "B58woskg",
      "rtsp_url": "rtsp://admin:[email protected]",
      "camera_name": "Camera 2",
      "description": "Cogniac Network Camera 2",
      "active": True,
      "created_at": 1463179219.124683,
      "modified_at": 1463179219.124683,
      "tenant_id": "rt06diepwc3i",
      "created_by": "[email protected]",
      "hae" : "0",
      "lat" : "0",
      "lon" : "0"
    }
	]
}