/api/operator/get

获取操作日志。

接口原型

协议 HTTP/HTTPS GET
URL ip[:port]/api/operator/get
数据格式 响应消息:Content-Type: application/json

请求Cookies

名称 描述
mwcloud-sid 用于标识当前登录的字符串
mwcloud-uid 当前登录用户名

请求URL参数

参数 描述
start 开始序号
count 返回的最大数量

请求示例

GET /api/operator/get?start=0&count=5 HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;

响应参数

Response Header
参数 描述
Content-Type 取值为:'application/json; charset=UTF-8'
Response Body
参数 描述
result 返回码
total 操作日志的总数
list 操作日志数组
操作日志
参数 描述
addr 操作者的IP地址
args 该操作的参数集
date 执行操作的时间
desc-id 操作ID
result 操作结果
usr 执行操作的用户名称

操作ID和参数集的对应关系如下:

  {
    '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'
  }

响应示例

{
    "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
}

与“”相关结果约

    找不到与“”相关的结果

    与“”相关结果约

      找不到与“”相关的结果