acronameDevices Endpoint¶
The acronameDevices
endpoint enumerates all of the attached Acroname devices on the host system,
and provides information about their connection parameters, software licenses, and module information.
There are no input parameters to this endpoint. It will return a JSON array of devices, or error, encapsulated in a transaction envelope.
JSON Schema for Response Object¶
The following tables list a JSON Schema for the response object.
Download the raw JSON Schema file for this response: acroname_devices_response.json
Object Fields of Acroname Devices Response¶
Name |
Type |
Mandatory |
Description |
---|---|---|---|
|
Array<Object> |
Yes |
An array containing all Acroname devices in the system. |
Object Fields of acronameDevices[]
¶
Name |
Type |
Mandatory |
Description |
---|---|---|---|
|
Yes |
Type of connection to device |
|
|
Yes |
Acroname Serial Number |
|
|
Yes |
Brainstem Module address of this device |
|
|
No |
BrainStem network router address |
|
|
No |
BrainStem network router serial number |
|
|
Yes |
Model Number of device (see aDefs.c for allowed values) |
|
|
Array<Object> |
No |
An array containing all entitlements for this specific device |
Object Fields of acronameDevices[].entitlements[]
¶
Name |
Type |
Mandatory |
Description |
---|---|---|---|
|
Yes |
The entitlement tag associated with this entitlement |
|
|
Yes |
Version field of the specified entitlement |
v1-type¶
Name |
Value |
---|---|
Type |
string |
description |
Enumeration of all possible USB speeds |
Enumerations |
|
v1-uint32¶
Name |
Value |
---|---|
Type |
integer |
description |
Unsigned 32-bit integer |
minimum |
0 |
maximum |
4294967295 |
v1-serialNumber¶
Name |
Value |
---|---|
Type |
string |
description |
Representation of an Acroname device serial number |
Regular Expression |
|
v1-tag¶
Name |
Value |
---|---|
Type |
string |
description |
Representation of the entitlement tag |
v1-model¶
Name |
Value |
---|---|
Type |
string |
description |
Enumeration of all supported Acroname devices. |
Enumerations |
|
Examples¶
curl http://127.0.0.1:9005/api/v1/acronameDevices
import requests
import json
response = requests.get('http://127.0.0.1:9005/api/v1/acronameDevices')
json_data = response.json()
print(json.dumps(json_data, indent=4))
The output will be similar to the following:
1{
2 "timestamp": "2023-09-20T17:11:54.092Z",
3 "request": {
4 "endpointName": "/api/v1/acronameDevices",
5 "parameters": {}
6 },
7 "response": {
8 "acronameDevices": [
9 {
10 "type": "USB",
11 "serialNumber": "3C43352C",
12 "module": 6,
13 "model": "USBHub3c",
14 "entitlements": [
15 {
16 "tag": "CONTROL",
17 "version": 0
18 }
19 ]
20 },
21 {
22 "type": "USB",
23 "serialNumber": "F7D9AFB6",
24 "module": 6,
25 "model": "USBHub3p",
26 "entitlements": [
27 {
28 "tag": "CONTROL",
29 "version": 0
30 }
31 ]
32 }
33 ]
34 }
35}