CameraProfile
Camera profiles.
Permissions required include Camera configuration.
| HTTP Methods |
|
| URL |
For HTTP
For HTTP
where variables are:
|
| Request JSON |
For HTTP For HTTP For HTTP |
|
Response JSON |
Responses vary by HTTP method and URL ( {
"objectID": "CameraProfileCollection:",
"reqAction": 1,
"totalRemoteCount": 12,
"subCount": 12,
"remoteSorting": true,
"nextPage": false,
"nodePermission": 3,
"nodeAccessDetails": 1,
"collection": [
{
"mkey": "CloudCameraProfile-0001",
"management_mode": 1,
"continuous_retention_disposition": 0,
"continuous_retention_period": 1,
"continuous_retention_period_units": 2,
"detection_retention_disposition": 0,
"detection_retention_period": 1,
"detection_retention_period_units": 2,
"compression": false,
"compression_period": 1,
"compression_period_units": 2,
"viewing_stream": "Always:CloudCameraVideoViewingProfile",
"recording_stream": "Always:CloudCameraVideoRecordingProfile-0001",
"recording_type": "Always:3",
"isReferenced": 1},
...
}]
}
}
where attributes are:
|
Recording type
Multiple bits can be active at the same time.
-
1 << 0— Store on FortiRecorder. -
1 << 1— Store on the camera's SD card ("edge recording"). -
1 << 4— Continuous recording. -
1 << 5— Motion detection recording. -
1 << 6— Digital input. -
1 << 7— Audio detection. -
1 << 8— Passive infrared (PIR) detection. -
1 << 9— Tamper detection.
Example: Change to high resolution for recordings
Updates the recording stream (but not the live view stream) to use high resolution.
curl -X PUT -b cookie.txt -H "Content-Type: application/json" -d "{\"recording_stream\":\"high-resolution\"}" https://HOST_OR_IP/api/v1/CameraProfile/PROFILE_NAME/CameraProfileVideoSchedule/SCHEDULE_NAME/
|
|
On Microsoft Windows with Command Prompt, inside the JSON data, you must put a backslash before each double straight quote ( -d "{\"recording_stream\":\"high-resolution\"}" Alternatively, you can input a JSON stream from another command. If you do not, the command line may interpret each JSON attribute as CLI commands or arguments, resulting in various error messages depending on the sequential order of arguments and attributes. Reserved characters and escape sequences vary by operating system and command line environment; Linux and Mac terminals often do not require this, and Microsoft PowerShell uses different escape sequences. |