Retriеve camera DVR ranges: Camera.Dvr.Ranges

Returns DVR time ranges for the specified cameras

Parameters

params: array|object

One of 2 variants


params<0>: RangesList aka object

No description

params<0>...

params<0>{}: RangeObject aka object

No description


params<0>{}.from: null|integer

optional nullable

Default:

JSON
0

DVR range beginning in unix timestamp seconds


params<0>{}.to: null|integer

optional nullable

Default:

JSON
0

DVR range ending in unix timestamp seconds



params<1>: UidArray aka array

Min size: 1

List of UIDs

params<1>...

params<1>[]: Uid aka string

Pattern: ^[a-zA-Z0-9_-]+$

Unique identifier used throughout the system



Result

result: object


result{}: any

No description


POST /api/

JSON
{
  "jsonrpc": "2.0",
  "method": "Camera.Dvr.Ranges",
  "params": [
    "camera_uuid"
  ],
  "id": 123
}
cURL
Bash
curl -k --request POST \
    --url 'https://your-domain/api/' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <api-authorization-token>' \
    --data '{
  "jsonrpc": "2.0",
  "method": "Camera.Dvr.Ranges",
  "params": [
    "camera_uuid"
  ],
  "id": 123
}'

200 OK

JSON
{
  "jsonrpc": "2.0",
  "result": {
    "camera_uuid": {
      "from": 0,
      "to": 10
    }
  },
  "id": 123
}

400 Bad Request

JSON
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32601,
    "message": "Method not found"
  },
  "id": 123
}

500 Internal Server Error

Server error