Get the live status of a latest device
GET/accounts/{account_id}/dex/devices/{device_id}/fleet-status/live
Get the live status of a latest device given device_id from the device_state table
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Query Parameters
Get the live status of a latest device
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/dex/devices/$DEVICE_ID/fleet-status/live \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"colo": "SJC",
"deviceId": "deviceId",
"mode": "proxy",
"platform": "windows",
"status": "connected",
"timestamp": "2023-10-11T00:00:00Z",
"version": "1.0.0",
"alwaysOn": true,
"batteryCharging": true,
"batteryCycles": 0,
"batteryPct": 0,
"connectionType": "connectionType",
"cpuPct": 0,
"cpuPctByApp": [
[
{
"cpu_pct": 0,
"name": "name"
}
]
],
"deviceIpv4": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"deviceIpv6": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"deviceName": "deviceName",
"diskReadBps": 0,
"diskUsagePct": 0,
"diskWriteBps": 0,
"dohSubdomain": "dohSubdomain",
"estimatedLossPct": 0,
"firewallEnabled": true,
"gatewayIpv4": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"gatewayIpv6": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"handshakeLatencyMs": 0,
"ispIpv4": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"ispIpv6": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"metal": "metal",
"networkRcvdBps": 0,
"networkSentBps": 0,
"networkSsid": "networkSsid",
"personEmail": "personEmail",
"ramAvailableKb": 0,
"ramUsedPct": 0,
"ramUsedPctByApp": [
[
{
"name": "name",
"ram_used_pct": 0
}
]
],
"registrationId": "registrationId",
"switchLocked": true,
"wifiStrengthDbm": 0
}Returns Examples
{
"colo": "SJC",
"deviceId": "deviceId",
"mode": "proxy",
"platform": "windows",
"status": "connected",
"timestamp": "2023-10-11T00:00:00Z",
"version": "1.0.0",
"alwaysOn": true,
"batteryCharging": true,
"batteryCycles": 0,
"batteryPct": 0,
"connectionType": "connectionType",
"cpuPct": 0,
"cpuPctByApp": [
[
{
"cpu_pct": 0,
"name": "name"
}
]
],
"deviceIpv4": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"deviceIpv6": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"deviceName": "deviceName",
"diskReadBps": 0,
"diskUsagePct": 0,
"diskWriteBps": 0,
"dohSubdomain": "dohSubdomain",
"estimatedLossPct": 0,
"firewallEnabled": true,
"gatewayIpv4": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"gatewayIpv6": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"handshakeLatencyMs": 0,
"ispIpv4": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"ispIpv6": {
"address": "address",
"asn": 0,
"aso": "aso",
"location": {
"city": "city",
"country_iso": "country_iso",
"state_iso": "state_iso",
"zip": "zip"
},
"netmask": "netmask",
"version": "version"
},
"metal": "metal",
"networkRcvdBps": 0,
"networkSentBps": 0,
"networkSsid": "networkSsid",
"personEmail": "personEmail",
"ramAvailableKb": 0,
"ramUsedPct": 0,
"ramUsedPctByApp": [
[
{
"name": "name",
"ram_used_pct": 0
}
]
],
"registrationId": "registrationId",
"switchLocked": true,
"wifiStrengthDbm": 0
}