Skip to main content

Get Device Configuration

Retrieves the configuration of the device, including the list of routes. The Device ID used in the command is retrieved via the Get Device Info command.

Authorizations: Administrator, Operator, Observer

Requests

GET /api/devices/[Device ID]
cookie: sessionID: [Session ID]

Parameters

N/A

Response

Note

Use the config > routes > id properties on subsequent API calls to start/stop the corresponding routes, as shown in Start or Stop Routes and Destinations.

{
  "_id": "[Device ID]",
  "type": "gateway",
  "ip": "127.0.0.1",
  "name": "Haivision Media Gateway",
  "lastConnectedAt": [Date/time in Unix time],
  "lastConfigReadAt": [Date/time in Unix time],
  "statusCode": "ok",
  "status": "Online",
  "statusDetails": "Connection has been established in the last 1 minutes.",
  "serialNumber": null,
  "firmware": "5.0.180611.1530",
  "hasAdminError": false,
  "config": {
    "routes": [ { <Route Object> } ],
    "settings": {
      "networkAdapters": [
        {
          "name": "eth0",
          "address": "10.67.12.128"
        },
        {
          "name": "idrac",
          "address": "169.254.0.2"
        }
      ]
    },
    "calypsos": [
      {
        "id": "Lh5ZNDm7LspsseJ3pg82jw",
        "gatewayName": "MG 141",
        "address": "dev.haivision.com",
        "httpPort": 80,
        "httpsPort": 443,
        "passcode": "[Pairing passcode]",
        "lastConnectedAt": 1536759437398,
        "status": "accepted",
        "statusDetails": "pairing accepted",
        "proxyAddress": "10.69.12.141",
        "proxyHttpPort": 80,
        "proxyHttpsPort": 443,
        "lastConnection": "<1m"
      }
    ]
  },
  "pendingSync": false,
"lastAcceptedUpdate": 1530219677119,
"lastConnection": "<1m",
"gateway": {
"port": 1080
},
"suggestedPollingInterval": {
"ms": 10000
}
}
NameTypeDescription
_idstring

Device ID.

typestringDevice type.
ipstring

IP address of the device.

Note

The IP address is from the front end to the backend, so 127.0.0.1 is expected.

namestringName of device.
lastConnectedAtnumberLast time connected to the device in Unix time.
lastConfigReadAtnumberLast time a read config occurred in Unix time.
statusCodestringDevice status code.
statusstringDevice status: Online, Device error, Offline, Never, or Communication error.
statusDetailsstringDevice status details: warn, error, ok, or unknown.
serialNumberstringDevice serial number.
firmwarestringDevice firmware version.
hasAdminErrorBooleanIndicates if device has an error.
configobjectDevice configuration object, including route objects (see Route Object Model for definition), networkAdapters objects (see following), and calypsos object (see following).
pendingSyncBooleanIndicates if there is a device pending a sync task.
lastAcceptedUpdatenumberLast time a device update was accepted.
lastConnectionstringLast time connected to the device in string format (e.g., "<1m").
gatewayobjectGateway device settings: port number.
suggestedPollingIntervalobject

Suggested polling device interval setting. Value in milliseconds.

NetworkAdapters Object Model

NameTypeDestination
namestringAdapter name.
addressstring

IP address of network adapter.

Calypsos Object Model

NameTypeDestination
addressstring

IP address of paired HMP.

gatewayNamestring

Gateway name in the relationship

httpPortnumber

HTTP port of paired HMP.

httpsPortnumber

HTTPS port of paired HMP.

idstring

HMP relationship ID.

lastConnectedAtnumber

Last connected time.

lastConnectionstring

Last connection string.

passcodestring

Pairing passcode.

proxyAddressstring

Proxy address.

proxyHttpPortnumber

Proxy HTTP port.

proxyHttpsPortnumber

Proxy HTTPS port.

statusstring

Relationship status: accepted, pair pending, pairing error, pairing timeout, pairing denied, poll timeout, or poll error.

statusDetailsstring

Relationship status detail.

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.