GET

Provides details of a particular device.

http GET https://apps.dataplicity.com/devices/12345678-1234-1234-1234-1234567890123/ 'Authorization: Token 123456789abcdefghijklmnopqrstuvwxyzqwer'
curl --header "Content-Type: application/json" -H "Authorization: Token 123456789abcdefghijklmnopqrstuvwxyzqwer" --request GET https://apps.dataplicity.com/devices/12345678-1234-1234-1234-1234567890123/

When authenticated, will return a 200 (OK) when you have access to a device, or 404 (Not Found) for devices you cannot access.

{
    "agent_version": "0.4.34",
    "created_time": "2019-01-04T12:16:49.292558",
    "delete_permitted": true,
    "description": "0.4.33 - testing of tags",
    "diagnostics_permitted": true,
    "disk_capacity": 7744139264,
    "disk_used": 5343989760,
    "machine_manufacturer": "Sony UK",
    "machine_model": "3B+",
    "machine_processor": "BCM2837",
    "machine_ram": "1024",
    "machine_revision": "1.3",
    "machine_type": "rpi_3b_plus",
    "machine_type_display": "Raspberry Pi 3 Model B+",
    "machine_type_short_display": "Pi 3B+",
    "name": "Dataplicity Towers - B",
    "operating_system": "debian 9.4",
    "port_forwarding_permitted": true,
    "ports_url": "https://apps.dataplicity.com/devices/12345678-1234-1234-1234-1234567890123/ports/",
    "processor_speed": null,
    "ram_capacity": null,
    "reboot_url": "https://apps.dataplicity.com/devices/12345678-1234-1234-1234-1234567890123/reboot/",
    "serial": "12345678-1234-1234-1234-1234567890123",
    "tags": [
      	{
      	  "name": "Rado's devices",
     		  "uid": "qwertyui-1234-1234-1234-12abcdefgijk"
     	  },
    ],
    "tools_permitted": true,
    "uname": "Linux Pi_B 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l ",
    "upgrade_available": false,
    "url": "https://apps.dataplicity.com/devices/12345678-1234-1234-1234-1234567890123/",
    "wormhole_enabled": false,
    "wormhole_override": null,
    "wormhole_slug": "wormhole-link-9879",
    "wormhole_url": null
}

🚧

Online status for a device

Please note that presently the online/offline status of a device can only be obtained from the /devices/ endpoint.