List Workspace Devices
GET/api/v1/workspaces/:workspace/devices
List all Devices in a Workspace by its ID.
Request
Path Parameters
Possible values: > 0
ID of the Workspace
Query Parameters
Possible values: > 0 and <= 100
100Possible values: [id, name, type, onboarded, macAddresses, netbird]
Possible values: [asc, desc]
ascResponses
- 200
- 400
- 401
Success
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: > 0
100data
object[]
required
ID of the Device
Possible values: > 0
1000Name of the Device
Device 1Type of the Device
WagoEdgeIPCIs the Device onboarded
trueMAC addresses for this Device
Possible values: Value must match regular expression ^([0-9a-f]{2}:){5}([0-9a-f]{2})$
["11:22:33:44:55:66","77:88:99:AA:BB:CC"]netbird
object
Netbird information for this Device
IP address
Domain name of the Device
device-name.netbird.cloudnext
object
eyJjdXJzb3IiOjEsInRva2VuIjoiIn0K/workspaces/1000/devices/api/v1?size=10&sortBy=name&sortOrder=asc&nextToken=eyJjdXJzb3IiOjEsInRva2VuIjoiIn0K{
"size": 100,
"data": [
{
"id": 1000,
"name": "Device 1",
"type": "WagoEdgeIPC",
"onboarded": true,
"macAddresses": [
"11:22:33:44:55:66",
"77:88:99:AA:BB:CC"
],
"netbird": {
"ip": "string",
"domain": "device-name.netbird.cloud"
}
}
],
"next": {
"token": "eyJjdXJzb3IiOjEsInRva2VuIjoiIn0K",
"href": "/workspaces/1000/devices/api/v1?size=10&sortBy=name&sortOrder=asc&nextToken=eyJjdXJzb3IiOjEsInRva2VuIjoiIn0K"
}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [Validation Error]
errors
object[]
required
Possible values: [body, query, path, headers]
{
"status": "Validation Error",
"errors": [
{
"error": "string",
"location": "body"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Unauthorized]
{
"status": "Unauthorized"
}