GET /api/v1/boarding/devices
Use this method to return a list of all discovered (but not managed) Lenovo devices with or without baseboard management controllers.
Note
This REST API requires Lenovo XClarity Orchestrator v2.0 or later.
Authentication
Authentication with username and password is required.
Resource URI
GET https://{orchestrator_server_IP}/api/v1/boarding/devices
Query parameters
This REST API supports query parameters for paginating, filtering, sorting, including data, and excluding data in the response. For more information about these common query parameters, see Paginating, scoping, filtering, sorting, including data, and excluding data in responses. For a list of supported attributes, see GET /api/v1/boarding/devices/{id}.
The following example return a list of all discovered Lenovo devices.
GET https://192.0.2.0/api/v1/boarding/devices
The following example return a list of all discovered Lenovo servers
GET https://192.0.2.0/api/v1/boarding/devices
?filterContains[0][attributes]=type&filterContains[0][values]=server
Request body
None
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. If a single query parameter is specified and the value of that parameter has no matches, the response body returns default values. If a list of query parameters is specified and the value of at least one parameter has no matches, the response body returns only what matches. |
206 | Partial Content | Partial content was returned for a multi-part response. The response header includes a content-range header field indicating the range that is included in the response body for each part. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
401 | Unauthorized | The user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body. |
403 | Forbidden | The orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. |
Response body
When the request is successful, the following attributes are returned. If the request fails, standard message attributes are returned (see Status messages).
Attributes | Type | Description | |||
---|---|---|---|---|---|
results | Array of objects | Information about each discovered device | |||
id | String | Device ID Tip The device ID is made up of the UUID of the device and the UUID of the resource manager that manages the device, separated by a dash. | |||
deviceName | String | Device name | |||
discoveredBy | Array of objects | Information about each resource manager that discovered this device | |||
id | String | Manager ID | |||
name | String | Manager name | |||
uri | String | Manager URI | |||
ipv4Addresses | Array of strings | List of IPv4 addresses that are assigned to this device | |||
ipv6Addresses | Array of strings | List of IPv6 addresses that are assigned to this device | |||
jobId | Integer | ID of the job through which this device was discovered | |||
name | String | Name that is displayed in the user interface for this device | |||
overallHealthState | String | Highest severity of all devices (translated). This can be one of the following values.
| |||
powerStatus | String | Power status (translated). This can be one of the following values.
| |||
productName | String | Product name | |||
uuid | String | Device UUID | |||
_links | Array of objects | User URI (see Links) | |||
_metadata | Object | Request metadata (see Metadata) |
The following example is returned if the request is successful.
{
"results": [{
"id": "ABC31213310B11EAAC96A252EC8212C0-1CB64754EA1543E0AAAA46C1D45CD549",
"deviceName": "Steel-AMD-53-125",
"discoveredBy": [{
"id": "1CB64754EA1543E0AAAA46C1D45CD549",
"name": "10.241.54.149",
"uri": "/api/v1/managers-management/managers/1CB64754EA1543E0AAAA46C1D45CD549"
}],
"ipv4Addresses": ["10.241.53.125"],
"ipv6Addresses": ["fd55:faaf:e1ab:21bb::125","fe80::a94:efff:feaa:9393"],
"jobId": 29,
"name": "Steel-AMD-53-125",
"overallHealthState": "Unknown",
"powerStatus": "Off",
"productName": null,
"uuid": "ABC31213310B11EAAC96A252EC8212C0"
"_links": [{
"rel": "self",
"uri": "/api/v1/boarding/devices/ABC31213310B11EAAC96A252EC8212C0-1CB64754EA1543E0AAAA46C1D45CD549"
}]
"_metadata": {...}
}
Give documentation feedback