Get a computer object with ID, UUID and name
Relative path: /api/v1/computers/{machine}
Query parameters
Name |
Type |
Description |
|---|---|---|
$idType |
string |
If $idType=uuid {id} in URL is interpreted as UUID |
Parameters in path
Name |
Type |
Required |
Description |
|---|---|---|---|
machine |
string |
Yes |
Computer ID or UUID |
Responses
Display Schema+Headers instead of an Example or vice-versa
Code |
Description and Example |
Description, Schema and Headers |
|---|---|---|
200 |
OK
{
"id": 0,
"uuid": "string",
"name": "string"
}
|
OK
{
"$ref": "GetComputerResponseSchema",
"id": {
"type": "integer"
},
"uuid": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
}
}
{
"X-Security-Token": {
"$ref": "X-Security-Token",
"description": "Authentication token",
"schema": {
"$ref": "AuthenticateTokenResponse",
"type": "string",
"example": "eyJhbGciOi[..]ziJSUGusY5kAI"
}
}
}
|
404 |
Specified element was not found |
Specified element was not found
{
"$ref": "NotFoundResponse",
"description": "Specified element was not found"
}
|