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.
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.
GET https://thingspace.verizon.com/api/diagnostics/v1/devices/settings?accountName={account}&devices=[{"id":"{imei1}","kind":"imei"},{"id":"{imei2}","kind":"imei"]
Parameter Name | Data Type | Description |
---|---|---|
accountName required |
string | The 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 required |
string | The devices for which you want to retrieve diagnostic settings. Devices list format: [{“id”:“{imei1}”,“kind”:“imei”},{“id”:“{imei2}”,“kind”:“imei”}] |
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 Name | Data Type | Description |
---|---|---|
Authorization required |
string | HTTP Authorization bearer token. |
VZ-M2M-Token required |
string | A valid session token returned by POST /api/m2m/v1/session/login. |
Content-Type required |
string | Must be application/json . |
None.
Status 200
Parameter Name | Data Type | Description |
---|---|---|
accountName | string | The name of the account for which you want retrieve diagnostic settings. An account name is usually numeric, and must include any leading zeros. |
device | device data object | The devices for which you want to retrieve diagnostic settings. |
device.id | string | A device identifier value |
device.kind | string | Type of identifier
|
attributes | array of objects | Streaming RF parameters for which you want to retrieve diagnostic settings. |
attributes.name | string |
|
attributes.value | string | |
attributes.createdOn | string($date-time) | Date and time request was created. |
attributes.isObservable | boolean | Is the attribute observable? |
attributes.isObserving | boolean | Is the attribute being observed? |
attributes.frequency | attributes frequency data object | The frequency with which the attribute is being observed |
attributes.frequency.value | integer($int32) | |
attributes.frequency.unit | string |
|
[
{
"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"
}
}
]
}
]
Status 400
All error messages are returned in this format:
{
"errorCode": "error code string",
"errorMessage": "error message string"
}
Error codes and messages are listed on the Error Codes page, along with explanations and suggestions for corrective actions.