Premium APIsDevice DiagnosticsAPI EndpointsDiagnostics Settings

API Reference

Get Diagnostics Settings

GET /devices/settings?accountName={account}&devices=[{"id":"{imei1}","kind":"imei"},{"id":"{imei2}","kind":"imei"]

You can retrieve the current diagnostic observation settings for a list of devices.

Uses and Requirements

With this API, you can synchronously retrieve all the diagnostic observation settings and attributes for the requested devices. For each device, the response includes the device id and kind of device, the attributes being observed and the frequency with which each attribute is being observed.

Request Components

HTTP Request

GET https://thingspace.verizon.com/api/diagnostics/v1/devices/settings?accountName={account}&devices=[{"id":"{imei1}","kind":"imei"},{"id":"{imei2}","kind":"imei"]

Resource Path and Query Parameters

Parameter NameData TypeDescription
accountName requiredstringThe name of the billing account for which you want to retrieve diagnostic settings. An account name is usually numeric, and must include any leading zeros.
devices requiredstringThe devices for which you want to retrieve diagnostic settings. Devices list format: [{“id”:“{imei1}”,“kind”:“imei”},{“id”:“{imei2}”,“kind”:“imei”}]

Header Parameters

The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token, and must set the content-type to JSON.

Parameter NameData TypeDescription
Authorization requiredstringHTTP Authorization bearer token.
VZ-M2M-Token requiredstringA valid session token returned by POST /session/login.
Content-Type requiredstringMust be application/json.

Request Body

None

Success Responses

Status 200

Parameter NameData TypeDescription
accountNamestringThe name of the account for which you want retrieve diagnostic settings. An account name is usually numeric, and must include any leading zeros.
devicedevice data objectThe devices for which you want to retrieve diagnostic settings.
device.idstringA device identifier value
device.kindstringType of identifier IMEI ESN MEID
attributesarray of objectsStreaming RF parameters for which you want to retrieve diagnostic settings.
attributes.namestringMANUFACTURER DEVICE_TYPE MODEL_NUMBER SERIAL_NUMBER HARDWARE_VERSION FIRMWARE_VERSION SOFTWARE_VERSION AVAILABLE_POWER_SOURCES BATTERY_LEVEL BATTERY_STATUS HOMEOR_ROAM NETWORK_BEARER, AVAILABLE_NETWORK_BEARER RADIO_SIGNAL_STRENGTH LINK_QUALITY CELL_ID SMNC SMCC APN PSM_TIMER ACTIVE_TIMER EDRX_WB_S1 EDRX_NB_S1 HOST_DEVICE_MANUFACTURER HOST_DEVICE_MODEL HOST_DEVICE_ID HOST_DEVICE_FIRMWARE_VERSION HOST_DEVICE_SOFTWARE_VERSION HOST_DEVICE_HARDWARE_VERSION HOST_DEVICE_DATE_STAMP
attributes.valuestring
attributes.createdOnstring($date-time)Date and time request was created.
attributes.isObservablebooleanIs the attribute observable?
attributes.isObservingbooleanIs the attribute being observed?
attributes.frequencyattributes frequency data objectThe frequency with which the attribute is being observed
attributes.frequency.valueinteger($int32)
attributes.frequency.unitstringSECOND MINUTE HOUR DAY

Example Success Response

[
  {
    "accountName": "string",
    "device": {
      "id": "864508030026238",
      "kind": "IMEI"
    },
    "attributes": [
      {
        "name": "MANUFACTURER",
        "value": "string",
        "createdOn": "2019-09-07T23:08:03.532Z",
        "isObservable": true,
        "isObserving": true,
        "frequency": {
          "value": 5,
          "unit": "SECOND"
        }
      }
    ]
  }
]

Failure Responses

Status 400 All error messages are returned in this format:

{
  "errorCode": "error code string",
  "errorMessage": "error message string"
}

On this page