Software Management Subscriptions V1

Get account license information

GET
/fota/v1/licenses/{account}/index/{startIndex}

Returns information about an account's Software Management Services licenses and a list of licensed devices.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Path Parameters

account*string

Account identifier in "##########-#####".

startIndex*string

The zero-based number of the first record to return. Set startIndex=0 for the first request. If there are more than 1,000 devices in the response, set startIndex=1000 for the second request, 2000 for the third request, etc.

Response Body

application/json

application/json

curl -X GET "https://example.com/fota/v1/licenses/0402196254-00001/index/0"
{  "accountName": "0402196254-00001",  "totalLicenses": 5000,  "assignedLicenses": 4319,  "hasMoreData": true,  "lastSeenDeviceId": 1000,  "deviceList": [    {      "deviceId": "990003425730535",      "assignmentTime": "2017-11-29T16:03:42.000Z"    },    {      "deviceId": "990000473475989",      "assignmentTime": "2017-11-29T16:03:42.000Z"    },    {      "deviceId": "990000347475989",      "assignmentTime": "2017-11-29T16:03:42.000Z"    },    {      "deviceId": "990007303425535",      "assignmentTime": "2016-11-29T15:03:36.000Z"    }  ]}