/api/operator/get
Use this interface to obtain operation logs.
Prototype
Protocol |
HTTP/HTTPS GET |
URL |
ip[:port]/api/operator/get |
Content-Type |
Response: Content-Type: application/json |
Request Cookies
Parameter |
Description |
mwcloud-sid |
A string that is used to identify current logged-in user. |
mwcloud-uid |
Current logged-in username. |
Request URL parameters
Parameter |
Description |
start |
Start number. |
count |
Maximum number of returns. |
Request Example
GET /api/operator/get?start=0&count=5 HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
Response Parameters
Parameter |
Description |
Content-Type |
Value: 'application/json; charset=UTF-8' |
Response Body
Operation Logs
Parameter |
Description |
addr |
The IP address of the operator |
args |
set of arguments for the operation |
date |
time of execution |
desc-id |
operation-id |
result |
operation result |
Usr |
the name of the user who performed the operation. |
The correspondence between the operation ID and the parameter set is as follows.
{
'catalog add': 'add catalog {name}',
'catalog del': 'delete catalog(s) {name}',
'catalog del multiple ex': 'delete catalog(s) {name}, total {num}, with {left} hidden',
'catalog move in': 'move device(s) {device} to catalog {name}',
'catalog move in multiple ex': 'move device(s) {device} to catalog {name}, total {num}, with {left} hidden',
'catalog move out': 'move device(s) {device} out of catalog',
'catalog move out multiple ex': 'move device(s) {device} out of catalog, total {num}, with {left} hidden',
'catalog rename': 'rename catalog to {name}',
'catalog set security': 'change catalog {name} security settings',
'channel create': 'create channel {name}',
'channel destroy': 'delete channel(s) {name}',
'channel destroy multiple ex': 'delete channel(s) {name}, total {num}, with {left} hidden',
'channel disable': 'disable channel {name}',
'channel enable': 'enable channel {name}',
'channel input del': 'delete channel {name} input {input}',
'channel input set': 'set channel {name} input to {input}',
'channel output add': 'add output {output} to channel {name}',
'channel output del': 'delete output {output} from channel {name}',
'channel outputs add': 'add output(s) {output} to channel {name}',
'channel outputs add multiple ex': 'add output(s) {output} to channel {name}, total {num}, with {left} hidden',
'channel outputs del': 'delete output(s) {output} from channel {name}',
'channel outputs del multiple ex': 'delete output(s) {output} from channel {name}, total {num}, with {left} hidden',
'channel set': 'change channel {name} settings',
'device accept': 'approval device(s) {name}',
'device accept multiple ex': 'approval device(s) {name}, total {num}, with {left} hidden',
'device config input': 'configure device {name} input parameter',
'device config output': 'configure device {name} output parameter',
'device delete': 'delete device(s) {name}',
'device delete multiple ex': 'delete device(s) {name}, total {num}, with {left} hidden',
'device fav add': 'add device(s) {name} to favorite',
'device fav add multiple ex': 'add device(s) {name} to favorite, total {num}, with {left} hidden',
'device fav del': 'delete device(s) {name} from favorite',
'device fav del multiple ex': 'delete device(s) {name} from favorite, total {num}, with {left} hidden',
'device global set': 'change device global default security',
'device reject': 'reject device(s) {name}',
'device reject multiple ex': 'reject device(s) {name}, total {num}, with {left} hidden',
'device security set': 'setup device {name} security',
'device upgrade': 'upgrade device(s) {name} to version {version}',
'device upgrade multiple ex': 'upgrade device(s) {name} to version {version}, total {num}, with {left} hidden',
'firmware add': 'add {name} firmware version {version}',
'firmware del': 'delete firmware(s) {name}',
'firmware del multiple ex': 'delete firmware(s) {name}, total {num}, with {left} hidden',
'input add': 'add input {name} url {url}',
'input del': 'delete input(s) {name}',
'input del multiple ex': 'delete input(s) {name}, total {num}, with {left} hidden',
'input set': 'set input {name} url {url}',
'login': ' login',
'logout': 'logout',
'output add': 'add output {name} config {config}',
'output del': 'delete output(s) {name}',
'output del multiple ex': 'delete output(s) {name}, total {num}, with {left} hidden',
'output set': 'set output {name} config {config}',
'reboot': 'reboot system',
'system upgrade': 'system upgrade to version {version}',
'factory reset': 'factory reset',
'settings code enable': 'enable security code {code}',
'settings code disable': 'disable security code',
'settings srt set': 'setup srt server port to {port} and disable encryption',
'settings srt set and enable ssl': 'setup srt server port to {port} and enable encryption',
'settings pwd rule set': 'change password rule',
'settings expired set': 'set expired time to {time} minute',
'settings export': 'export settings',
'user add': 'add user {name} to group {group}',
'user del': 'delete user(s) {name}',
'user del multiple ex': 'delete user(s) {name}, total {num}, with {left} hidden',
'user group create 1': 'create group {name} and add user(s) {user}',
'user group create 1 multiple ex': 'create group {name} and add user(s) {user}, total {num}, with {left} hidden',
'user group create 2': 'create group {name}',
'user group del': 'delete group {name}',
'user group set': 'change group {name} settings',
'user set group': 'move user(s) {name} to group {group}',
'user set group multiple ex': 'move user(s) {name} to group {group}, total {num}, with {left} hidden'
}
Response Example
{
"list": [
{
"action": 50331681,
"addr": "10.10.4.120",
"args": {
"name": "ultraencoder srt server"
},
"date": 1698895668780,
"desc-id": "input del",
"index": 57,
"result": 0,
"usr": "admin"
},
{
"action": 50331681,
"addr": "10.10.4.120",
"args": {
"name": "rtmp-pull-10.0.1.32"
},
"date": 1698895666519,
"desc-id": "input del",
"index": 56,
"result": 0,
"usr": "admin"
},
{
"action": 50331681,
"addr": "10.10.4.120",
"args": {
"name": "srt_listener"
},
"date": 1698895637948,
"desc-id": "input del",
"index": 55,
"result": 0,
"usr": "admin"
},
{
"action": 201326653,
"addr": "10.10.4.120",
"args": {
"name": "long-key"
},
"date": 1698895633465,
"desc-id": "channel enable",
"index": 54,
"result": 0,
"usr": "admin"
},
{
"action": 201326653,
"addr": "10.10.4.120",
"args": {
"name": "srt"
},
"date": 1698895631644,
"desc-id": "channel enable",
"index": 53,
"result": 0,
"usr": "admin"
}
],
"result": 0,
"total": 58
}