Get the current configuration: Server.GetConfig

Obtaining the current Mediaserver configuration. The Server.GetConfig method returns the configuration with which the server was launched. There are no parameters for this method.

Parameters

params: object

Result

result: any


POST /api/

JSON
{
  "jsonrpc": "2.0",
  "method": "Server.GetConfig",
  "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.GetConfig",
  "params": {},
  "id": 123
}'

200 OK

JSON
{
  "jsonrpc": "2.0",
  "result": {
    "proxy": {
      "listen": "*:8777:/",
      "poll": 1024,
      "ip": 4,
      "ssl": true,
      "accept": 1,
      "max-request-size": 65536
    },
    "onvif": {
      "listen": "*:8888:/",
      "accept": 1,
      "ssl": false,
      "poll": 1024,
      "ip": 4
    },
    "rtsp": {
      "listen": "*:9555:/",
      "sink": "*:8999:/",
      "accept": 1,
      "workers": 2,
      "poll": 1024,
      "ip": 4
    },
    "io": {
      "workers": 20,
      "poll": 1024
    },
    "cameras": "./cameras.test.json",
    "media": {
      "listen": "*:8444:/",
      "ip": 4,
      "accept": 1,
      "poll": 1024,
      "ssl": false
    },
    "api": {
      "listen": "*:8666:/api/",
      "accept": 1,
      "poll": 1024,
      "ssl": true,
      "ip": 4
    },
    "cview": {
      "listen": "*:8080:/api/",
      "accept": 1,
      "poll": 1024,
      "ssl": true,
      "ip": 4
    },
    "webui": {
      "listen": "*:8080:/api/",
      "accept": 1,
      "poll": 1024,
      "ssl": true,
      "ip": 4
    },
    "ssl": {
      "key": "/opt/ssl/navek.dev/navek.dev.key",
      "cert": "/opt/ssl/navek.dev/navek.dev.crt"
    },
    "#cluster": {
      "webhook": "https://hooks.navek.dev/controller/api/v1/mse/callback",
      "events": [
        "service:up",
        "service:down",
        "service:pulse",
        "service:emergency",
        "stream:create",
        "stream:state",
        "stream:reconnect",
        "stream:delete",
        "stream:dvr",
        "server:capture",
        "server:release",
        "camera:create",
        "camera:delete",
        "camera:event",
        "onvif:create",
        "onvif:delete"
      ]
    },
    "#storage": {
      "driver": "local",
      "volume": {
        "name": "vstorage",
        "option": "disable-root-write;",
        "bucket": {
          "/storage": {
            "capacity": 99999
          }
        }
      }
    },
    "license": "/home/naveksoft/vsaas-media-engine/config/license",
    "secret": "I9REYLxj*YCG44hvEKjXP(b5TCh)xmFxZPN+Dxuwfw2*tkRxnLQH6nuPMv#99@8e",
    "hostname": "ms-test-dev1.navek.dev",
    "coroutine": {
      "once": 1,
      "periodic": 1
    },
    "log": {
      "stdout": {
        "tag": "media-server",
        "verbose": 7,
        "#pattern": "[%Tag] [%AppId] [%Timestamp] [%Verbose] %Message"
      },
      "#remote": {
        "verbose": 4,
        "url": "udp://127.0.0.1:8109",
        "#pattern": "[%AppId] [%Timestamp] [%Verbose] %Message"
      }
    }
  },
  "id": 123
}

400 Bad Request

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

500 Internal Server Error

Server error