Standard APIsConnectivity ManagementAPI EndpointsDevice DiagnosticsRetrieve Active Monitors Using POST

API Reference

Retrieve All Active Reachability Monitoring Events

POST /diagnostics/basic/devicereachability/monitors

An enterprise application can use this API to retrieve All outstanding (Active) Monitoring Reachability (DATA, SMS, LOSS_OF_CONN) events.

Request Components

HTTP Request

POST https://thingspace.verizon.com/api/m2m/v1/diagnostics/basic/devicereachability/monitors

Header Parameters

Parameter NameData TypeDescription
Authorization (required)stringHTTP Authorization bearer token.
VZ-M2M-Token (required)stringA valid session token returned by POST /api/m2m/v1/session/login.
Content-Type (required)stringMust be application/json.

Request Body

Retrieve all monitors for given devices:

{
  "accountName": "0242123520-00001",
  "devices": [
    {
      "deviceIds": [
        {
          "id": "12016560696",
          "kind": "msisdn"
        }
      ]
    }
  ]
}

Retrieve all monitors of a certain type for given devices:

{
  "accountName": "0242123520-00001",
  "requestType": "REACHABLE_FOR_DATA",
  "devices": [
    {
      "deviceIds": [
        {
          "id": "12016560696",
          "kind": "msisdn"
        }
      ]
    }
  ]
}

Request Body Parameters

All parameters are (required) unless marked (optional).

Parameter NameData TypeDescription
accountNameStringThe name of a billing account, which is numeric, in the format of 10 digits, a hyphen and then five more digits. Must include any leading zeros.
requestType (optional)stringValid values include:
REACHABLE_FOR_DATA
REACHABLE_FOR_SMS
LOSS_OF_CONNECTIVITY
devicesarrayAn array containing deviceId entries to stop reachability monitoring.
deviceIdarrayAn array containing device identifier objects (id, kind).
idstringThe value of the type of identifier.
kindstringThe type of device identifier. Valid values include:
IMEI - International Mobile Equipment Identifier, a 15 or 16-digit number
ICCID - Integrated Circuit Card ID, a 20 or 22-digit number
MDN - Mobile Device Number, in the USA this is a 10 digit phone number
MSISDN - Mobile Services International Subscriber Directory Number, in the USA this is 1+ the 10 digit phone number

Success Response

Status 200

A successful Response includes a requestID that can be used to correlate the callbacks.

{
  "requestId": "595f5c44-eeee-ffff-gggg-020a1545a84d"
}

Success Response Parameters

Parameter NameData TypeDescription
requestIDstringA unique string (UUID) that associates the delete request with the results that are sent via a callback message (The Callback Service to suscibe to is DiagnosticsService).

Callback Responses

{
  "username" : "user",
  "password" : "pwd",
  "requestId" : "595f5c44-eeee-ffff-gggg-020a1545a84d",
  "diagnosticsResponse" : {
    "monitorResponse" : {
      "accountName" : "0000123456-00001",
      "monitors" : [ {
        "deviceIds": [
        {
          "id": "12016560696",
          "kind": "msisdn"
        }
      ],
        "monitorType" : "LOSS_OF_CONNECTIVITY",
        "creationTime" : "2019-10-29T19:46:41.467Z",
        "expirationTime" : "2019-10-31T22:00:00.000Z"
      } ],
      "pageNumber" : "1",
      "totalPages" : "1"
    }
  },
  "status" : "Success",
  "callbackCount" : 1,
  "maxCallbackThreshold" : 4
}

Callback Parameters

Parameter NameData TypeDescription
usernamestringThe user name used to register the callback listener. This will be "Null" if no value.
passwordstringThe password of the user name used to register the callback listener. This will be "Null" if no value.
requestIdstringA unique string (UUID) that associates the delete request for group of devices.
diagnosticsResponseobjectThe response object.
monitorResponseobjectThe response object containing the details of the response.
accountNamestringThe numeric name of the billing account.
monitorsarrayAn array of objects containing the details of the devices responding.
deviceIdsarrayAn array of device idenifier objects (kind, id) matching the initial request.
monitorTypestringValid values returned include:
REACHABLE_FOR_DATA
REACHABLE_FOR_SMS
LOSS_OF_CONNECTIVITY
Note: If this value is specified in the request, it will not appear in the response.
creationTimestringIdentifies the absolute time at which the monitoring was started. The format should be aligned with RFC3339, example: “2017-12-19T16:39:57-08:00” (in UTC passed as a string).
expirationTimestringIdentifies the absolute time at which the monitoring ends. The format should be aligned with RFC3339, example: “2017-12-19T16:39:57-08:00” (in UTC passed as a string).
pageNumberintegerIndex of the current block of 2000 monitors included in this callback report. if there are no active monitors for the set of devices requested by user, then this shall be set to 1.
totalPagesintegerTotal number of blocks in entire report; if there are no active monitors for the set of devices requested by user, then this shall be set to 1.
statusstringThis will be either Success or Failed based on the status of the request.
callbackCountintegerThe number of callback responses returned.
maxCallbackThresholdintegerThe maximum number of attempts to retrieve a callback.

On this page