Bulk devices state
get
https://api.connect.jfrog.io/v1/
get_devices_state
Bulk Devices state

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/get_devices_state", 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_status = device["device_status"]
19
device_id = device["device_id"]
20
device_name = device["device_name"]
21
Copied!
Copy link