@shaunmulligan
So the device
endpoint: curl -Ss https://api.<openbalena domain>/v5/device -H "Authorization: Bearer <api key>" | jq .
{
"d": [
{
"created_at": "2019-11-22T09:23:05.171Z",
"id": 1,
"actor": 5,
"uuid": "7c21238b2db06050822b91aa5e97327b",
"local_id": null,
"device_name": "fragrant-meadow",
"note": null,
"device_type": "intel-nuc",
"belongs_to__application": {
"__deferred": {
"uri": "/resin/application(2)"
},
"__id": 2
},
"is_online": true,
"last_connectivity_event": "2019-11-27T06:30:43.993Z",
"is_connected_to_vpn": true,
"last_vpn_event": "2019-11-27T06:30:43.993Z",
"is_locked_until__date": null,
"logs_channel": null,
"public_address": null,
"vpn_address": "10.240.0.3",
"ip_address": "192.168.178.53",
"is_on__commit": "1a3ef4812b54c44960e148af5cec4070",
"download_progress": null,
"status": "Idle",
"os_version": "balenaOS 2.44.0+rev1",
"os_variant": "dev",
"supervisor_version": "10.3.7",
"provisioning_progress": null,
"provisioning_state": "",
"api_port": 48484,
"api_secret": "81d389e41e4387f154d94ff4c688cd8baec9ac541ab3f2ee3d8f4e169b0008",
"is_managed_by__service_instance": {
"__deferred": {
"uri": "/resin/service_instance(5)"
},
"__id": 5
},
"should_be_running__release": {
"__deferred": {
"uri": "/resin/release(12)"
},
"__id": 12
},
"is_managed_by__device": null,
"__metadata": {
"uri": "/resin/device(1)",
"type": ""
}
}
]
}
And application
endpoint: curl -Ss https://api.<openbalena domain>/v5/application -H "Authorization: Bearer <api key>" | jq .
{
"d": [
{
"created_at": "2019-11-18T11:40:27.432Z",
"id": 2,
"actor": 4,
"should_track_latest_release": true,
"app_name": "testPOC",
"slug": "testpoc",
"device_type": "intel-nuc",
"VPN_host": "vpn.viso.dev",
"VPN_port": 443,
"commit": "ddc1075a05704a9f59c85a643af0016f",
"depends_on__application": null,
"application_type": {
"__deferred": {
"uri": "/resin/application_type(0)"
},
"__id": 0
},
"__metadata": {
"uri": "/resin/application(2)",
"type": ""
}
}
]
}
Any idea?