Get resource details of the endpoint

The get resource details of an endpoint request allows the client application to retrieve detailed information about an endpoint. The retrieved information can be stored by the application, so that it can query any supported resources of the endpoint. As it is an asynchronous request, IMPACT returns a requestID, once the request is accepted. Later, the requester receives a notification on its registered callback URL along with the details of all resources supported by the endpoint.

Get resource details of the endpoint describes the API structure for get resource details for an endpoints request.

Table 1. Get resource details of the endpoint
Title Get resource details of the endpoint
URL http://<impact_url>/m2m/endpoints/{SerialNumber}
Method GET
Content-Type application/json
URL Params

serialNumber:[string]: Specifies the serial number of the endpoint for which details are required.

Data Params

requestId:[string]: Specifies the request ID sent by IMPACT. It is provided in case of a valid & accepted request only.

Msg:[String] : info/warning/error message

Success Code
Response Code: 202
Error Code
401 : Unauthorized 
403 : Forbidden 
404 : Not Found
Sample Call Curl:
curl -X GET --header 'Accept: application/json'  --header 'Authorization: Basic ZG9jdXNlcjpBc2RmMSM=' 'http://<impact_url>/m2m/endpoints/250831'
Response Body:
{
  "requestId": "09e956c1-3044-4245-a081-e7e9ef11292c",
  "msg": "Accepted", "Code": 1002
}
Response sent by IMPACT to callback URL:
{"reports":[],"registrations":[],"deregistrations":[],"updates":[],"expirations":[],"responses":[{"serialNumber":"DEVKIT_779",       
          "timestamp":1484127724491,       
          "requestId":"c4588a2e-faa5-4f17-a3a6-401bb1c6de28",       
          "creationDate":null,       
          "make":null,       
          "model":null,       
          "firmwareVersion":null,       
          "groupName":null,       
          "imsi":null,       
          "address":null,       
          "freeFormAddress":null,       
          "protocol":"LWM2M","resources":[{"resourcePath":null,"value":"{\"connectivity/0/routerIpAddress/0\":\"192.168.1.1\",\"access/1/objectId\":\"1\",\"connectivity/0/availableNetworkBearer/0\":\"0\",\"connectivity/0/linkUtilization\":\"5\",\"access/2/ACL/1\":\"1\",\"server/1/lifeTime\":\"60\",\"access/3/objectId\":\"4\",\"access/2/ACL/0\":\"15\",\"access/1/ACL/0\":\"15\",\"device/0/powerSourceCurrent/1\":\"900\",\"device/0/powerSourceCurrent/0\":\"125\",\"device/0/powerSourceVoltage/1\":\"5000\",\"access/1/accessControlOwner\":\"102\",\"device/0/model\":\"Lightweight
          M2M
          Client\",\"server/1/defaultMinimumPeriod\":\"20\",\"access/3/accessControlOwner\":\"101\",\"device/0/powerSourceVoltage/0\":\"3800\",\"access/3/ACL/0\":\"1\",\"device/0/utcOffset\":\"+02:00\",\"access/3/ACL/1\":\"1\",\"access/4/objectId\":\"5\",\"access/4/accessControlOwner\":\"-1\",\"firmware/0/updateResult\":\"0\",\"server/1/binding\":\"U\",\"device/0/currentBindingMode\":\"U\",\"access/4/objectInstanceId\":\"-1\",\"firmware/0/State\":\"1\",\"connectivity/0/networkBearer\":\"0\",\"device/0/firmwareVersion\":\"1.0\",\"device/0/freeMemory\":\"15\",\"access/2/objectInstanceId\":\"0\",\"device/0/serialNumber\":\"345000123\",\"access/3/objectInstanceId\":\"0\",\"device/0/state/0\":\"0\",\"connectivity/0/apn/0\":\"internet\",\"device/0/manufacturer\":\"Open
          Mobile
          Alliance\",\"device/0/batteryLevel\":\"100\",\"access/2/objectId\":\"3\",\"device/0/availablePowerSources/0\":\"1\",\"device/0/availablePowerSources/1\":\"5\",\"access/0/accessControlOwner\":\"101\",\"device/0/currentTime\":\"Thu
          May 02 06:40:15 EDT
          2013\",\"server/1/shortServerId\":\"101\",\"access/4/ACL/1\":\"16\",\"access/4/ACL/0\":\"1\",\"access/0/objectInstanceId\":\"0\",\"connectivity/0/linkQuality\":\"2\",\"access/2/accessControlOwner\":\"101\",\"server/1/notificationStoring\":\"true\",\"connectivity/0/IPAddress/0\":\"192.168.0.100\",\"server/1/disableTimeout\":\"3600\",\"access/1/objectInstanceId\":\"1\",\"server/1/defaultMaximumPeriod\":\"60\",\"connectivity/0/radioSignalStrength\":\"92\",\"access/0/objectId\":\"1\",\"access/0/ACL/0\":\"15\"}"}],
    "result":{"code":0,"subCode":null,"reason":"Success"}}]}
Notes None