GET v1/core/Accounts/{accId}/devices/iotdevices/expand/paged?pageSize={pageSize}&pageNumber={pageNumber}&includeTotal={includeTotal}&hasLastConnected={hasLastConnected}

List a paged set of expanded IOT devices

Request Information

Parameters

NameDescriptionAdditional information
accId
The account ID

Define this parameter in the request URI.

pageSize
The number of results to return per page. Allowable values between 0 and 1000.
            The default value is 0. If an invalid value is supplied, 1000 will be used instead.

Define this parameter in the request URI.

pageNumber
The page number, starting from 0. The default value is 0.
            If an invalid value is supplied, 1000 will be used instead.

Define this parameter in the request URI.

includeTotal
Flag indicating whether to include the total row count. 
            Default value is false.

Define this parameter in the request URI.

sortColumn
The column to sort by. Allowable values are (LastConnected).
            The default sort column is LastConnected.

Define this parameter in the request URI.

sortDirection
The sort direction. Allowable values are (ASC|DESC).
            The default direction is DESC.

Define this parameter in the request URI.

hasLastConnected
Flag indicating whether to filter out objects that have (have not) connected

Define this parameter in the request URI.

Response Information

A paged set of IOT devices with last connection details.

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "PreviousPage": 1,
    "CurrentPage": 1,
    "NextPage": 1,
    "PageSize": 2,
    "TotalCount": 1,
    "ResultSet": [
      {
        "LastConnection": null,
        "ID": 1,
        "Description": "sample string 2",
        "AuthType": "CLI|SharedCredentials|UserCredentials|Certificate",
        "Status": "Activation|Enabled|Disabled|Deleted",
        "UserID": 1
      },
      {
        "LastConnection": null,
        "ID": 1,
        "Description": "sample string 2",
        "AuthType": "CLI|SharedCredentials|UserCredentials|Certificate",
        "Status": "Activation|Enabled|Disabled|Deleted",
        "UserID": 1
      },
      {
        "LastConnection": null,
        "ID": 1,
        "Description": "sample string 2",
        "AuthType": "CLI|SharedCredentials|UserCredentials|Certificate",
        "Status": "Activation|Enabled|Disabled|Deleted",
        "UserID": 1
      }
    ]
  },
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":{"PreviousPage":1,"CurrentPage":1,"NextPage":1,"PageSize":2,"TotalCount":1,"ResultSet":[{"LastConnection":null,"ID":1,"Description":"sample string 2","AuthType":0,"Status":0,"UserID":1},{"LastConnection":null,"ID":1,"Description":"sample string 2","AuthType":0,"Status":0,"UserID":1},{"LastConnection":null,"ID":1,"Description":"sample string 2","AuthType":0,"Status":0,"UserID":1}]},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: One or more errors occurred.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: One or more errors occurred.

application/bson

Sample:
�SuccessData�PreviousPageCurrentPageNextPagePageSizeTotalCountResultSet:0d
LastConnectionIDDescriptionsample string 2AuthTypeStatusUserID1d
LastConnectionIDDescriptionsample string 2AuthTypeStatusUserID2d
LastConnectionIDDescriptionsample string 2AuthTypeStatusUserIDErrorCodeErrorDescriptionsample string 3Metasample string 4