Get devices details
get
https://api.connect.jfrog.io/v1/
devices_details
Devices details
If no parameters are set, all devices of that user will be returned.

Example

Python
1
import json
2
import requests
3
json_content = {'project_name': 'MYPROJECT',
4
'group_name': 'Production',
5
'user_token': 'YYYYYYYYYYYYYYY'}
6
7
call_request = requests.get("https://api.connect.jfrog.io/v1/devices_details", json=json_content)
8
call_response = json.loads(call_request.text)
9
10
if call_request.status_code != 200:
11
if call_request.status_code == 429:
12
error = "API limit reached"
13
else:
14
error = call_response["error_message"]
15
print(error)
16
else:
17
for device in call_response["message"]:
18
device_name = device["device_name"]
19
device_id = device["device_id"]
20
upswift_version = device["upswift_version"]
21
project = device["project"]
22
group = device["group"]
23
device_ip = device["device_ip"]
24
last_keepalive = device["last_keepalive"]
25
cpu_usage = device["cpu_usage"]
26
ram_usage = device["ram_usage"]
27
address = device["address"]
28
lat = device["lat"]
29
lng = device["lng"]
30
is_update_trigger_set = device["is_update_trigger_set"]
31
description = device["description"]
32
registered_date = device["registered_date"]
33
updates = device["updates"]
34
tags = device["tags"]
35
updates = device["updates_v2"]
36
apps = device["apps"]
37
Copied!
Copy link