Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
GET channels/command/unMonitor/{id}
Resource Information
Requires Authentication?
Response Formats
json
HTTP Methods
GET
Stop monitoring a channel, specified by the required {id} parameter.
Resource URL
http://{host}/api/2.0/channels/command/unMonitor/{id}/.format
Parameters
Parameter
Data Type
Description
id
(required)
integer
The ID of the desired channel.
Example Request
GET
Code Block |
---|
{"Task": {
"id": 595649,
"device_id": 830,
"type": "Toggle Monitoring State",
"type_id": 15,
"mode": "Starting",
"mode_id": 1,
"status": null,
"description": null,
"total": 0,
"completed": 0,
"time_remained": 0,
"modified": "1384692937639"
}} |
GET channels/command/monitor/{id}/{dev_id}
Resource Information
Requires Authentication?
Response Formats
json
HTTP Methods
GET
Start monitoring a channel on a specific device, specified by the required {id} and {dev_id} parameters.
Resource URL
http://{host}GET channels/command/unMonitor/{id}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Stop monitoring a channel, specified by the required {id} parameter.
Resource URL
http://{host}/api/2.0/channels/command/unMonitor/{id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | The ID of the desired channel. |
Example Request
GET
monitor{id}/{dev_id}/.formatParameters
Parameter
Data Type
Description
id
(required)
integer
The ID of the desired channel.
dev_id
(required)
integer
The ID of the target device to monitor the channel.
Example Request
GET
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
GET channels/command/
enableRecordmonitor/{id}/{dev_id}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Set a specific channel to be recordable. The recording could be handled manually or by trigger eventStart monitoring a channel on a specific device, specified by the required {id} and {dev_id} parameters.
Resource URL
http://{host}/api/2.0/channels/command/monitor/enableRecord{id}/{dev_id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | The ID of the desired channel. |
dev_id | integer | The ID of the target device to monitor the channel. |
Example Request
GET
1921680101enableRecordExpand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
GET channels/command/
disableRecordenableRecord/{id}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Stops Set a specific channel from being to be recordable. The recording could be handled manually or by trigger event.
Resource URL
http://{host}/api/2.0/channels/command/disableRecordenableRecord/{id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | The ID of the desired channel. |
Example Request
GET
1921680101disableRecordExpand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
GET channels/command/
forceProfile/{id}disableRecord/{
profile_id}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Force Stops a monitored channel to use a specific profile, overriding any default and scheduled profile changes. Also used to release a channel from a forced profile.specific channel from being recordable.
Resource URL
http://{host}/api/2.0/channels/command/forceProfile/{id}disableRecord/{profile_id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | The ID of the desired |
profile_id
(required)
other
channel. |
Example Request
GET
1921680101forceProfile/1Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
GET channels/command/
startRecordforceProfile/{
ch_id}/{
agentprofile_id}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Start recording the channel. The recording will continue until "stopRecord" action is sent or record timeout limit reachedForce a monitored channel to use a specific profile, overriding any default and scheduled profile changes. Also used to release a channel from a forced profile.
Resource URL
http://{host}/api/2.0/channels/command/startRecordforceProfile/{ch_id}/{agentprofile_id}/.format
Parameters
Parameter | Data Type | Description |
---|
id | integer | The ID of the desired channel. |
profile_id |
integer
other | Values may be either an Integer profile ID to force that profile or "false" to release the channel. |
Example Request
GET
1921680101startRecord82Code Block | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Expand | |||||||||||
| |||||||||||
|
GET channels/command/
stopRecordstartRecord/{ch_id}/{agent_id}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Stops Start recording the recording task on this channelchannel. The recording will continue until "stopRecord" action is sent or record timeout limit reached.
Resource URL
http://{host}/api/2.0/channels/command/stopRecordstartRecord/{ch_id}/{agent_id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
ch_id | integer | The ID of the |
desired channel. | ||
agent_id | integer | The ID of the file agent to be used for this record action. |
Example Request
GET
101stopRecord82Expand | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
|
GET channels/command/
setSnoozestopRecord/{ch_id}
/{remark}Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Set Snooze on channel, disabling error notifications till snooze is clearedStops the recording task on this channel.
Resource URL
http://{host}/api/2.0/channels/command/setSnoozestopRecord/{id}/{remarkch_task_id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
ch_task_id | integer | The task ID of the |
remark
(optional)
string
currently recording channel. |
Example Request
GET
101setSnooze1/this is a snooze remark/Expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
|
GET channels/command/setSnooze/{id}/{remark}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Set Snooze on channel, disabling error notifications till snooze is cleared.
Resource URL
http://{host}/api/2.0/channels/command/setSnooze/{id}/{remark}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | The ID of the desired channel. |
remark | string | The string to use as a remark. |
Example Request
GET
Expand | |||||
---|---|---|---|---|---|
| |||||
|
GET channels/command/clearSnooze/{id}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Clears the Snooze state from a channel.
Resource URL
http://{host}/api/2.0/channels/command/clearSnooze/{id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
is | integer | The ID of the desired channel. |
Example Request
GET
Expand | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|
GET channels/command/clearSnooze/{id}
Resource Information
Requires Authentication?
Response Formats
json
HTTP Methods
GET
Clears the Snooze state from a channel.
Resource URL
http://{host}/api/2.0/channels/command/clearSnooze/{id}/.format
Parameters
Parameter
Data Type
Description
is
(required)
integer
The ID of the desired channel.
Example Request
GET
Code Block | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{"ChannelStatistics": {
"id": 1,
"is_snoozed": 0,
"snooze_remark": null,
"title": "Ch 1",
"uuid": null,
"ip_address": "225.0.5.1",
"ssm_ip_address": null,
"port": 2000,
"network_id": 3,
"iface": "eth1",
"program_number": 1,
"ts_id": 2,
"total_bit_rate": 1860718,
"null_padding_count": 617619,
"mux_bitrate_by_pcr": 13270594,
"mux_bitrate_by_time": 13075190,
"cc_errors": 0,
"source_address": "192.168.0.98:17035",
"service_type_id": 1,
"device_id": 621,
"is_record_enabled": 1,
"highest_active_event_severity_id": 1,
"clock": "Jitter 28.24ms, Interval 35ms",
"ChannelProfile": [ {
"id": 1
|
GET channels/command/acknowledge/{{channel_id}}/{{event_id}}/.json
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Acknowledges the channel events occured.
Resource URL
http://{host}/api/2.0/channels/command/acknowledge/{{channel_id}}/{{event_id}}/.format
** To get the channel ID and Event ID, use GET API command http://{host}/api/2.0/channels/events/.json
Parameters
Parameter | Data Type | Description |
---|---|---|
is | integer | The ID of the desired channel. |
Example Request
GET
Expand | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|