Get details on current version of Mediaserver: Server.GetInfo

Returns MSE build info and current bitrate

Parameters

params: object


Result

result: object


result.hostname: string

MSE hostname


result.version: string

MSE build version


result.revision: string

MSE build revision


result.build: string

MSE build type


result.commit: string

MSE build commit


result.timestamp: string

MSE build timestamp


result.flags: string

MSE build flags


result.brandname: string

MSE brand name


result.uptime: integer

MSE uptime


result.bitrate: string

MSE current bitrate in legacy format for backward compatibility


result.bitrate2: BitrateObject aka object

MSE current inet and storage bitrate

result.bitrate2...

result.bitrate2.inet: object

No description


result.bitrate2.inet.in: integer

No description


result.bitrate2.inet.out: integer

No description


result.bitrate2.storage: object

No description


result.bitrate2.storage.write: object

No description


result.bitrate2.storage.write.current: integer

No description


result.bitrate2.storage.write.required: integer

No description



POST /api/

JSON
{
  "jsonrpc": "2.0",
  "method": "Server.GetInfo",
  "params": {},
  "id": 123
}
cURL
Bash
curl -k --request POST \
    --url 'https://your-domain/api/' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <api-authorization-token>' \
    --data '{
  "jsonrpc": "2.0",
  "method": "Server.GetInfo",
  "params": {},
  "id": 123
}'

200 OK

JSON
{
  "jsonrpc": "2.0",
  "result": {
    "hostname": "MSE hostname",
    "version": "MSE build version",
    "revision": "MSE build revision",
    "build": "MSE build type",
    "commit": "MSE build commit",
    "timestamp": "MSE build timestamp",
    "flags": "MSE build flags",
    "brandname": "MSE build brandname",
    "uptime": 0,
    "bitrate": "MSE current bitrate in legacy format for backward compatibility",
    "bitrate2": {
      "inet": {
        "out": 0,
        "in": 0
      },
      "storage": {
        "write": {
          "current": 0,
          "required": 0
        }
      }
    }
  },
  "id": 123
}

400 Bad Request

JSON
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32601,
    "message": "Method not found"
  },
  "id": 123
}

500 Internal Server Error

Server error