Skip to main content

SurveillanceStation

warning

This API is not documented yet.

Overview​

API wrapper for Synology Surveillance Station.

Provides methods to interact with Surveillance Station features such as retrieving station information and saving camera configurations.

Methods​

surveillance_station_info​

Retrieve information about the Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Info

Returns​

dict[str, object] or str
A dictionary containing Surveillance Station information, or a string with error details if the request fails.


camera_save​

Save or update camera configuration.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

id str
Camera ID.

name str
Camera name.

dsld int
Device slot ID.

newName str
New camera name.

ip str
Camera IP address.

port int
Camera port.

vendor str
Camera vendor.

model str
Camera model.

userName str
Username for camera authentication.

password str
Password for camera authentication.

videoCodec int
Video codec type.

audioCodec int
Audio codec type.

tvStandard int
TV standard.

channel str
Channel identifier.

userDefinePath str
User-defined path.

fov str
Field of view.

streamXX Any
Stream configuration.

recordTime int
Recording time.

preRecordTime int
Pre-recording time.

postRecordTime int
Post-recording time.

enableRecordingKeepDays bool
Enable recording retention by days.

recordingKeepDays int
Number of days to keep recordings.

enableRecordingKeepSize bool
Enable recording retention by size.

recordingKeepSize int
Maximum size for recordings.

enableLowProfile bool
Enable low profile recording.

recordSchedule list of int
Recording schedule.

rtspPathTimeout int
RTSP path timeout.

Returns​

dict[str, object] or str
Result of the save operation or error details.


camera_list​

Retrieve a list of cameras from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

idList str
Comma-separated list of camera IDs to filter.

offset int
The starting index for the camera list.

limit int
The maximum number of cameras to return.

blFromCamList bool
Whether to retrieve from the camera list.

blIncludeDeletedCam bool
Whether to include deleted cameras.

privCamType str
Filter by camera privilege type.

basic bool
Whether to return only basic information.

streamInfo bool
Whether to include stream information.

blPrivilege bool
Whether to include privilege information.

camStm int
Camera stream type.

Returns​

dict[str, object] or str
Dictionary containing camera list information, or a string with error details.


get_camera_info​

Return information about a camera.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

cameraIds int
Camera ID. Although named cameraIds in the API, it refers to a single camera ID.

privCamType int, default=1
Camera privilege type. Possible values: 1: LIVEVIEW 2: PLAYBACK 4: LENS 8: AUDIO 16: DIGIOUT

blIncludeDeletedCam bool, default=True
Whether to include deleted cameras.

basic bool, default=True
Whether to return only basic information.

streamInfo bool, default=True
Whether to include stream information.

optimize bool, default=True
Whether to optimize the returned data.

ptz bool, default=True
Whether to include PTZ (Pan-Tilt-Zoom) information.

eventDetection bool, default=True
Whether to include event detection information.

deviceOutCap bool, default=True
Whether to include device output capabilities.

fisheye bool, default=True
Whether to include fisheye camera information.

camAppInfo bool, default=True
Whether to include camera application information.

Returns​

dict[str, object] or str
Dictionary containing camera information, or a string with error details.


camera_list_group​

Retrieve a list of camera groups from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

offset int
The starting index for the camera group list.

limit int
The maximum number of camera groups to return.

Returns​

dict[str, object] or str
Dictionary containing camera group information, or a string with error details.


get_snapshot​

Retrieve a snapshot image from a camera.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

id Any
Camera identifier.

name str
Camera name.

dsld int
Device slot ID.

profileType int, default=1
Profile type for the snapshot (1 is the default profile).

Returns​

str
Binary data of the snapshot image. The response is not a JSON object.


enable_camera​

Enable one or more cameras by their IDs.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

idList str
Comma-separated list of camera IDs to enable.

blIncludeDeletedCam bool
Whether to include deleted cameras in the operation. Default is False.

Returns​

dict[str, object] or str
Result of the enable operation as a dictionary, or a string with error details.


disable_camera​

Disable one or more cameras by their IDs.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

idList str
Comma-separated list of camera IDs to disable.

blIncludeDeletedCam bool
Whether to include deleted cameras in the operation. Default is False.

Returns​

dict[str, object] or str
Result of the disable operation as a dictionary, or a string with error details.


get_capability_by_cam_id​

Retrieve the capability information for a specific camera by its ID.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

cameraId Any
The ID of the camera for which to retrieve capability information.

Returns​

dict[str, object] or str
A dictionary containing the camera's capability information, or a string with error details if the request fails.


count_occupied_size​

Retrieve the occupied storage size for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

camId int
The ID of the camera for which to retrieve the occupied size.

Returns​

dict[str, object] or str
A dictionary containing the occupied size information, or a string with error details if the request fails.


is_shortcut_valid​

Check if a camera shortcut is valid.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

cameraId int
The ID of the camera to validate the shortcut for.

Returns​

dict[str, object] or str
A dictionary with the validation result, or a string with error details.


get_live_path​

Retrieve the live view path for one or more cameras.

Internal API​

SYNO.SurveillanceStation.Camera

Parameters​

idList int
Camera ID or comma-separated list of camera IDs for which to retrieve the live view path.

Returns​

dict[str, object] or str
Dictionary containing the live view path information, or a string with error details.


audio_event_enum​

Enumerate audio events for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Event

Parameters​

camId int
The ID of the camera for which to enumerate audio events.

Returns​

dict[str, object] or str
Dictionary containing audio event enumeration, or a string with error details.


alarm_event_enum​

Enumerate alarm events for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Event

Parameters​

camId int
The ID of the camera for which to enumerate alarm events.

Returns​

dict[str, object] or str
Dictionary containing alarm event enumeration, or a string with error details.


md_parameter_save​

Save motion detection parameters for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Event

Parameters​

camId int
The ID of the camera for which to save motion detection parameters.

source int
The source channel or stream index.

mode int
The motion detection mode.

sensitivity int
Sensitivity level for motion detection.

threshold int
Threshold value for motion detection.

objectSize int
Minimum object size to trigger detection.

percentage int
Minimum percentage of the detection area to trigger detection.

Returns​

dict[str, object] or str
Result of the save operation as a dictionary, or a string with error details.


motion_event_enum​

Enumerate motion events for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Event

Parameters​

camId int
The ID of the camera for which to enumerate motion events.

Returns​

dict[str, object] or str
Dictionary containing motion event enumeration, or a string with error details.


motion_parameter_save​

Save advanced motion detection parameters for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Event

Parameters​

camId int
The ID of the camera for which to save motion detection parameters.

source int
The source channel or stream index.

mode int
The motion detection mode.

keep bool
Whether to keep the current settings.

level int
Sensitivity level for advanced motion detection.

Returns​

dict[str, object] or str
Result of the save operation as a dictionary, or a string with error details.


di_parameter_save​

Save digital input (DI) parameters for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Event

Parameters​

camId int
The ID of the camera for which to save DI parameters.

idx int
The index of the DI channel.

keep bool
Whether to keep the current DI settings.

normal int
The normal state value for the DI channel.

Returns​

dict[str, object] or str
Result of the save operation as a dictionary, or a string with error details.


alarm_sts_polling​

Poll the alarm status for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Event

Parameters​

camId int
The ID of the camera for which to poll alarm status.

timeOut int
Timeout value for the polling operation.

keep Any
Reserved for future use or additional options (currently not working).

Returns​

dict[str, object] or str
Dictionary containing alarm status polling result, or a string with error details.


td_parameter_save​

Save tamper detection (TD) parameters for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Event

Parameters​

camId int
The ID of the camera for which to save tamper detection parameters.

source int
The source channel or stream index.

keep Any
Whether to keep the current settings (reserved for future use).

duration int
Duration for the tamper detection event.

Returns​

dict[str, object] or str
Result of the save operation as a dictionary, or a string with error details.


enumerate_camera_group​

Enumerate camera groups in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Camera.Group

Parameters​

privCamType int
Camera privilege type to filter groups.

Returns​

dict[str, object] or str
Dictionary containing camera group enumeration, or a string with error details.


save_specific_group​

Save or update a specific camera group in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Camera.Group

Parameters​

groupList Any
The list of groups to be saved or updated.

Returns​

dict[str, object] or str
Result of the save operation as a dictionary, or a string with error details.


delete_specific_groups​

Delete specific camera groups in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Camera.Group

Parameters​

Id int
The ID of the camera group to delete.

Returns​

dict[str, object] or str
Result of the delete operation as a dictionary, or a string with error details.


enumerate_group_information​

Enumerate group information for camera import in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Camera.Import

Parameters​

camServerId int
The ID of the camera server.

shareName str
The name of the shared folder.

archiveName str
The name of the archive.

camlist Any
List of cameras to include.

actFromHost bool
Whether the action is performed from the host. (Currently not working).

Returns​

dict[str, object] or str
Result of the group information enumeration as a dictionary, or a string with error details.


enumerate_camera_from_archive​

Enumerate cameras from a specified archive in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Camera.Import

Parameters​

shareName str
The name of the shared folder containing the archive.

archiveName str
The name of the archive to enumerate cameras from.

serverId int
The ID of the server associated with the archive.

Returns​

dict[str, object] or str
A dictionary containing camera enumeration details, or a string with error details if the request fails.


enumerate_archive_from_folder​

Enumerate archives from a specified folder in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Camera.Import

Parameters​

shareName str
The name of the shared folder containing the archives.

Returns​

dict[str, object] or str
A dictionary containing archive enumeration details, or a string with error details if the request fails.


check_available_size_of_sdcard​

Check the available size of the SD card for a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Wizard

Parameters​

camId Any
The ID of the camera.

host str
The host address of the camera.

port str
The port number for the camera connection.

user str
The username for authentication.

passw str
The password for authentication.

vendor str
The vendor of the camera.

model str
The model of the camera.

ch str
The channel identifier. (Currently not working).

Returns​

dict[str, object] or str
A dictionary containing the available size information, or a string with error details.


check_licence_quota​

Check the license quota for Surveillance Station cameras.

Internal API​

SYNO.SurveillanceStation.Camera.Wizard

Returns​

dict[str, object] or str
A dictionary containing license quota information, or a string with error details if the request fails.


format_specific_sd_card​

Format the SD card of a specific camera.

Internal API​

SYNO.SurveillanceStation.Camera.Wizard

Parameters​

camId Any
The ID of the camera whose SD card is to be formatted.

host str
The host address of the camera.

port str
The port number for the camera connection.

user str
The username for authentication.

passw str
The password for authentication.

vendor str
The vendor of the camera.

model str
The model of the camera.

ch str
The channel identifier.

timeout int
Timeout value for the formatting operation. (Currently not working).

Returns​

dict[str, object] or str
A dictionary containing the result of the format operation, or a string with error details.


quick_create_single_camera​

Quickly create a single camera in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Camera.Wizard

Parameters​

camServerId Any
The ID of the camera server.

actFromHost bool
Whether the action is performed from the host.

camStreamingType str
The streaming type of the camera.

camName str
The name of the camera.

camIP str
The IP address of the camera.

camPort str
The port number of the camera.

camVendor str
The vendor of the camera.

camModel str
The model of the camera.

camMountType int
The mount type of the camera.

camChannel str
The channel of the camera.

camVideoType str
The video type of the camera.

camAudioType str
The audio type of the camera.

camSourcePath str
The source path for the camera stream.

camUserName str
The username for camera authentication.

camPassWord str
The password for camera authentication. (To be checked).

Returns​

dict[str, object] or str
Result of the quick create operation as a dictionary, or a string with error details.


move_camera_lens​

Move the camera lens in a specified direction with an optional speed and move type.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to control.

direction str
The direction to move the lens (e.g., 'up', 'down', 'left', 'right').

speed int
The speed at which to move the lens.

moveType str
The type of movement (reserved for future use, currently not working).

Returns​

dict[str, object] or str
Result of the move operation as a dictionary, or a string with error details.


camera_lens_zoom​

Control the zoom function of a camera lens.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to control.

control Any
The zoom control command or value.

moveType str
The type of movement (reserved for future use, currently not working).

Returns​

dict[str, object] or str
Result of the zoom operation as a dictionary, or a string with error details.


list_preset_ptz_camera​

List preset positions for a PTZ (Pan-Tilt-Zoom) camera.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the PTZ camera to list presets for.

offset int
The starting index for the preset list.

limit int
The maximum number of presets to return. (Currently not working).

Returns​

dict[str, object] or str
Dictionary containing the list of PTZ presets, or a string with error details.


move_camera_lens_to_preset_position​

Move the camera lens to a specified preset position.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to control.

presetId Any
The ID of the preset position to move to.

position Any
The position value for the preset.

speed Any
The speed at which to move the lens.

type Any
The type of movement or preset.

isPatrol bool
Whether the movement is part of a patrol operation. (Currently not working).

Returns​

dict[str, object] or str
Result of the move operation as a dictionary, or a string with error details.


list_patrol_cameras​

List patrols for a PTZ (Pan-Tilt-Zoom) camera.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the PTZ camera to list patrols for.

offset int
The starting index for the patrol list.

limit int
The maximum number of patrols to return. (Currently not working).

Returns​

dict[str, object] or str
Dictionary containing the list of PTZ patrols, or a string with error details.


force_cam_to_execute_patrol​

Force a camera to execute a specified patrol.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to execute the patrol.

patrolId Any
The ID of the patrol to execute. (Currently not working).

Returns​

dict[str, object] or str
Result of the patrol execution as a dictionary, or a string with error details.


focus_camera​

Control the focus function of a camera.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to control.

control Any
The focus control command or value.

moveType Any
The type of movement (reserved for future use, currently not working).

Returns​

dict[str, object] or str
Result of the focus operation as a dictionary, or a string with error details.


control_camera_iris_in_out​

Control the iris (in/out) function of a camera.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to control.

control Any
The iris control command or value.

moveType Any
The type of movement (reserved for future use, currently not working).

Returns​

dict[str, object] or str
Result of the iris control operation as a dictionary, or a string with error details.


auto_focus​

Perform an auto-focus operation on a specified camera.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to auto-focus.

Returns​

dict[str, object] or str
Result of the auto-focus operation as a dictionary, or a string with error details.


move_cam_lens_to_absolute_position​

Move the camera lens to an absolute position.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

posX int
The X coordinate for the absolute position.

posY int
The Y coordinate for the absolute position. (Currently not working).

Returns​

dict[str, object] or str
Result of the move operation as a dictionary, or a string with error details.


move_cam_to_home_position​

Move the camera to its home position.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to move to the home position. (Currently not working).

Returns​

dict[str, object] or str
Result of the move operation as a dictionary, or a string with error details.


auto_pan_camera​

Automatically pan the camera.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to auto-pan.

moveType str
The type of movement (reserved for future use, currently not working).

Returns​

dict[str, object] or str
Result of the auto-pan operation as a dictionary, or a string with error details.


start_stop_object_tracking​

Start or stop object tracking for a specified camera.

Internal API​

SYNO.SurveillanceStation.PTZ

Parameters​

cameraId Any
The ID of the camera to control object tracking.

moveType str
The type of movement (reserved for future use, currently not working).

Returns​

dict[str, object] or str
Result of the object tracking operation as a dictionary, or a string with error details.


start_stop_external_recording​

Start or stop external recording for a specified camera.

Internal API​

SYNO.SurveillanceStation.ExternalRecording

Parameters​

cameraId Any
The ID of the camera to control external recording.

action str
The action to perform (e.g., 'start' or 'stop'). (Currently not working).

Returns​

dict[str, object] or str
Result of the external recording operation as a dictionary, or a string with error details.


query_event_list_by_filter​

Query the event list by applying various filters.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

offset int
The starting index for the event list.

limit int
The maximum number of events to return.

cameraIds str
Comma-separated list of camera IDs to filter events.

fromTime int
Start time (timestamp) for filtering events.

toTime int
End time (timestamp) for filtering events.

dsld int
Device slot ID to filter events.

mountId int
Mount ID to filter events.

Returns​

dict[str, object] or str
Dictionary containing the filtered event list, or a string with error details.


delete_recordings​

Delete specific recordings from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

idList int
The ID or comma-separated list of IDs of the recordings to delete.

dsld int
Device slot ID associated with the recordings.

Returns​

dict[str, object] or str
Result of the delete operation as a dictionary, or a string with error details.


delete_events_by_filter​

Delete events from Surveillance Station by applying various filters.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

reason str
The reason for deleting the events.

cameraIds str
Comma-separated list of camera IDs to filter events.

fromTime Any
Start time (timestamp) for filtering events.

toTime Any
End time (timestamp) for filtering events.

locked int
Whether to include locked events.

evtSrcType int
Event source type.

evtSrcId int
Event source ID.

blIncludeSnapshot bool
Whether to include snapshots in the deletion.

includeAllCam bool
Whether to include all cameras.

from_end int
End index for the filter range.

from_start int
Start index for the filter range. (Currently not working).

Returns​

dict[str, object] or str
Result of the delete operation as a dictionary, or a string with error details.


delete_all_recordings​

Delete all recordings from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Recording

Returns​

dict[str, object] or str
Result of the delete operation as a dictionary, or a string with error details.


apply_settings_advance_tab​

Apply advanced settings in the Surveillance Station recording tab.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

rotateUnrecogCam bool
Whether to rotate unrecognized cameras. (Currently not working).

Returns​

dict[str, object] or str
Result of the apply operation as a dictionary, or a string with error details.


count_by_number_of_event​

Count the number of events by category, with optional filters.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

offset bool
Whether to offset the results.

limit int
The maximum number of results to return.

reason str
The reason for filtering events.

cameraIds str
Comma-separated list of camera IDs to filter events.

fromTime int
Start time (timestamp) for filtering events.

toTime int
End time (timestamp) for filtering events.

locked int
Whether to include locked events.

evtSrcType int
Event source type.

evtSrcId int
Event source ID.

blIncludeSnapshot bool
Whether to include snapshots in the count.

includeAllCam bool
Whether to include all cameras. (Currently not working).

Returns​

dict[str, object] or str
Dictionary containing the event count by category, or a string with error details.


keep_event_play_alive​

Keep the event play session alive.

Internal API​

SYNO.SurveillanceStation.Recording

Returns​

dict[str, object] or str
Result of the keepalive operation as a dictionary, or a string with error details.


stop_recording_event​

Stop a recording event for the specified event IDs.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

idList Any
The ID or list of IDs of the events to stop recording. (Currently not working).

Returns​

dict[str, object] or str
Result of the stop operation as a dictionary, or a string with error details.


load_settings_in_advanced_tab​

Load settings from the advanced tab in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Recording

Returns​

dict[str, object] or str
Dictionary containing the advanced settings, or a string with error details.


lock_selected_event​

Lock selected events by applying various filters.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

reason str
The reason for locking the events.

cameraIds str
Comma-separated list of camera IDs to filter events.

fromTime int
Start time (timestamp) for filtering events.

toTime int
End time (timestamp) for filtering events.

locked int
Whether to lock the events.

evtSrcType int
Event source type.

evtSrcId int
Event source ID.

blIncludeSnapshot bool
Whether to include snapshots in the lock operation.

includeAllCam bool
Whether to include all cameras.

from_end int
End index for the filter range.

from_start int
Start index for the filter range. (Currently not working).

Returns​

dict[str, object] or str
Result of the lock operation as a dictionary, or a string with error details.


unlock_selected_event​

Unlock selected events by their IDs.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

idList str
Comma-separated list of event IDs to unlock.

dsld int
Device slot ID associated with the events. (Currently not working).

Returns​

dict[str, object] or str
Result of the unlock operation as a dictionary, or a string with error details.


unlock_selected_filter_event​

Unlock events by applying various filters.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

reason str
The reason for unlocking the events.

cameraIds str
Comma-separated list of camera IDs to filter events.

fromTime int
Start time (timestamp) for filtering events.

toTime int
End time (timestamp) for filtering events.

locked int
Whether to unlock only locked events.

evtSrcType int
Event source type.

evtSrcId int
Event source ID. (Currently not working).

Returns​

dict[str, object] or str
Result of the unlock operation as a dictionary, or a string with error details.


lock_selected_recordings​

Lock selected recordings by their IDs.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

idList str
Comma-separated list of recording IDs to lock.

dsld int
Device slot ID associated with the recordings.

Returns​

dict[str, object] or str
Result of the lock operation as a dictionary, or a string with error details.


download_recordings​

Download recordings by specifying recording ID and optional parameters.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

id int
The ID of the recording to download.

mountId int
The mount ID associated with the recording.

offsetTimeMs int
Offset time in milliseconds for the download.

playTimeMs int
Playback time in milliseconds for the download.

Returns​

dict[str, object] or str
The downloaded recording as a binary response, or a string with error details.


check_if_recording_playable​

Check if a recording is playable by event ID and optional parameters.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

eventId int
The event ID of the recording to check.

chkDetail bool
Whether to check detailed information.

mountId int
The mount ID associated with the recording.

dsld int
Device slot ID. (Currently not working).

Returns​

dict[str, object] or str
Result of the check as a dictionary, or a string with error details.


play_specific_recording​

Stream a specific recording from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

recordingId int
The ID of the recording to play.

alertRecording bool
Whether the recording is an alert recording.

mountId int
The mount ID associated with the recording.

dsld int
Device slot ID.

videoCodec int
Video codec to use for streaming. (Currently not working).

Returns​

dict[str, object] or str
Streaming information or error details.


download_merged_recording_files​

Download merged files of recordings within a UTC time range for a target camera.
If there are different resolutions or codecs within the time range, recordings will be merged as much as possible, and the download file will be a zip file.
This method starts a task with a keep-alive mechanism. Use GetRangeExportProgress to get the latest progress and keep-alive. After receiving progress 100, use OnRangeExportDone to download the exported recording within 1 minute. To cancel the export task, do not send GetRangeExportProgress or OnRangeExportDone; the system will clean up processed files.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

camId int
The camera ID to export recordings from.

fromTime int
Start UTC timestamp for the export range.

toTime int
End UTC timestamp for the export range.

fileName str
Name of the output file. (Currently not working).

Returns​

dict[str, object] or str
Task information for the export or error details.


get_newest_progress_keep_alive​

Get the latest progress of a range export task and keep the task alive.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

dlid int
The download task ID.

Returns​

dict[str, object] or str
Progress information or error details.


download_recording_from_target​

Download the exported recording file from a completed range export task.

Internal API​

SYNO.SurveillanceStation.Recording

Parameters​

dlid int
The download task ID.

fileName str
Name of the file to download. (Currently not working).

Returns​

dict[str, object] or str
Downloaded file data or error details.


handle_load_event_export​

Load exported event recordings with optional pagination.

Internal API​

SYNO.SurveillanceStation.Recording.Export

Parameters​

start int
The starting index for loading events.

limit bool
The maximum number of events to load.

Returns​

dict[str, object] or str
Exported event information or error details.


check_name_export_event​

Check if an export event name is valid or already exists.

Internal API​

SYNO.SurveillanceStation.Recording.Export

Parameters​

dsId int
The data source ID.

name int
The name to check for the export event.

share str
The share name associated with the export event.

Returns​

dict[str, object] or str
Result of the name check or error details.


get_camera_information_list​

Retrieve the list of camera information for event export.

Internal API​

SYNO.SurveillanceStation.Recording.Export

Parameters​

dslld int
The ID of the data source (recording server) to query cameras from.

Returns​

dict[str, object] or str
Camera information list or error details.


check_destination_folder_availability​

Check if the destination folder has enough available space for export.

Internal API​

SYNO.SurveillanceStation.Recording.Export

Parameters​

freeSize int
Required free size in bytes.

startTime int
Start time of the export range (UTC timestamp).

stopTime int
End time of the export range (UTC timestamp).

camIdList str
Comma-separated list of camera IDs to check.

Returns​

dict[str, object] or str
Availability information or error details.


handle_save_event_export​

Save an event export task with the specified parameters.

Internal API​

SYNO.SurveillanceStation.Recording.Export

Parameters​

name str
Name of the export task.

srcDsId int
Source data source ID.

dstDsId int
Destination data source ID.

dstdir str
Destination directory for export.

freesize int
Required free size in bytes.

start_time int
Start time of the export range (UTC timestamp).

stop_time int
End time of the export range (UTC timestamp).

isoverwrite int
Whether to overwrite existing files (1 for true, 0 for false).

camlistid str
Comma-separated list of camera IDs to export.

Returns​

dict[str, object] or str
Result of the save operation or error details.


get_event_export_info_from_recording_server​

Retrieve event export information from the recording server.

Internal API​

SYNO.SurveillanceStation.Recording.Export

Parameters​

start_time int
Start time of the export range (UTC timestamp).

stop_time int
End time of the export range (UTC timestamp).

camlistid str
Comma-separated list of camera IDs.

Returns​

dict[str, object] or str
Export information or error details.


load_event_mount​

Load event mount information for export.

Internal API​

SYNO.SurveillanceStation.Recording.Mount

Returns​

dict[str, object] or str
Mount information or error details.


redirect_webapi_to_target_ds​

Redirect a WebAPI request to a target DiskStation.

Internal API​

SYNO.SurveillanceStation.CMS

Parameters​

dsId int
Target DiskStation ID.

webAPI Any
WebAPI information to redirect (array of webAPI_info).

Returns​

dict[str, object] or str
Result of the redirect operation or error details.


modify_share_privilege​

Modify the share privilege settings in Surveillance Station CMS.

Internal API​

SYNO.SurveillanceStation.CMS

Parameters​

privSet int
Privilege set value.

shareName str
Name of the share to modify.

Returns​

dict[str, object] or str
Result of the privilege modification or error details.


apply_option_settings​

Apply option settings for Surveillance Station CMS.

Internal API​

SYNO.SurveillanceStation.CMS

Parameters​

central_auto_video_relay bool
Enable or disable central auto video relay.

central_enable bool
Enable or disable central management.

central_mode str
Set the central management mode.

central_rec_mask_mode bool
Enable or disable central recording mask mode.

central_rec_sync_time bool
Enable or disable central recording time synchronization.

nvr_enable bool
Enable or disable NVR.

nvr_lang str
Set the NVR language. (Currently not working).

Returns​

dict[str, object] or str
Result of the apply operation or error details.


get_cms_info​

Retrieve CMS (Central Management System) information.

Internal API​

SYNO.SurveillanceStation.CMS

Parameters​

isPolling bool
Whether to poll for CMS information. (Currently not working).

Returns​

dict[str, object] or str
CMS information or error details.


get_log_recording_data_from_target_ds​

Retrieve log recording data from a target DiskStation.

Internal API​

SYNO.SurveillanceStation.CMS

Parameters​

syncType int
Type of synchronization.

syncTargetId int
ID of the target DiskStation for synchronization.

limit int
Limit the number of records returned. (Currently not working).

Returns​

dict[str, object] or str
Log recording data or error details.


get_samba_service​

Check if the Samba service is enabled on the CMS.

Internal API​

SYNO.SurveillanceStation.CMS

Returns​

dict[str, object] or str
Samba service status or error details.


check_if_samba_on_and_rec_enabled​

Check if Samba is enabled and recording is enabled on the CMS.

Internal API​

SYNO.SurveillanceStation.CMS

Returns​

dict[str, object] or str
Status of Samba and recording or error details.


get_encoded_single_image_of_camera​

Retrieve an encoded single image (snapshot) from a specified camera.

Internal API​

SYNO.SurveillanceStation.CMS

Parameters​

camId int
ID of the camera to get the snapshot from.

Returns​

dict[str, object] or str
Encoded image data or error details.


get_cms_status​

Retrieve the status of the CMS.

Internal API​

SYNO.SurveillanceStation.CMS

Parameters​

camId int
ID of the camera to check status for. (Currently not working).

Returns​

dict[str, object] or str
CMS status or error details.


enable_smb_service​

Enable the Samba service on the CMS.

Internal API​

SYNO.SurveillanceStation.CMS

Returns​

dict[str, object] or str
Result of the enable operation or error details.


notify_slave_ds_to_disconnect​

Notify a slave DiskStation to disconnect from the CMS.

Internal API​

SYNO.SurveillanceStation.CMS

Returns​

dict[str, object] or str
Result of the notification or error details.


lock_recording_server_prevent_setting_change​

Lock the recording server to prevent setting changes.

Internal API​

SYNO.SurveillanceStation.CMS

Parameters​

locked bool
Whether to lock the server. (Currently not working).

Returns​

dict[str, object] or str
Result of the lock operation or error details.


enable_ds_into_recording_server​

Enable a DiskStation as a recording server in the CMS.

Internal API​

SYNO.SurveillanceStation.CMS.GetDsStatus

Parameters​

adminUsername str
Administrator username.

adminPasswd str
Administrator password.

central_rec_mask_mode str
Central recording mask mode.

central_rec_sync_time str
Central recording synchronization time.

Returns​

dict[str, object] or str
Result of the enable operation or error details.


unpair_recording_servers​

Unpair recording servers from the CMS.

Internal API​

SYNO.SurveillanceStation.CMS.GetDsStatus

Parameters​

adminUsername str
Administrator username.

key str
Key for unpairing.

mac str
MAC address of the server.

cmsMode int
CMS mode.

Returns​

dict[str, object] or str
Result of the unpair operation or error details.


get_free_memory_size​

Retrieve the free memory size from the target DiskStation.

Internal API​

SYNO.SurveillanceStation.CMS.GetDsStatus

Returns​

dict[str, object] or str
Free memory size information or error details.


handle_slave_ds​

Handle slave DiskStation operations such as locking or authentication.

Internal API​

SYNO.SurveillanceStation.CMS.GetDsStatus

Parameters​

lock bool
Whether to lock the slave DiskStation.

adminUsername str
Administrator username.

key str
Authentication key.

mac str
MAC address of the slave DiskStation.

masterAuthKey str
Master authentication key. (To check).

Returns​

dict[str, object] or str
Result of the operation or error details.


get_target_ds_info​

Retrieve information about the target slave DiskStation.

Internal API​

SYNO.SurveillanceStation.CMS.GetDsStatus

Parameters​

slaveDslp str
Slave DiskStation IP or identifier.

Returns​

dict[str, object] or str
Target DiskStation information or error details.


logout_slave_ds​

Log out a slave DiskStation from the CMS.

Internal API​

SYNO.SurveillanceStation.CMS.GetDsStatus

Parameters​

adminUsername str
Administrator username.

key str
Authentication key.

mac str
MAC address of the slave DiskStation.

Returns​

dict[str, object] or str
Result of the logout operation or error details.


pair_slave_ds​

Pair a slave DiskStation with the CMS.

Internal API​

SYNO.SurveillanceStation.CMS.GetDsStatus

Parameters​

dsname str
Name of the slave DiskStation.

slaveDslp str
Slave DiskStation IP or identifier.

port int
Port number for connection.

masterAuthKey str
Master authentication key.

model str
Model of the slave DiskStation.

mac str
MAC address of the slave DiskStation.

cms_locked bool
Whether the CMS is locked.

cms_masked bool
Whether the CMS is masked.

cms_sync_time bool
Synchronize time with CMS. (Currently not working).

Returns​

dict[str, object] or str
Result of the pairing operation or error details.


login_slave_ds​

Log in a slave DiskStation to the CMS.

Internal API​

SYNO.SurveillanceStation.CMS.GetDsStatus

Parameters​

adminUsername str
Administrator username.

key str
Authentication key.

mac str
MAC address of the slave DiskStation.

masterAuthKey str
Master authentication key.

hostName str
Hostname of the slave DiskStation.

hostPort int
Port number for connection.

ignoreAuthError str
Ignore authentication errors.

hostDisconnect bool
Whether to disconnect the host.

blUpdateVolSpace bool
Update volume space information.

enable_rec bool
Enable recording.

cms_locked bool
Whether the CMS is locked.

cms_masked bool
Whether the CMS is masked.

cms_sync_time bool
Synchronize time with CMS. (Currently not working).

Returns​

dict[str, object] or str
Result of the login operation or error details.


save_slave_ds​

Save or update a slave DiskStation's configuration in the CMS.

Internal API​

SYNO.SurveillanceStation.CMS.GetDsStatus

Parameters​

slavedsName str
Name of the slave DiskStation.

slavedsModel str
Model of the slave DiskStation.

slavedsPort int
Port number used by the slave DiskStation.

slavedsVersion str
Version of the slave DiskStation.

slavedsMaxCamNum int
Maximum number of cameras supported by the slave DiskStation.

slavedsId str
Identifier for the slave DiskStation.

slavedsIP str
IP address of the slave DiskStation.

slavedsEnable int
Enable status of the slave DiskStation.

slavedsCamCnt bool
Number of cameras currently connected to the slave DiskStation.

adminUsername str
Administrator username for authentication.

adminPasswd str
Administrator password for authentication.

cms_locked bool
Whether the CMS is locked.

cms_masked bool
Whether the CMS is masked.

cms_sync_time bool
Synchronize time with CMS. (Currently not working).

Returns​

dict[str, object] or str
Result of the save operation or error details.


load_slave_ds_list​

Load the list of slave DiskStations from the CMS.

Internal API​

SYNO.SurveillanceStation.CMS.SlavedsList

Parameters​

blNeedStatus bool
Whether to include status information.

blGetSortInfo bool
Whether to include sorting information.

blRuntimeInfo bool
Whether to include runtime information.

dslds str
Comma-separated list of DiskStation IDs to load.

sortInfo int
Sorting information.

Returns​

dict[str, object] or str
List of slave DiskStations or error details.


count_number_of_logs​

Count the number of logs in Surveillance Station based on various filters.

Internal API​

SYNO.SurveillanceStation.Log

Parameters​

slavedsName str
Name of the slave DiskStation.

start int
Start index for pagination.

limit int
Maximum number of logs to count.

level str
Log level filter.

filterCamera str
Filter by camera.

cameraIds str
Comma-separated list of camera IDs.

dsfrom int
Start time (timestamp).

to int
End time (timestamp).

keyword str
Keyword to search in logs.

keywordDsId str
DiskStation ID for keyword search.

time2String str
Time string for filtering.

dsId str
DiskStation ID.

srcType int
Source type filter.

timezoneOffset int
Timezone offset.

Returns​

dict[str, object] or str
Count of logs or error details.


clear_selected_logs​

Clear selected logs from Surveillance Station based on various filters.

Internal API​

SYNO.SurveillanceStation.Log

Parameters​

blClearAll bool
Whether to clear all logs.

level int
Log level filter.

dsId int
DiskStation ID.

filterCamera str
Filter by camera.

cameraIds str
Comma-separated list of camera IDs.

dsfrom int
Start time (timestamp).

to int
End time (timestamp).

keyword str
Keyword to search in logs.

keywordDsId str
DiskStation ID for keyword search.

srcType int
Source type filter.

timezoneOffset int
Timezone offset.

Returns​

dict[str, object] or str
Result of the clear operation or error details.


get_information_log​

Retrieve information logs from Surveillance Station based on various filters.

Internal API​

SYNO.SurveillanceStation.Log

Parameters​

start int
Start index for pagination.

limit int
Maximum number of logs to retrieve.

level str
Log level filter.

filterCamera str
Filter by camera.

cameraIds str
Comma-separated list of camera IDs.

dsfrom int
Start time (timestamp).

to int
End time (timestamp).

keyword str
Keyword to search in logs.

keywordDsId str
DiskStation ID for keyword search.

time2String str
Time string for filtering.

dsId int
DiskStation ID.

srcType int
Source type filter.

all bool
Whether to retrieve all logs.

blIncludeRecCnt str
Include recording count information.

blIncludeAuInfo str
Include additional information.

Returns​

dict[str, object] or str
List of information logs or error details.


get_advanced_settings_logs​

Retrieve advanced log settings from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Log

Returns​

dict[str, object] or str
Advanced log settings or error details.


set_advanced_setting_logs​

Set advanced log settings in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Log

Parameters​

data Any
List of log type settings to apply. Example: data=[{"SSLogType":321912835,"enable":1},{"SSLogType":321912836,"enable":0}]

Returns​

dict[str, object] or str
Result of the set operation or error details.


load_license_data​

Load license data from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.License

Parameters​

num_only int
If set, only the number of licenses will be returned.

Returns​

dict[str, object] or str
License data or error details.


check_license_quota​

Check the license quota for cameras in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.License

Parameters​

camList Any
List of camera information dictionaries. Example: camList = [{"ip": "10.13.22.141", "model": "DCS-3110", "vendor": "DLink", "port": 80}]

camServerId int
Camera server ID.

Returns​

dict[str, object] or str
License quota information or error details.


get_http_video_stream​

Retrieve an HTTP video event stream from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Stream

Parameters​

writeHeader bool
Whether to include headers in the stream.

analyevent bool
Whether to analyze events in the stream.

mountId int
Mount ID for the stream.

Returns​

dict[str, object] or str
Video stream data or error details.


save_action_rule​

Save or update an action rule in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.ActionRule

Parameters​

id int
Action rule ID.

name str
Name of the action rule.

ruleType int
Type of the rule.

actType int
Action type.

evtSrc int
Event source.

evtDsId int
Event DiskStation ID.

evtDevId int
Event device ID.

evtId int
Event ID.

evtItem int
Event item.

evtMinIntvl int
Minimum interval between events.

Actions Any
List of actions to perform.

actSchedule str
Action schedule.

Id int
Alternative action rule ID.

actSrc int
Action source.

actDsId int
Action DiskStation ID.

actDevId int
Action device ID.

actId int
Action ID.

actTimes int
Number of times to perform the action.

actTimeUnit int
Time unit for the action.

actTimeDur int
Duration for the action.

actItemId int
Action item ID.

actRetPos int
Action return position.

extUrl str
External URL for the action.

userName str
Username for authentication.

password str
Password for authentication. (Currently not working).

Returns​

dict[str, object] or str
Result of the save operation or error details.


download_action_rule​

Download the history of action rules from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.ActionRule

Returns​

dict[str, object] or str
Downloaded action rule history or error details.


send_data_2_player​

Send data to the Surveillance Station player.

Internal API​

SYNO.SurveillanceStation.ActionRule

Returns​

dict[str, object] or str
Result of the send operation or error details.


delete_all_histories_of_action_rule​

Delete all histories of specified action rules.

Internal API​

SYNO.SurveillanceStation.ActionRule

Parameters​

idList str
Comma-separated list of action rule IDs to delete histories for.

Returns​

dict[str, object] or str
Result of the delete operation or error details.


list_action_rules​

List action rules in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.ActionRule

Parameters​

start str
Start index for pagination.

limit int
Maximum number of action rules to return.

Returns​

dict[str, object] or str
List of action rules or error details.


disable_action_rules​

Disable specified action rules in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.ActionRule

Parameters​

idList str
Comma-separated list of action rule IDs to disable.

Returns​

dict[str, object] or str
Result of the disable operation or error details.


enable_action_rules​

Enable specified action rules in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.ActionRule

Parameters​

idList str
Comma-separated list of action rule IDs to enable.

Returns​

dict[str, object] or str
Result of the enable operation or error details.


list_history_action_rules​

List the history of action rules in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.ActionRule

Parameters​

start int
Start index for pagination.

limit int
Maximum number of history records to return.

Returns​

dict[str, object] or str
List of action rule histories or error details.


delete_action_rule​

Delete specified action rules from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.ActionRule

Parameters​

idList str
Comma-separated list of action rule IDs to delete.

Returns​

dict[str, object] or str
Result of the delete operation or error details.


get_list_of_emaps​

Retrieve a list of eMaps from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Emap

Parameters​

start int
Start index for pagination.

limit str
Maximum number of eMaps to return.

emapIds int
Specific eMap IDs to retrieve.

includeItems int
Whether to include items in the eMap.

Returns​

dict[str, object] or str
List of eMaps or error details.


get_specific_emaps_setting​

Retrieve specific eMap settings from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Emap

Parameters​

emapIds int
The ID(s) of the eMap(s) to retrieve settings for.

includeImage int
Whether to include the eMap image in the response.

Returns​

dict[str, object] or str
The eMap settings or error details.


get_emap_image​

Retrieve an eMap image from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Emap.Image

Parameters​

filename str
The filename of the eMap image to retrieve.

Returns​

dict[str, object] or str
The eMap image data or error details.


get_autorized_ds_token​

Retrieve an authorized DiskStation token for notifications.

Internal API​

SYNO.SurveillanceStation.Notification

Returns​

dict[str, object] or str
The authorized token or error details.


set_message_event​

Set a customized message event in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification

Parameters​

eventTypes str
The type(s) of event(s) to set the message for.

subject str
The subject of the message.

content str
The content of the message.

Returns​

dict[str, object] or str
Result of the set operation or error details.


get_message_event​

Retrieve a customized message event from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification

Parameters​

eventTypes int
The type(s) of event(s) to retrieve the message for.

Returns​

dict[str, object] or str
The message event data or error details.


set_notification_sender_name​

Set the sender name for Surveillance Station notifications.

Internal API​

SYNO.SurveillanceStation.Notification

Parameters​

ss_pkg_name str
The sender name to set.

Returns​

dict[str, object] or str
Result of the set operation or error details.


get_notification_sender_name​

Retrieve the sender name for Surveillance Station notifications.

Internal API​

SYNO.SurveillanceStation.Notification

Returns​

dict[str, object] or str
The sender name or error details.


set_advanced_notification_setting​

Set advanced notification settings in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification

Parameters​

blSyncDSMNotify bool
Whether to synchronize DSM notifications.

blCompactMsg bool
Whether to enable compact message format.

Returns​

dict[str, object] or str
Result of the set operation or error details.


get_advanced_notification_setting​

Retrieve advanced notification settings from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification

Returns​

dict[str, object] or str
The advanced notification settings or error details.


send_test_mesg_to_primary_secondary_phone​

Send a test message to the primary and secondary phone numbers via SMS.

Internal API​

SYNO.SurveillanceStation.Notification.SMS

Parameters​

smsEnable bool
Whether SMS notifications are enabled.

smsMethod int
The SMS sending method.

smsProvider str
The SMS provider name.

userName str
Username for SMS provider authentication.

password str
Password for SMS provider authentication.

confirmPassword str
Confirmation of the password.

primaryPhoneCode str
Country code for the primary phone.

primaryPhonePrefix str
Prefix for the primary phone.

secondaryPhoneCode str
Country code for the secondary phone.

secondaryPhonePrefix str
Prefix for the secondary phone.

secondaryPhoneNumber str
The secondary phone number.

setMinMessageInterval bool
Whether to set a minimum message interval.

minMessageInterval int
The minimum interval between messages.

hasSysSms bool
Whether system SMS is enabled.

apiId str
The API ID for the SMS provider.

Returns​

dict[str, object] or str
Result of the test message operation or error details.


get_setting_notification_sms​

Retrieve the SMS notification settings from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification.SMS

Returns​

dict[str, object] or str
The SMS notification settings or error details.


set_sms_service_setting​

Set the SMS service settings for Surveillance Station notifications.

Internal API​

SYNO.SurveillanceStation.Notification.SMS

Parameters​

smsEnable bool
Whether SMS notifications are enabled.

smsMethod int
The SMS sending method.

smsProvider str
The SMS provider name.

userName str
Username for SMS provider authentication.

password str
Password for SMS provider authentication.

confirmPassword str
Confirmation of the password.

primaryPhoneCode str
Country code for the primary phone.

primaryPhonePrefix str
Prefix for the primary phone.

secondaryPhoneCode str
Country code for the secondary phone.

secondaryPhonePrefix str
Prefix for the secondary phone.

secondaryPhoneNumber str
The secondary phone number.

setMinMessageInterval bool
Whether to set a minimum message interval.

minMessageInterval int
The minimum interval between messages.

hasSysSms bool
Whether system SMS is enabled.

apiId str
The API ID for the SMS provider.

Returns​

dict[str, object] or str
Result of the set operation or error details.


send_test_sms​

Send a test SMS notification from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification.SMS

Parameters​

attachSnapshot bool
Whether to attach a snapshot to the SMS.

enableInterval bool
Whether to enable message interval.

mobileEnable bool
Whether to enable mobile notifications.

msgInterval str
The interval between messages.

primaryEmail str
The primary email address for notifications.

secondaryEmail str
The secondary email address for notifications.

synoMailEnable bool
Whether to enable Synology Mail notifications.

mail_recipient str
The recipient of the test mail.

Returns​

dict[str, object] or str
Result of the test SMS operation or error details.


send_test_mail​

Send a test verification mail for Surveillance Station notifications.

Internal API​

SYNO.SurveillanceStation.Notification.PushService

Parameters​

attachSnapshot bool
Whether to attach a snapshot to the email.

enableInterval bool
Whether to enable message interval.

mobileEnable bool
Whether to enable mobile notifications.

msgInterval str
The interval between messages.

primaryEmail str
The primary email address for notifications.

secondaryEmail str
The secondary email address for notifications.

synoMailEnable bool
Whether to enable Synology Mail notifications.

mail_recipient str
The recipient of the test mail.

Returns​

dict[str, object] or str
Result of the test mail operation or error details.


list_mobile_paired_devices​

List mobile devices paired with Surveillance Station for push notifications.

Internal API​

SYNO.SurveillanceStation.Notification.PushService

Parameters​

attachSnapshot bool
Whether to attach a snapshot to the notification.

enableInterval bool
Whether to enable message interval.

mobileEnable bool
Whether to enable mobile notifications.

msgInterval str
The interval between messages.

primaryEmail str
The primary email address for notifications.

secondaryEmail str
The secondary email address for notifications.

synoMailEnable bool
Whether to enable Synology Mail notifications.

mail_recipient str
The recipient of the notification.

Returns​

dict[str, object] or str
List of paired mobile devices or error details.


unpair_device​

Unpair a mobile device from Surveillance Station notifications.

Internal API​

SYNO.SurveillanceStation.Notification.PushService

Parameters​

targetIds str
The ID(s) of the device(s) to unpair.

Returns​

dict[str, object] or str
Result of the unpair operation or error details.


get_controller_access_schedule​

Retrieve the access control controller schedule from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification.Schedule

Parameters​

targetIds str
The ID(s) of the controllers to retrieve the schedule for.

Returns​

dict[str, object] or str
The controller access schedule or error details.


get_camera_alarm_schedule​

Retrieve the alarm schedule for a specific camera.

Internal API​

SYNO.SurveillanceStation.Notification.Schedule

Parameters​

cameraId int
The ID of the camera.

alarmdx int
Additional alarm parameter (to check).

Returns​

dict[str, object] or str
The camera alarm schedule or error details.


get_sys_dependent_schedule​

Retrieve the system dependent schedule for Surveillance Station events.

Internal API​

SYNO.SurveillanceStation.Notification.Schedule

Parameters​

eventGroupTypes int
The type(s) of event groups to retrieve the schedule for.

Returns​

dict[str, object] or str
The system dependent schedule or error details.


set_batch_schedule​

Set batch schedules for events, cameras, or camera groups.

Internal API​

SYNO.SurveillanceStation.Notification.Schedule

Parameters​

eventTypes str
The type(s) of events to schedule.

schedule Any
The schedule data to apply.

cameraIds str
The IDs of cameras to apply the schedule to.

cameraGroupIds str
The IDs of camera groups to apply the schedule to.

filter int
Additional filter parameter (to check).

Returns​

dict[str, object] or str
Result of the batch schedule operation or error details.


get_access_ctrl_door_schedule​

Retrieve the access control door schedule from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification.Schedule

Parameters​

doorId str
The ID of the door to retrieve the schedule for.

Returns​

dict[str, object] or str
The door schedule or error details.


get_camera_schedule​

Retrieve the schedule for a specific camera.

Internal API​

SYNO.SurveillanceStation.Notification.Schedule

Parameters​

cameraId str
The ID of the camera to retrieve the schedule for.

Returns​

dict[str, object] or str
The camera schedule or error details.


set_sys_dependent_schedule​

Set the system dependent schedule for Surveillance Station events.

Internal API​

SYNO.SurveillanceStation.Notification.Schedule

Parameters​

eventType int
The type of event to set the schedule for.

schedule Any
The schedule data to apply.

Returns​

dict[str, object] or str
Result of the set operation or error details.


set_controller_access_schedule​

Set the access control schedule for a controller or door.

Internal API​

SYNO.SurveillanceStation.Notification.Schedule

Parameters​

eventType int
The type of event to set the schedule for.

schedule Any
The schedule data to apply.

doorId int
The ID of the door to set the schedule for.

Returns​

dict[str, object] or str
Result of the set operation or error details.


set_camera_schedule​

Set the schedule for a specific camera in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification.Schedule

Parameters​

eventType int
The type of event to set the schedule for.

schedule Any
The schedule data to apply.

cameraId Any
The ID of the camera to set the schedule for.

Returns​

dict[str, object] or str
Result of the set operation or error details.


get_notification_email_string​

Retrieve the notification email settings string from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification.Email

Returns​

dict[str, object] or str
The notification email settings or error details.


set_adv_tab_info_filter​

Set the advanced tab information filter for notification emails.

Internal API​

SYNO.SurveillanceStation.Notification.Email

Parameters​

X int
The filter value to set (to check).

Returns​

dict[str, object] or str
Result of the set operation or error details.


create_sms_service_provider​

Create a new SMS service provider for Surveillance Station notifications.

Internal API​

SYNO.SurveillanceStation.Notification.SMS.ServiceProvider

Parameters​

providerName str
The name of the SMS provider.

providerPort int
The port used by the provider.

providerUrl str
The URL of the provider.

providerTemplate str
The message template for the provider.

providerSepChar str
The separator character used by the provider.

providerNeedSSL bool
Whether SSL is required for the provider.

Returns​

dict[str, object] or str
Result of the create operation or error details.


list_sms_provider​

List all SMS service providers configured in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification.SMS.ServiceProvider

Returns​

dict[str, object] or str
List of SMS providers or error details.


delete_sms_service_provider​

Delete an SMS service provider from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Notification.SMS.ServiceProvider

Parameters​

providerName str
The name of the SMS provider to delete.

Returns​

dict[str, object] or str
Result of the delete operation or error details.


get_addson_to_update​

Retrieve information about add-ons that require updates in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AddOns

Returns​

dict[str, object] or str
Add-on update information or error details.


enable_specific_addon​

Enable a specific add-on in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AddOns

Parameters​

service int
The ID of the add-on service to enable.

servicename str
The name of the add-on service to enable.

Returns​

dict[str, object] or str
Result of the enable operation or error details.


get_specific_addon_update_info​

Retrieve update information for a specific add-on in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AddOns

Parameters​

service int
The ID of the add-on service to check for updates.

Returns​

dict[str, object] or str
Update information or error details.


get_specific_addon_info​

Retrieve information for a specific add-on in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AddOns

Parameters​

service int
The ID of the add-on service to retrieve information for.

Returns​

dict[str, object] or str
Add-on information or error details.


get_total_addon_info​

Retrieve information about all add-ons in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AddOns

Returns​

dict[str, object] or str
List of all add-ons or error details.


update_addon_package​

Update an add-on package in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AddOns

Parameters​

service int
The ID of the add-on service to update.

filePath str
The file path to the add-on package (to check).

Returns​

dict[str, object] or str
Result of the update operation or error details.


check_addon_status​

Check the enable status of a specific add-on in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AddOns

Parameters​

service int
The ID of the add-on service to check (to check).

Returns​

dict[str, object] or str
Status information or error details.


disable_addon​

Disable a specific add-on in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AddOns

Parameters​

service int
The ID of the add-on service to disable.

serviceName str
The name of the add-on service to disable (to check).

Returns​

dict[str, object] or str
Result of the disable operation or error details.


set_addon_autoupdate​

Set the auto-update setting for a specific add-on in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AddOns

Parameters​

service int
The ID of the add-on service to configure.

BlEnabled Any
Whether auto-update is enabled (to check).

Returns​

dict[str, object] or str
Result of the set operation or error details.


delete_specific_camera_recording_server​

Delete a specific camera recording server in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

camIdList str
List of camera IDs to delete from the recording server (to check).

Returns​

dict[str, object] or str
Result of the delete operation or error details.


get_camera_event_analytic​

Retrieve camera event analytics from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

camIdList str
List of camera IDs to retrieve analytics for (to check).

Returns​

dict[str, object] or str
Analytics data or error details.


delete_selected_events​

Delete selected events from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

dsIdList str
List of DS IDs for which to delete events.

idList str
List of event IDs to delete (to check).

Returns​

dict[str, object] or str
Result of the delete operation or error details.


delete_specific_camera_events​

Delete events for specific cameras in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

camIdList str
List of camera IDs for which to delete events (to check).

Returns​

dict[str, object] or str
Result of the delete operation or error details.


get_analytic_history​

Retrieve analytic history for cameras in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

camIdList str
List of camera IDs to retrieve history for.

typeListstring str
List of analytic types as a string (to check).

Returns​

dict[str, object] or str
Analytic history data or error details.


get_analytic_history_by_filter​

Retrieve analytic history for cameras by filter in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

camIdList str
List of camera IDs to filter.

dsId int
The DS ID to filter.

lock int
Lock status to filter.

typeList str
List of analytic types as a string (to check).

Returns​

dict[str, object] or str
Filtered analytic history data or error details.


unklock_selected_events​

Unlock selected events in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

dsId int
The DS ID for which to unlock events.

idList str
List of event IDs to unlock (to check).

Returns​

dict[str, object] or str
Result of the unlock operation or error details.


set_camera_analytic_trigger​

Trigger camera analytics for specified cameras in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

trigCamIdList str
List of camera IDs to trigger analytics for (to check).

Returns​

dict[str, object] or str
Result of the trigger operation or error details.


flush_event_header​

Flush the header of a specific event in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

eventId str
The ID of the event to flush the header for (to check).

Returns​

dict[str, object] or str
Result of the flush operation or error details.


lock_selected_events​

Lock selected events in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

dsId int
The DS ID for which to lock events.

idList str
List of event IDs to lock (to check).

Returns​

dict[str, object] or str
Result of the lock operation or error details.


get_analytic_event_from_rec_server​

Retrieve analytic event counts from the recording server for specified cameras.

Internal API​

SYNO.SurveillanceStation.Alert

Parameters​

camIdList str
Comma-separated list of camera IDs to query.

idList int
Additional ID list parameter (to check).

Returns​

dict[str, object] or str
Analytic event count data or error details.


save_analytic_settings​

Save analytic settings for a specific camera.

Internal API​

SYNO.SurveillanceStation.Alert.Setting

Parameters​

camId int
Camera ID to apply settings to.

type int
Type of analytic.

showFrame bool
Whether to display the frame.

showLine bool
Whether to display lines.

showVirtualFence bool
Whether to display virtual fences.

beep bool
Whether to enable beep on event.

sens int
Sensitivity setting.

dwellTime int
Dwell time setting.

direction int
Direction setting.

objSize int
Object size setting.

region str
Region definition (to check).

Returns​

dict[str, object] or str
Result of the save operation or error details.


check_if_snapshot_exist​

Check if a snapshot exists for a given ID.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

id int
Snapshot ID to check (to check).

Returns​

dict[str, object] or str
Existence status or error details.


save_snapshot_modification​

Save modifications to a snapshot.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

id int
Snapshot ID to modify.

createCopy bool
Whether to create a copy of the snapshot.

width int
Width of the snapshot.

height int
Height of the snapshot.

byteSize int
Size of the snapshot in bytes.

imageData str
Image data (to check).

Returns​

dict[str, object] or str
Result of the modification or error details.


count_snapshot_by_category​

Count snapshots by category within a specified range.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

keyword str
Keyword to filter snapshots.

dsfrom int
Start timestamp.

to int
End timestamp.

timezoneOffset int
Timezone offset.

byteSize int
Size of the snapshot in bytes.

imageData str
Image data (to check).

Returns​

dict[str, object] or str
Count data or error details.


check_any_locked_snapshot​

Check if any locked snapshots exist within a specified range.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

id str
Snapshot ID(s) to check.

dsfrom int
Start timestamp.

to int
End timestamp.

keyword str
Keyword to filter snapshots (to check).

Returns​

dict[str, object] or str
Lock status or error details.


unlock_snapshot_by_filter​

Unlock snapshots by filter within a specified range.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

dsfrom int
Start timestamp.

to int
End timestamp.

keyword str
Keyword to filter snapshots (to check).

Returns​

dict[str, object] or str
Result of the unlock operation or error details.


list_snapshot_information​

List snapshot information with optional filters.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

idList str
Comma-separated list of snapshot IDs.

start int
Start index for pagination.

limit int
Maximum number of results to return.

dsfrom int
Start timestamp.

to int
End timestamp.

keyword str
Keyword to filter snapshots.

imgSize int
Image size filter.

blIncludeAuInfo bool
Whether to include additional info.

blIncludeRecCnt bool
Whether to include recording count.

camId int
Camera ID filter (to check).

Returns​

dict[str, object] or str
List of snapshot information or error details.


unlock_snapshot​

Unlock specific snapshots.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

objList Any
List of snapshot objects to unlock (to check).

Returns​

dict[str, object] or str
Result of the unlock operation or error details.


take_snapshot​

Take a snapshot for a specific camera and DS.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

dsId int
DS ID for the snapshot.

camId int
Camera ID for the snapshot.

blSave bool
Whether to save the snapshot (to check).

Returns​

dict[str, object] or str
Result of the snapshot operation or error details.


get_snapshot_setting_function​

Retrieve the snapshot setting function.

Internal API​

SYNO.SurveillanceStation.SnapShot

Returns​

dict[str, object] or str
Snapshot setting information or error details.


delete_snapshot_by_filter​

Delete snapshots by filter within a specified range.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

deleteAllCommand bool
Whether to delete all snapshots.

dsfrom int
Start timestamp.

to int
End timestamp.

keyword str
Keyword to filter snapshots (to check).

Returns​

dict[str, object] or str
Result of the delete operation or error details.


get_snapshot_image​

Retrieve a snapshot image by ID.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

id int
Snapshot ID to retrieve.

imgSize int
Image size (to modify for download?).

Returns​

dict[str, object] or str
Snapshot image data or error details.


lock_snapshot_image​

Lock specific snapshot images.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

objList Any
List of snapshot objects to lock.

Returns​

dict[str, object] or str
Result of the lock operation or error details.


downld_single_snapshot​

Download a single snapshot by ID.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

id int
Snapshot ID to download (not working).

Returns​

dict[str, object] or str
Download result or error details.


save_new_snapshot_setting​

Save new snapshot settings.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

dispSnapshot bool
Whether to display snapshots.

dispDuration int
Display duration for snapshots.

limitTotalSize bool
Whether to limit total snapshot size.

limitSizeInGb int
Limit size in GB.

addTimestamp bool
Whether to add a timestamp to snapshots.

timestampPosition int
Position of the timestamp.

Returns​

dict[str, object] or str
Result of the save operation or error details.


save_snapshot​

Save a new snapshot.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

camName str
Name of the camera.

createdTm int
Creation timestamp.

width int
Width of the snapshot.

height int
Height of the snapshot.

byteSize int
Size of the snapshot in bytes.

imageData str
Image data (to check).

Returns​

dict[str, object] or str
Result of the save operation or error details.


check_snapshot_status​

Check the status of snapshot display.

Internal API​

SYNO.SurveillanceStation.SnapShot

Parameters​

dispSnapshot bool
Whether to display snapshots.

Returns​

dict[str, object] or str
Status information or error details.


enable_visualstation​

Enable VisualStation devices.

Internal API​

SYNO.SurveillanceStation.VisualStation

Parameters​

vslist str
Comma-separated list of VisualStation IDs to enable (to check).

Returns​

dict[str, object] or str
Result of the enable operation or error details.


update_vs_network_config​

Update the network configuration for a VisualStation device.

Internal API​

SYNO.SurveillanceStation.VisualStation

Parameters​

vsMAc str
MAC address of the VisualStation.

ip str
IP address to assign.

mask str
Subnet mask.

gateway str
Gateway address.

blDhcp bool
Whether to use DHCP.

name str
Name of the VisualStation (to check).

Returns​

dict[str, object] or str
Result of the update operation or error details.


lock_visualstation_by_id​

Lock VisualStation devices by ID.

Internal API​

SYNO.SurveillanceStation.VisualStation

Parameters​

vslist str
Comma-separated list of VisualStation IDs to lock (to check).

Returns​

dict[str, object] or str
Result of the lock operation or error details.


enumerate_vs_owner_info​

Enumerate VisualStation owner information.

Internal API​

SYNO.SurveillanceStation.VisualStation

Returns​

dict[str, object] or str
Owner information or error details.


unlock_visualstation_by_id​

Unlock VisualStation devices by ID.

Internal API​

SYNO.SurveillanceStation.VisualStation

Parameters​

vslist str
Comma-separated list of VisualStation IDs to unlock (to check).

Returns​

dict[str, object] or str
Result of the unlock operation or error details.


disable_visualstation_by_id​

Disable VisualStation devices by ID.

Internal API​

SYNO.SurveillanceStation.VisualStation

Parameters​

vslist str
Comma-separated list of VisualStation IDs to disable (to check).

Returns​

dict[str, object] or str
Result of the disable operation or error details.


delete_specific_visualstation​

Delete specific VisualStation devices by ID.

Internal API​

SYNO.SurveillanceStation.VisualStation

Parameters​

vslist str
Comma-separated list of VisualStation IDs to delete (to check).

Returns​

dict[str, object] or str
Result of the delete operation or error details.


enumerate_layout_visualstation​

Enumerate VisualStation layouts.

Internal API​

SYNO.SurveillanceStation.VisualStation.Layout

Parameters​

vsId int
VisualStation ID to filter layouts (to check).

Returns​

dict[str, object] or str
Layout information or error details.


save_layout_information​

Save layout information for a VisualStation.

Internal API​

SYNO.SurveillanceStation.VisualStation.Layout

Parameters​

id int
Layout ID.

vsId int
VisualStation ID.

name str
Name of the layout.

canGrpId int
Camera group ID.

isDefault int
Whether this is the default layout.

isFixAspectRatio int
Whether to fix the aspect ratio.

layoutType int
Type of the layout.

channelList Any
List of channels in the layout.

customPosList str
Custom position list (to check).

Returns​

dict[str, object] or str
Result of the save operation or error details.


delete_layout_visualstation​

Delete a VisualStation layout.

Internal API​

SYNO.SurveillanceStation.VisualStation.Layout

Parameters​

id int
Layout ID to delete.

vsId int
VisualStation ID (to check).

Returns​

dict[str, object] or str
Result of the delete operation or error details.


clear_visualstation_search_result​

Clear VisualStation search results.

Internal API​

SYNO.SurveillanceStation.VisualStation.Search

Returns​

dict[str, object] or str
Result of the clear operation or error details.


get_visualstation_ip_info​

Retrieve VisualStation IP information.

Internal API​

SYNO.SurveillanceStation.VisualStation.Search

Parameters​

ip int
IP address to search for (to check).

Returns​

dict[str, object] or str
IP information or error details.


Stop the previous VisualStation search operation.

Internal API​

SYNO.SurveillanceStation.VisualStation.Search

Returns​

dict[str, object] or str
Result of the stop operation or error details.


get_visualstation_list​

Retrieve the list of VisualStation devices.

Internal API​

SYNO.SurveillanceStation.VisualStation.Layout

Parameters​

offset int
Offset for pagination (to check).

Returns​

dict[str, object] or str
List of VisualStation devices or error details.


get_number_of_controller​

Get the number of controllers in the system.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Returns​

dict[str, object] or str
Number of controllers or error details.


get_cardholder_count​

Get the count of cardholders, optionally filtered by keyword.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

filterKeyword str
Keyword to filter cardholders.

Returns​

dict[str, object] or str
Cardholder count or error details.


enum_all_controllers_logger​

Enumerate all controller logger configurations.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Returns​

dict[str, object] or str
Logger configuration information or error details.


get_cardholder_photo​

Retrieve a cardholder's photo.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

photo_name str
Name of the photo file.

isRedirectCgi bool
Whether to redirect to CGI for the photo (to check).

Returns​

dict[str, object] or str
Photo data or error details.


get_log_count​

Get the count of logs with optional filters.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

start int
Start index for pagination.

limit int
Maximum number of results to return.

filterType int
Type of filter to apply.

filterEventSource Any
Event source filter.

filterSource int
Source filter.

filterEventSourceItem int
Event source item filter.

filterTimeFrom int
Start time for filtering.

filterTimeTo int
End time for filtering.

filterKeyword str
Keyword to filter logs.

timezoneOffset int
Timezone offset.

doorIds str
Door IDs filter.

eventTypes str
Event types filter.

update int
Update flag.

Returns​

dict[str, object] or str
Log count or error details.


get_cardholder_info​

Retrieve cardholder information with optional filters.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

start int
Start index for pagination.

limit int
Maximum number of results to return.

filterKeyword str
Keyword to filter cardholders.

filterStatus int
Status filter.

filterCtrlerId int
Controller ID filter.

Returns​

dict[str, object] or str
Cardholder information or error details.


retrieve_last_access_credential​

Retrieve the last access credential for a controller.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

ctrlerId int
Controller ID.

idPtId int
ID/point ID (to check).

Returns​

dict[str, object] or str
Last access credential information or error details.


enable_disable_controller​

Enable or disable controllers.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

blEnable bool
Whether to enable (True) or disable (False) controllers.

arrayJson str
JSON array of controller IDs.

Returns​

dict[str, object] or str
Result of the operation or error details.


acknowledge_all_alarm_level_log​

Acknowledge all alarm level logs with optional filters.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

start int
Start index for pagination.

limit int
Maximum number of results to return.

filterEventSource Any
Event source filter.

filterSource int
Source filter.

filterEventSourceItem str
Event source item filter.

filterTimeFrom int
Start time for filtering.

filterKeyword str
Keyword to filter logs.

doorIds str
Door IDs filter.

eventTypes str
Event types filter.

update int
Update flag.

Returns​

dict[str, object] or str
Result of the acknowledge operation or error details.


modify_controller_logger_config​

Modify the logger configuration for a controller.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

data Any
Logger configuration data (see example in docstring).

Returns​

dict[str, object] or str
Result of the save operation or error details.


save_controller_settings​

Save controller settings for Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

arrayJson str
JSON string representing controller settings. Example: [{"enable": true, "id": 97, "name": "ctrler1", "host": "10.13.12.173", "port": 80, "model": "A1001", "username": "root", "password": "Q__Q-__-", "time_server": "SurveillanceStation", "time_zone": "Fiji", "door": [{"id": 231, "name": "FrontDoor", "enable_cam": true, "cam_ds_id": 0, "cam_id": 13}]}]

Returns​

dict[str, object] or str
Result of the save operation or error details.


download_filtered_logs​

Download filtered logs from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

start int
Start index for pagination.

limit int
Maximum number of results to return.

filterType int
Type of filter to apply.

filterEventSource int
Event source filter.

filterSource int
Source filter.

filterEventSourceItem str
Event source item filter.

filterTimeFrom int
Start time for filtering.

filterTimeTo int
End time for filtering.

filterKeyword str
Keyword to filter logs.

doorIds str
Door IDs filter.

eventTypes str
Event types filter.

update int
Update flag.

Returns​

dict[str, object] or str
Downloaded log data or error details.


get_door_name_from_controller​

Retrieve door names from a specific controller.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

ctrlerId int
Controller ID.

ip str
Controller IP address.

port int
Controller port.

userName str
Username for authentication.

password int
Password for authentication (to check).

Returns​

dict[str, object] or str
Door names or error details.


test_connection_and_authentication​

Test connection and authentication to a controller.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

ctrlerId int
Controller ID.

ip str
Controller IP address.

port int
Controller port.

userName str
Username for authentication.

password int
Password for authentication (to check).

Returns​

dict[str, object] or str
Result of the test or error details.


enumerate_controller_list_info​

Enumerate controller list information.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

start int
Start index for pagination.

limit int
Maximum number of results to return.

update int
Update flag.

blIncludeRecCnt bool
Whether to include record count.

blIncludeAuInfo bool
Whether to include additional info (to check).

Returns​

dict[str, object] or str
Controller list information or error details.


save_cardholder_setting​

Save cardholder settings.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

arrayJson str
JSON string representing cardholder settings.

Returns​

dict[str, object] or str
Result of the save operation or error details.


enumerate_door_info​

Enumerate door information.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

DoorIds str
Comma-separated list of door IDs.

Returns​

dict[str, object] or str
Door information or error details.


clear_logs_surveillance_station​

Clear logs in Surveillance Station with optional filters.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

filterType int
Type of filter to apply.

filterEventSource Any
Event source filter.

filterSource int
Source filter.

filterEventSourceItem str
Event source item filter.

filterTimeFrom int
Start time for filtering.

filterTimeTo int
End time for filtering.

filterKeyword str
Keyword to filter logs.

doorIds str
Door IDs filter.

eventTypes str
Event types filter.

update int
Update flag.

Returns​

dict[str, object] or str
Result of the clear operation or error details.


list_all_user_privilege​

List all user privileges in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Returns​

dict[str, object] or str
List of user privileges or error details.


manual_lock_operation​

Perform a manual lock or unlock operation on a door.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

doorId int
Door ID to operate on.

operation int
Operation code (to check).

Returns​

dict[str, object] or str
Result of the operation or error details.


save_user_door_priv_setting​

Save user door privilege settings.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

arrayJson str
JSON string representing user door privilege settings.

Returns​

dict[str, object] or str
Result of the save operation or error details.


list_all_logs​

List all logs in Surveillance Station with optional filters.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

start int
Start index for pagination.

limit int
Maximum number of results to return.

filterType int
Type of filter to apply.

filterEventSource Any
Event source filter.

filterSource int
Source filter.

filterEventSourceItem str
Event source item filter.

filterTimeFrom int
Start time for filtering.

filterTimeTo int
End time for filtering.

filterKeyword str
Keyword to filter logs.

timezoneOffset int
Timezone offset.

doorIds str
Door IDs filter.

eventTypes str
Event types filter.

update int
Update flag.

blIncludeRecCnt bool
Whether to include record count.

blIncludeAuInfo bool
Whether to include additional info.

Returns​

dict[str, object] or str
List of logs or error details.


delete_selected_controller​

Delete selected controllers from Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

ids str
Comma-separated string of controller IDs to delete.

Returns​

dict[str, object] or str
Result of the delete operation or error details.


retrieve_data_from_controller​

Retrieve data from a specific controller.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

ctrlerId str
ID of the controller to retrieve data from.

Returns​

dict[str, object] or str
Retrieved data or error details.


block_cardholder​

Block cardholders in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Parameters​

arrayJson str
JSON string representing cardholder(s) to block.

Returns​

dict[str, object] or str
Result of the block operation or error details.


get_controller_count​

Get the count of controllers by category.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler

Returns​

dict[str, object] or str
Controller count or error details.


Start searching for controllers.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler.Search

Returns​

dict[str, object] or str
Result of the search operation or error details.


get_controller_search_info​

Get information about the current controller search.

Internal API​

SYNO.SurveillanceStation.AxisAcsCtrler.Search

Parameters​

pid int
Process ID of the search.

offset int
Offset for paginated results.

Returns​

dict[str, object] or str
Search information or error details.


enumerate_digital_output​

Enumerate digital output devices.

Internal API​

SYNO.SurveillanceStation.DigitalOutput

Parameters​

camId int
Camera ID to filter digital outputs.

Returns​

dict[str, object] or str
List of digital outputs or error details.


save_digital_output_parameters​

Save parameters for a digital output device.

Internal API​

SYNO.SurveillanceStation.DigitalOutput

Parameters​

camId int
Camera ID.

idx int
Index of the digital output.

keep_setting bool
Whether to keep the current setting.

normal_state int
Normal state value.

trigger_state bool
Trigger state value.

Returns​

dict[str, object] or str
Result of the save operation or error details.


long_polling_digital_output_status​

Perform long polling to get the status of a digital output.

Internal API​

SYNO.SurveillanceStation.DigitalOutput

Parameters​

camId int
Camera ID.

idx int
Index of the digital output.

keep bool
Whether to keep polling.

setNormalCap bool
Set normal capability.

normal int
Normal state value.

trigger bool
Trigger state value.

timeOut int
Timeout for polling.

Returns​

dict[str, object] or str
Status information or error details.


trigger_external_event​

Trigger an external event in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.ExternalEvent

Parameters​

eventId int
ID of the event to trigger.

eventName str
Name of the event to trigger.

Returns​

dict[str, object] or str
Result of the trigger operation or error details.


get_list_io_modules​

Get a list of I/O modules.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

start int
Start index for pagination.

limit int
Maximum number of results to return.

blFromList bool
Whether to get from list.

ownerDsId int
Owner device station ID.

Returns​

dict[str, object] or str
List of I/O modules or error details.


get_io_port_list​

Get a list of I/O ports for a module.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

Id int
Module ID.

Port int
Port number.

IP str
IP address.

User str
Username.

Pass str
Password.

Vendor str
Vendor name.

Model str
Model name.

Returns​

dict[str, object] or str
List of I/O ports or error details.


get_supported_list_io_modules​

Get a list of supported I/O module vendor models.

Internal API​

SYNO.SurveillanceStation.IOModule

Returns​

dict[str, object] or str
List of supported vendor models or error details.


save_setting_io_module​

Save or update the settings for an I/O module in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

name str
Name of the I/O module.

id int
ID of the I/O module.

ownerDsId int
Owner device station ID.

vendor str
Vendor name of the I/O module.

model str
Model name of the I/O module.

ip str
IP address of the I/O module.

port int
Port number for the I/O module.

userName str
Username for authentication.

enabled bool
Whether the I/O module is enabled.

status int
Status code of the I/O module.

timeServer str
Time server address.

passWord str
Password for authentication.

ntpEnable bool
Whether NTP is enabled.

DIOdata Any
Digital I/O data (structure to be checked).

Returns​

dict[str, object] or str
Result of the save operation or error details.


enable_io_modules​

Enable specified I/O modules.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

iomlist str
Comma-separated list of I/O module IDs to enable.

Returns​

dict[str, object] or str
Result of the enable operation or error details.


disable_io_modules​

Disable specified I/O modules.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

iomlist str
Comma-separated list of I/O module IDs to disable.

Returns​

dict[str, object] or str
Result of the disable operation or error details.


delete_io_modules​

Delete specified I/O modules.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

iomlist str
Comma-separated list of I/O module IDs to delete.

Returns​

dict[str, object] or str
Result of the delete operation or error details.


test_connection_to_io_module​

Test the connection to a specified I/O module.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

id int
ID of the I/O module.

port str
Port number for the I/O module.

ip str
IP address of the I/O module.

userName str
Username for authentication.

passWord str
Password for authentication.

model str
Model name of the I/O module.

Returns​

dict[str, object] or str
Result of the connection test or error details.


get_capability_io_module​

Get the capability information for a specified I/O module.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

vendor str
Vendor name of the I/O module.

model str
Model name of the I/O module.

Returns​

dict[str, object] or str
Capability information or error details.


configure_io_port_setting​

Configure the port settings for a specified I/O module.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

id int
ID of the I/O module.

DIOdata Any
Digital I/O data for port configuration (structure to be checked).

Returns​

dict[str, object] or str
Result of the configuration or error details.


poll_trigger_state_io_module​

Poll the trigger state of digital input (DI) ports for a specified I/O module.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

Id int
ID of the I/O module.

list Any
List of DI ports to poll (structure to be checked).

timeOut int
Timeout for polling operation.

Returns​

dict[str, object] or str
Polling result or error details.


poll_do_trigger_module​

Poll the trigger state of digital output (DO) ports for a specified I/O module.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

id int
ID of the I/O module.

idx int
Index of the DO port.

normal int
Normal state value.

trigger bool
Trigger state.

timeOut int
Timeout for polling operation.

Returns​

dict[str, object] or str
Polling result or error details.


get_number_of_devices​

Get the number of I/O devices for each device station.

Internal API​

SYNO.SurveillanceStation.IOModule

Returns​

dict[str, object] or str
Number of devices or error details.


get_category_count_io_module​

Get the count of I/O modules by category.

Internal API​

SYNO.SurveillanceStation.IOModule

Parameters​

start int
Start index for pagination.

limit int
Maximum number of results to return.

ownerDsId int
Owner device station ID.

blFromList bool
Whether to get count from a list (to be checked).

Returns​

dict[str, object] or str
Count by category or error details.


start_search_io_module​

Start searching for I/O modules.

Internal API​

SYNO.SurveillanceStation.IOModule.Search

Returns​

dict[str, object] or str
Result of the search operation or error details.


get_search_io_module_info​

Get information about the current I/O module search.

Internal API​

SYNO.SurveillanceStation.IOModule.Search

Parameters​

pid int
Process ID of the search.

Returns​

dict[str, object] or str
Search information or error details.


get_current_camera_status​

Get the current status of specified cameras.

Internal API​

SYNO.SurveillanceStation.Camera.Status

Parameters​

id_list str
Comma-separated list of camera IDs.

Returns​

dict[str, object] or str
Camera status information or error details.


enum_preset_camera_list​

Enumerate the list of presets for a specified camera.

Internal API​

SYNO.SurveillanceStation.PTZ.Preset

Parameters​

cameraId Any
ID of the camera.

Returns​

dict[str, object] or str
List of camera presets or error details.


get_preset_camera_capability​

Get the capability information for camera presets.

Internal API​

SYNO.SurveillanceStation.PTZ.Preset

Parameters​

cameraId int
ID of the camera.

Returns​

dict[str, object] or str
Preset capability information or error details.


record_current_camera_position​

Record the current position of a camera as a preset.

Internal API​

SYNO.SurveillanceStation.PTZ.Preset

Parameters​

cameraId int
ID of the camera.

position int
Preset position index.

speed int
Speed for moving to the preset.

name str
Name for the preset.

Returns​

dict[str, object] or str
Result of the record operation or error details.


delete_list_preset_camera​

Delete specified presets from a camera.

Internal API​

SYNO.SurveillanceStation.PTZ.Preset

Parameters​

cameraId Any
ID of the camera.

position str
Preset position(s) to delete.

Returns​

dict[str, object] or str
Result of the delete operation or error details.


go_specific_preset_by_given_speed​

Move a camera to a specific preset position at a given speed.

Internal API​

SYNO.SurveillanceStation.PTZ.Preset

Parameters​

cameraId Any
ID of the camera.

position int
Preset position index.

speed int
Speed for moving to the preset.

type int
Type of preset move (to be checked).

Returns​

dict[str, object] or str
Result of the move operation or error details.


set_current_camera_position​

Set the current position of a camera as the home position.

Internal API​

SYNO.SurveillanceStation.PTZ.Preset

Parameters​

cameraId Any
ID of the camera.

bindPosition int
Position to bind as home.

Returns​

dict[str, object] or str
Result of the set operation or error details.


enum_patrol_list​

Enumerate the list of patrols for a specified camera.

Internal API​

SYNO.SurveillanceStation.PTZ.Patrol

Parameters​

cam Any
Camera identifier.

Returns​

dict[str, object] or str
List of patrols or error details.


enum_patrol_name_list​

Enumerate the list of patrol names for a specified camera.

Internal API​

SYNO.SurveillanceStation.PTZ.Patrol

Parameters​

camId Any
Camera identifier.

Returns​

dict[str, object] or str
List of patrol names or error details.


load_patrol_detail​

Load the details of a specific patrol.

Internal API​

SYNO.SurveillanceStation.PTZ.Patrol

Parameters​

id int
Patrol ID.

Returns​

dict[str, object] or str
Patrol details or error information.


add_or_modify_patrol​

Add or modify a patrol for a camera.

Internal API​

SYNO.SurveillanceStation.PTZ.Patrol

Parameters​

camId Any
Camera identifier.

id int
Patrol ID.

stayTime int
Stay time at each preset.

speed int
Patrol speed.

name str
Name of the patrol.

presetList Any
List of presets for the patrol (structure to be checked).

Returns​

dict[str, object] or str
Result of the add/modify operation or error details.


delete_specific_patrol​

Delete a specific patrol from a camera.

Internal API​

SYNO.SurveillanceStation.PTZ.Patrol

Parameters​

camId Any
Camera identifier.

patrolId str
Patrol ID to delete.

Returns​

dict[str, object] or str
Result of the delete operation or error details.


run_patrol​

Run a specified patrol on a camera.

Internal API​

SYNO.SurveillanceStation.PTZ.Patrol

Parameters​

camId Any
Camera identifier.

id int
Patrol ID.

Returns​

dict[str, object] or str
Result of the run operation or error details.


stop_patrol​

Stop the currently running patrol on a camera.

Internal API​

SYNO.SurveillanceStation.PTZ.Patrol

Parameters​

camId Any
Camera identifier.

Returns​

dict[str, object] or str
Result of the stop operation or error details.


start_camera_search_process​

Start searching for cameras.

Internal API​

SYNO.SurveillanceStation.Camera.Search

Returns​

dict[str, object] or str
Result of the search operation or error details.


get_camera_search_info​

Get information about the current camera search.

Internal API​

SYNO.SurveillanceStation.Camera.Search

Parameters​

pid int
Process ID of the search.

offset int
Offset for pagination.

Returns​

dict[str, object] or str
Search information or error details.


toggle_home_mode​

Toggle the Home Mode in Surveillance Station.

Internal API​

SYNO.SurveillanceStation.HomeMode

Parameters​

on bool
Whether to enable (True) or disable (False) Home Mode.

Returns​

dict[str, object] or str
Result of the toggle operation or error details.


get_home_mode_settings​

Get the current Home Mode settings.

Internal API​

SYNO.SurveillanceStation.HomeMode

Parameters​

need_mobiles bool
Whether to include mobile device information.

Returns​

dict[str, object] or str
Home Mode settings or error details.


get_transaction_list​

Get a list of device transactions with optional filters.

Internal API​

SYNO.SurveillanceStation.Transactions.Device

Parameters​

filterIds str
Comma-separated list of transaction IDs to filter.

filterDsIds str
Comma-separated list of device station IDs to filter.

filterEnable bool
Filter by enabled status.

filterStatus int
Filter by status code.

start int
Start index for pagination.

limit int
Maximum number of results to return.

Returns​

dict[str, object] or str
List of transactions or error details.


get_all_transaction_list​

Get a list of all transactions with optional filters.

Internal API​

SYNO.SurveillanceStation.Transactions.Transaction

Parameters​

filterIds str
Comma-separated list of transaction IDs to filter.

dsId int
Device station ID.

filterTimeFrom Any
Start time for filtering.

filterStatus int
Filter by status code.

filterLock bool
Filter by lock status.

filterTimeTo Any
End time for filtering.

filterTimeRangeIntersect bool
Whether to intersect time ranges.

filterKeyword str
Keyword for filtering.

start int
Start index for pagination.

limit int
Maximum number of results to return.

Returns​

dict[str, object] or str
List of transactions or error details.


lock_history_records​

Lock specified history records.

Internal API​

SYNO.SurveillanceStation.Transactions.Transaction

Parameters​

filterIds str
Comma-separated list of record IDs to lock.

dsId int
Device station ID.

filterStatus int
Filter by status code.

filterLock bool
Filter by lock status.

filterTimeFrom Any
Start time for filtering.

filterTimeTo Any
End time for filtering.

filterTimeRangeIntersect bool
Whether to intersect time ranges.

filterKeyword str
Keyword for filtering.

start int
Start index for pagination.

limit int
Maximum number of results to return.

Returns​

dict[str, object] or str
Result of the lock operation or error details.


unlock_history_records​

Unlock specified history records.

Internal API​

SYNO.SurveillanceStation.Transactions.Transaction

Parameters​

filterIds str
Comma-separated list of record IDs to unlock.

dsId int
Device station ID.

filterStatus int
Filter by status code.

filterLock bool
Filter by lock status.

filterTimeFrom Any
Start time for filtering.

filterTimeTo Any
End time for filtering.

filterTimeRangeIntersect bool
Whether to intersect time ranges.

filterKeyword str
Keyword for filtering.

start int
Start index for pagination.

limit int
Maximum number of results to return.

Returns​

dict[str, object] or str
Result of the unlock operation or error details.


delete_history_records​

Delete specified history records.

Internal API​

SYNO.SurveillanceStation.Transactions.Transaction

Parameters​

filterIds str
Comma-separated list of record IDs to delete.

dsId int
Device station ID.

filterStatus int
Filter by status code.

filterLock bool
Filter by lock status.

filterTimeFrom Any
Start time for filtering.

filterTimeTo Any
End time for filtering.

filterTimeRangeIntersect bool
Whether to intersect time ranges.

filterKeyword str
Keyword for filtering.

start int
Start index for pagination.

limit int
Maximum number of results to return.

Returns​

dict[str, object] or str
Result of the delete operation or error details.


start_session_with_specified_session_id​

Start a session with a specified session ID.

Internal API​

SYNO.SurveillanceStation.Transactions.Transaction

Parameters​

device_name str
Name of the device.

session_id str
Session ID to start.

timeout int
Timeout for the session.

Returns​

dict[str, object] or str
Result of the start operation or error details.


complete_session_with_specified_id​

Complete a session with a specified session ID.

Internal API​

SYNO.SurveillanceStation.Transactions.Transaction

Parameters​

device_name str
Name of the device.

session_id str
Session ID to complete.

Returns​

dict[str, object] or str
Result of the complete operation or error details.


cancel_session_with_specified_session_id​

Cancel a session with a specified session ID.

Internal API​

SYNO.SurveillanceStation.Transactions.Transaction

Parameters​

device_name str
Name of the device.

session_id str
Session ID to cancel.

Returns​

dict[str, object] or str
Result of the cancel operation or error details.


carry_data_into_session_id​

Append data to a session with a specified session ID.

Internal API​

SYNO.SurveillanceStation.Transactions.Transaction

Parameters​

device_name str
Name of the device.

session_id str
Session ID to append data to.

content str
Data content to append.

Returns​

dict[str, object] or str
Result of the append operation or error details.


add_edit_active_vault_task​

Add or edit an active vault task for archiving.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Parameters​

blCustomFolder bool
Whether to use a custom folder for storage.

blLimitBySize bool
Whether to limit the archive by size.

blRotateFile bool
Whether to enable file rotation.

blSrcRecNoOverlap bool
Whether to avoid overlapping source recordings.

blUseRecDet bool
Whether to use recording detection.

camId Any
Camera ID.

camInfo Any
Camera information.

dayLimit int
Day limit for the archive.

didCode str
Device code.

dsSerial str
Device serial number.

execTime Any
Execution time.

hostname str
Hostname of the source server.

id int
Task ID (for editing).

name str
Name of the task.

passwd str
Password for authentication.

port str
Port number.

recEndTm Any
Recording end time.

recMode str
Recording mode.

recSchedule str
Recording schedule.

recStartTm Any
Recording start time.

schedule str
Task schedule.

storagePath str
Path for storage.

type int
Type of the task.

Returns​

dict of str to object or str
API response from the request.


login_source_server_get_info​

Log in to the source server and retrieve information.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Parameters​

port str
Port number of the source server.

hostname str
Hostname of the source server.

protocol bool
Protocol to use (e.g., HTTPS).

username str
Username for authentication.

passwd str
Password for authentication.

archId int
Archive ID.

didCode str
Device code.

srcDsId int
Source device ID (not working).

Returns​

dict of str to object or str
API response from the request.


delete_archive_vault_task​

Delete an archive vault task.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Parameters​

id int
Task ID to delete.

keepRec bool
Whether to keep the recordings.

Returns​

dict of str to object or str
API response from the request.


list_exist_archive_vault​

List all existing archive vault tasks.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Returns​

dict of str to object or str
API response from the request.


enable_archive_vault_task​

Enable an archive vault task.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Parameters​

id int
Task ID to enable.

Returns​

dict of str to object or str
API response from the request.


disable_archive_vault_task​

Disable an archive vault task.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Parameters​

id int
Task ID to disable.

Returns​

dict of str to object or str
API response from the request.


disable_archive_vault_batchedit_task​

Batch edit (disable) archive vault tasks.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Parameters​

taskIds str
Comma-separated list of task IDs.

attrs Any
Additional attributes for batch edit (not working).

Returns​

dict of str to object or str
API response from the request.


get_batch_edit_progress​

Get the progress of a batch edit operation.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Parameters​

pid int
Process ID of the batch edit operation (not working).

Returns​

dict of str to object or str
API response from the request.


get_batchedit_proress_info​

Get detailed information about batch edit progress.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Parameters​

pid int
Process ID of the batch edit operation (not working).

Returns​

dict of str to object or str
API response from the request.


clean_batchedit_progress_data​

Clean up batch edit progress data.

Internal API​

SYNO.SurveillanceStation.Archiving.Pull

Parameters​

pid int
Process ID of the batch edit operation.

Returns​

dict of str to object or str
API response from the request.


get_youtube_live_broadcast_setting​

Get the current YouTube Live broadcast settings.

Internal API​

SYNO.SurveillanceStation.YoutubeLive

Returns​

dict of str to object or str
API response from the request.


set_youtube_live_broadcast_info​

Set YouTube Live broadcast information.

Internal API​

SYNO.SurveillanceStation.YoutubeLive

Parameters​

rtmp_path str
RTMP path for the broadcast.

key str
Stream key.

cam_id int
Camera ID.

stream_profile int
Stream profile.

live_on bool
Whether to enable live broadcast.

Returns​

dict of str to object or str
API response from the request.


close_youtube_live_broadcast​

Close the current YouTube Live broadcast.

Internal API​

SYNO.SurveillanceStation.YoutubeLive

Returns​

dict of str to object or str
API response from the request.


get_deep_video_analytic​

Get the list of deep video analytic tasks.

Internal API​

SYNO.SurveillanceStation.IVA

Returns​

dict of str to object or str
API response from the request.


create_edit_DVA_task​

Create or edit a Deep Video Analytics (DVA) task.

Internal API​

SYNO.SurveillanceStation.IVA

Parameters​

analyze_type int
Type of analysis to perform.

actFromHost bool
Whether the action is triggered from the host.

name str
Name of the DVA task.

camera_id int
ID of the camera associated with the task.

enable bool
Whether to enable the task.

enable_recording bool
Whether to enable recording for the task.

pre_rec_time int
Pre-recording time in seconds.

post_rec_time int
Post-recording time in seconds.

event_integration int
Event integration setting.

region_type int
Type of detection region.

det_region_cnt int
Number of detection regions.

det_region int
Detection region configuration.

people_mode int
People counting mode.

reset_cnt_frequency int
Frequency for resetting the counter.

reset_weekday int
Weekday for counter reset.

reset_date int
Date for counter reset.

reset_time_minute int
Minute for counter reset.

reset_time_hour int
Hour for counter reset.

fence_dir_flag int
Fence direction flag.

people_display_pos int
Display position for people counting.

stream_profile int
Stream profile to use.

people_enable_stay_max bool
Whether to enable maximum stay for people.

intrusion_detect_target int
Target for intrusion detection.

min_obj_size Any
Minimum object size for detection.

min_obj_size_option int
Option for minimum object size.

enable_min_duration int
Enable minimum duration for detection.

people_display_info int
Display information for people counting.

people_enter int
Number of people entering.

people_stay_max int
Maximum number of people staying.

people_region str
Region for people counting.

people_hint_pos str
Hint position for people counting.

blEditMode bool
Edit mode flag (not working).

Returns​

dict of str to object or str
API response from the request.


delete_dva_task​

Delete a Deep Video Analytics (DVA) task.

Internal API​

SYNO.SurveillanceStation.IVA

Parameters​

ids str
Comma-separated list of DVA task IDs to delete.

Returns​

dict of str to object or str
API response from the request.


enable_dva_task​

Enable one or more Deep Video Analytics (DVA) tasks.

Internal API​

SYNO.SurveillanceStation.IVA

Parameters​

ids str
Comma-separated list of DVA task IDs to enable.

Returns​

dict of str to object or str
API response from the request.


disable_dva_task​

Disable one or more Deep Video Analytics (DVA) tasks.

Internal API​

SYNO.SurveillanceStation.IVA

Parameters​

ids str
Comma-separated list of DVA task IDs to disable.

Returns​

dict of str to object or str
API response from the request.


reset_counter_people_counting_task​

Reset the people counting counter for a specific DVA task.

Internal API​

SYNO.SurveillanceStation.IVA

Parameters​

taskId str
ID of the people counting task to reset.

Returns​

dict of str to object or str
API response from the request.


get_people_enter_leave_count​

Get the count of people entering and leaving for specified DVA tasks.

Internal API​

SYNO.SurveillanceStation.IVA.Report

Parameters​

ids str
Comma-separated list of DVA task IDs.

timeStart str
Start time for the count (ISO format or timestamp).

timeEnd str
End time for the count (ISO format or timestamp).

timezone int
Timezone offset.

Returns​

dict of str to object or str
API response from the request.


get_people_count_of_day​

Get the people count report for a specific day.

Internal API​

SYNO.SurveillanceStation.IVA.Report

Parameters​

ids str
Comma-separated list of DVA task IDs.

interval int
Interval for the report.

intervalUnit int
Unit for the interval.

timezone int
Timezone offset.

timestamp int
Timestamp for the report.

blOccupancy int
Occupancy flag (not working).

Returns​

dict of str to object or str
API response from the request.


list_people_counting_task​

List people counting tasks.

Internal API​

SYNO.SurveillanceStation.IVA.Recording

Parameters​

taskList str
Comma-separated list of task IDs to list.

limit int
Limit the number of tasks returned (not working).

Returns​

dict of str to object or str
API response from the request.


delete_recording_file_of_detection​

Delete recording files associated with detection events.

Internal API​

SYNO.SurveillanceStation.IVA.Recording

Parameters​

slaveDsParam str
Parameters for the slave device.

deleteMethod int
Method for deletion (not working).

Returns​

dict of str to object or str
API response from the request.


get_info_of_task_and_frame​

Get analytic result information for a specific task and frame.

Internal API​

SYNO.SurveillanceStation.IVA.Recording

Parameters​

eventId int
Event ID to query.

taskId int
Task ID to query.

blAlertEvt bool
Alert event flag (not working).

Returns​

dict of str to object or str
API response from the request.


lock_recording_file_of_detection​

Lock recording files associated with detection events.

Internal API​

SYNO.SurveillanceStation.IVA.Recording

Parameters​

dsId int
Device server ID.

idList int
List of recording file IDs to lock (not working).

Returns​

dict of str to object or str
API response from the request.


unlock_recording_file_of_detection​

Unlock recording files associated with detection events.

Internal API​

SYNO.SurveillanceStation.IVA.Recording

Parameters​

dsId int
Device server ID.

idList str
List of recording file IDs to unlock (not working).

Returns​

dict of str to object or str
API response from the request.


get_info_people_counting_task​

Get information about people counting tasks.

Internal API​

SYNO.SurveillanceStation.IVA.TaskGroup

Returns​

dict of str to object or str
API response from the request.


create_people_counting_task​

Create a new people counting task.

Internal API​

SYNO.SurveillanceStation.IVA.TaskGroup

Parameters​

enable bool
Whether to enable the task.

task_ids str
Comma-separated list of task IDs.

owner_ds_id int
Owner device server ID.

name str
Name of the task.

people_display_info str
Display information for people counting.

people_enable_stay_max int
Enable maximum stay for people.

reset_cnt_frequency int
Frequency for resetting the counter.

resert_date int
Date for counter reset.

resert_weekday int
Weekday for counter reset.

resert_tome_hour int
Hour for counter reset.

resert_tome_minute int
Minute for counter reset (not working).

Returns​

dict of str to object or str
API response from the request.


modify_setting_of_people_counting_task​

Modify the settings of an existing people counting task.

Internal API​

SYNO.SurveillanceStation.IVA.TaskGroup

Parameters​

enable bool
Whether to enable the task.

id int
ID of the task to modify.

task_ids str
Comma-separated list of task IDs.

name str
Name of the task.

people_display_info int
Display information for people counting.

people_enable_max int
Enable maximum stay for people.

reset_cnt_frequency int
Frequency for resetting the counter.

resert_date int
Date for counter reset.

resert_weekday int
Weekday for counter reset.

resert_tome_hour int
Hour for counter reset.

resert_tome_minute int
Minute for counter reset (not working).

Returns​

dict of str to object or str
API response from the request.


delete_task_group​

Delete a people counting task group.

Internal API​

SYNO.SurveillanceStation.IVA.TaskGroup

Parameters​

ids str
Comma-separated list of task group IDs to delete.

Returns​

dict of str to object or str
API response from the request.


start_count_people_task_in_groups​

Enable people counting tasks in specified groups.

Internal API​

SYNO.SurveillanceStation.IVA.TaskGroup

Parameters​

ids str
Comma-separated list of task group IDs to enable.

Returns​

dict of str to object or str
API response from the request.


stop_count_people_task_in_groups​

Disable people counting tasks in specified groups.

Internal API​

SYNO.SurveillanceStation.IVA.TaskGroup

Parameters​

ids str
Comma-separated list of task group IDs to disable.

Returns​

dict of str to object or str
API response from the request.


get_number_counting_task_group​

Get the people count for a specific task group.

Internal API​

SYNO.SurveillanceStation.IVA.TaskGroup

Parameters​

id int
ID of the task group.

Returns​

dict of str to object or str
API response from the request.


lock_recording_file_result​

Reset the people count for a specific IVA task group.

Internal API​

SYNO.SurveillanceStation.IVA.TaskGroup

Parameters​

id int
ID of the IVA task group.

Returns​

dict of str to object or str
API response from the request.


get_face_list_task​

Retrieve the list of face detection tasks.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

ids str
Comma-separated list of task IDs to filter.

ownerDsId int
ID of the owner DiskStation.

blOnlyEnableDs bool
Whether to include only enabled DiskStations.

Returns​

dict of str to object or str
API response from the request.


create_or_edit_task​

Create or edit a face detection task.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

id int
Task ID.

id_on_rec_server int
Task ID on the recording server.

camera_id int
Camera ID.

camera_id_on_rec int
Camera ID on the recording server.

owner_ds_id int
Owner DiskStation ID.

enable bool
Whether to enable the task.

blEditMode bool
Edit mode flag.

stream_profile int
Stream profile index.

name str
Name of the task.

similarity float
Similarity threshold for face recognition.

allowed_color int
Color code for allowed faces.

allowed_list Any
List of allowed faces.

blocked_color int
Color code for blocked faces.

blocked_list Any
List of blocked faces.

vip_color int
Color code for VIP faces.

vip_list Any
List of VIP faces.

recognized_color int
Color code for recognized faces.

unrecognized_color int
Color code for unrecognized faces.

deleted bool
Whether the task is deleted.

det_region str
Detection region.

det_region_cnt int
Number of detection regions.

region_type int
Type of region.

display_info int
Display information.

display_type int
Display type.

frame_display_info int
Frame display information.

enable_min_ogj_size bool
Enable minimum object size.

min_ogj_size float
Minimum object size.

post_rec_time int
Post-recording time in seconds.

pre_rec_time int
Pre-recording time in seconds.

schedule str
Task schedule.

scheduleOn bool
Whether the schedule is enabled.

ignore_bad_quality bool
Ignore bad quality flag (not working).

Returns​

dict of str to object or str
API response from the request.


delete_face_task​

Delete one or more face detection tasks.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

ids str
Comma-separated list of task IDs to delete.

keepRecording bool
Whether to keep the associated recordings (not working).

Returns​

dict of str to object or str
API response from the request.


enable_task_to_start_detection_recording​

Enable face detection tasks to start detection and recording.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

ids str
Comma-separated list of task IDs to enable.

Returns​

dict of str to object or str
API response from the request.


disable_task_to_stop_detection_recording​

Disable face detection tasks to stop detection and recording.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

ids str
Comma-separated list of task IDs to disable.

Returns​

dict of str to object or str
API response from the request.


list_task_with_privilege_to_watch​

List face detection tasks with privilege to watch.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

ids int
Task group ID to filter.

Returns​

dict of str to object or str
API response from the request.


create_face_group​

Create a new face group.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

name str
Name of the face group.

description str
Description of the face group.

update_registered_face Any
Registered face update information (not working).

Returns​

dict of str to object or str
API response from the request.


disable_face_grooup​

Delete (disable) one or more face groups.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

ids Any
IDs of the face groups to delete (not working).

Returns​

dict of str to object or str
API response from the request.


edit_face_group​

Edit an existing face group.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

name str
Name of the face group.

description str
Description of the face group.

update_registered_face Any
Registered face update information.

id int
ID of the face group to edit.

Returns​

dict of str to object or str
API response from the request.


get_face_group_list​

Retrieve the list of face groups.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

id_only bool
Whether to return only IDs.

filter Any
Filter criteria (not working).

Returns​

dict of str to object or str
API response from the request.


count_face_groups​

Count the number of face groups.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

filter Any
Filter criteria (not working).

Returns​

dict of str to object or str
API response from the request.


detect_faces_image​

Detect faces in an image.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

image_data str
Base64-encoded image data.

image_size int
Size of the image (not working).

Returns​

dict of str to object or str
API response from the request.


create_registered_face​

Create a new registered face.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

account str
Account associated with the face.

name str
Name of the person.

description str
Description of the face.

image_data str
Base64-encoded image data.

image_size int
Size of the image.

face Any
Face data.

update_face_group Any
Face group update information.

captured_face_id int
ID of the captured face.

update_unrecognized_captured_face bool
Whether to update unrecognized captured face.

append_image_data bool
Append image data flag (not working).

Returns​

dict of str to object or str
API response from the request.


delete_registered_face​

Delete one or more registered faces.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

ids Any
IDs of the registered faces to delete (not working).

Returns​

dict of str to object or str
API response from the request.


edit_registered_face​

Edit an existing registered face.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

id int
ID of the registered face.

account str
Account associated with the face.

name str
Name of the person.

description str
Description of the face.

image_data str
Base64-encoded image data.

image_size int
Size of the image.

face Any
Face data.

update_face_group Any
Face group update information.

captured_face_id int
ID of the captured face.

update_unrecognized_captured_face bool
Whether to update unrecognized captured face.

append_image_data bool
Append image data flag.

Returns​

dict of str to object or str
API response from the request.


list_registered_face​

List registered faces.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

id_only bool
Whether to return only IDs.

filter Any
Filter criteria.

append_image_data bool
Whether to append image data (not working).

Returns​

dict of str to object or str
API response from the request.


count_registered_face​

Count the number of registered faces.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

filter Any
Filter criteria (not working).

Returns​

dict of str to object or str
API response from the request.


search_registered_face​

Search for registered faces by keywords.

Internal API​

SYNO.SurveillanceStation.Face

Parameters​

keywords str
Search keywords.

append_image_data bool
Whether to append image data (not working).

Returns​

dict of str to object or str
API response from the request.


get_face_result_list​

Retrieve a list of face recognition results.

Internal API​

SYNO.SurveillanceStation.Face.Result

Parameters​

filter Any
Filter criteria for the face results.

blIncludeSnapshot bool
Whether to include snapshot images in the results.

blIncludeRegisteredFace bool
Whether to include registered face information.

limit int
Maximum number of results to return.

slaveDsParam int
Additional parameter for slave DiskStation (not working).

Returns​

dict of str to object or str
API response containing the list of face recognition results.


delete_face_result​

Delete face recognition results.

Internal API​

SYNO.SurveillanceStation.Face.Result

Parameters​

filter Any
Filter criteria for selecting face results to delete.

slaveDsParam Any
Additional parameter for slave DiskStation (not working).

Returns​

dict of str to object or str
API response indicating the result of the delete operation.


lock_face_result​

Lock face recognition results to prevent modification or deletion.

Internal API​

SYNO.SurveillanceStation.Face.Result

Parameters​

filter Any
Filter criteria for selecting face results to lock.

slaveDsParam Any
Additional parameter for slave DiskStation (not working).

Returns​

dict of str to object or str
API response indicating the result of the lock operation.


unlock_face_result​

Unlock face recognition results to allow modification or deletion.

Internal API​

SYNO.SurveillanceStation.Face.Result

Parameters​

filter Any
Filter criteria for selecting face results to unlock.

slaveDsParam Any
Additional parameter for slave DiskStation (not working).

Returns​

dict of str to object or str
API response indicating the result of the unlock operation.


get_recording_file_of_face_info​

Retrieve the recording file associated with a specific captured face.

Internal API​

SYNO.SurveillanceStation.Face.Result

Parameters​

capturedFaceId int
ID of the captured face (not working).

Returns​

dict of str to object or str
API response containing the recording file information.


get_recognition_face_information​

Retrieve analytic results for face recognition events.

Internal API​

SYNO.SurveillanceStation.Face.Result

Parameters​

taskId int
ID of the face recognition task.

eventId int
ID of the event.

startTime int
Start time for the query (timestamp).

endTime int
End time for the query (timestamp).

blIncludeRegisteredFace int
Whether to include registered face information (not working).

Returns​

dict of str to object or str
API response containing analytic results.


correct_face_result​

Correct the result of a face recognition event by associating it with a registered face.

Internal API​

SYNO.SurveillanceStation.Face.Result

Parameters​

id int
ID of the face recognition result to correct.

registered_face_id int
ID of the registered face to associate (not working).

Returns​

dict of str to object or str
API response indicating the result of the correction.


mark_face_result_as_stranger​

Mark one or more face recognition results as strangers.

Internal API​

SYNO.SurveillanceStation.Face.Result

Parameters​

ids str
Comma-separated list of face result IDs to mark as strangers (not working).

Returns​

dict of str to object or str
API response indicating the result of the operation.


add_new_bookmark​

Add a new bookmark to a recording.

Internal API​

SYNO.SurveillanceStation.Recording.Bookmark

Parameters​

id int
ID of the bookmark.

eventId int
ID of the associated event.

cameraId int
ID of the camera.

archId int
ID of the archive.

name str
Name of the bookmark.

timestamp Any
Timestamp for the bookmark.

comment str
Comment for the bookmark.

Returns​

dict of str to object or str
API response indicating the result of the add operation.


delete_bookmark​

Delete one or more bookmarks from recordings.

Internal API​

SYNO.SurveillanceStation.Recording.Bookmark

Parameters​

bookmarkIds Any
IDs of the bookmarks to delete (not working).

Returns​

dict of str to object or str
API response indicating the result of the delete operation.


list_bookmark_detail​

List details of bookmarks for recordings.

Internal API​

SYNO.SurveillanceStation.Recording.Bookmark

Parameters​

offset int
Offset for pagination.

limit int
Maximum number of bookmarks to return.

cameraIds str
Comma-separated list of camera IDs to filter.

fromTime int
Start time for filtering bookmarks (timestamp).

toTime int
End time for filtering bookmarks (not working).

Returns​

dict of str to object or str
API response containing bookmark details.