Get the Device


Get the device based on ID.

Endpoint URL: {service.device.url} received in EndpointFetching

Request Syntax

GET /device/v1/device/{deviceId}


Request Headers

ParameterDescriptionRequired
AuthorizationAuthorization token in the form "Bearer {token}."

Value of type: string
true


Request Path Parameters

ParameterDescriptionRequired
deviceIdValue of type: stringtrue


200 Response

OK

Response Payload

DescriptionRequired
Object of type: Devicefalse


Example

Sample request to get device details by Device ID.

Request

GET device/v1/device/{deviceId} HTTP/1.1Host: Endpoint-URLAuthorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJ

Response

[    {       "data": {           "deviceId": "string",           "modelId": "0",           "name": "User's My Cloud Home",           "mac": "string",           "type": "string",           "cloudConnected": true,           "createdOn": "2017-10-09T18:54:16",           "attachedStatus": "APPROVED",           "configuration": {               "wisb": "string",               "wiri": "string"           },           "firmware": {               "wiri": "string"           },           "network": {               "localIpAddress": "string",               "externalIpAddress": "string",               "internalDNSName": "string",               "connectionType": 0,               "httpPort": -1,               "portForwardPort": -1,               "tunnelId": "string",               "externalURI": "string",               "internalURI": "string",               "internalURL": "string",               "proxyURL": "string"           },           "sendOTANotification": true,           "lang": "en",           "ownerAccess": true       }   }]