List all machines
GET/workspaces/:workspace_id/machines
This endpoint returns all the machines in the workspace.
Request
Path Parameters
workspace_id stringrequired
Workspace ID
Responses
- 200
- 400
- 500
OK response.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
alarm booleanrequired
Alarm of the asset
asset_type stringrequired
Type of the asset
created_at stringrequired
Date of creation of the asset
devices
object[]
required
Devices of the asset
config binaryrequired
Configuration of the device
created_at stringrequired
Date of creation of the device
fleet_id stringrequired
ID of the fleet that owns the device
id stringrequired
ID of the device
name stringrequired
Name of the device
id stringrequired
ID of the asset
name stringrequired
Name of the asset
status stringrequired
Status of the asset
[
{
"alarm": true,
"asset_type": "string",
"created_at": "string",
"devices": [
{
"config": "string",
"created_at": "string",
"fleet_id": "string",
"id": "string",
"name": "string"
}
],
"id": "string",
"name": "string",
"status": "string"
}
]
bad_request: Invalid request
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
Message of error
{
"message": "invalid request"
}
internal_error: Internal server error
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
Message of error
{
"message": "invalid request"
}
Loading...