POST /api/v1/boarding/discovery
Use this method to directly discover manageable Lenovo devices with or without baseboard management controllers by specifying an individual IP addresses or hostname, range of IP addresses, or subnet.
An asynchronous job is created to complete this request. The response header returns the job URI and job ID.
A successful response code indicates that the job was successfully transmitted and accepted by the hub. It does not indicate that the operation that is associated with the job was successful. If a job was not successfully started, refer to the response code and response body for details.
Note
This REST API requires Lenovo XClarity Orchestrator v2.0 or later.
Authentication
Authentication with username and password is required.
Resource URI
POST https://{orchestrator_server_IP}/api/v1/boarding/discovery
Query parameters
None
Request body
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
hosts | Optional | Array of objects | Information about individual IP addresses or fully-qualified domain name | ||
host | Required | String | IPv4 address, IPv6 address, or fully-qualified domain name | ||
managerID | Required | String | Resource manager ID | ||
ranges | Optional | Array of objects | Information about each range of IP addresses | ||
start | Required | String | First IPv4 or IPV6 address in the range | ||
end | Required | String | Last IPv4 or IPV6 address in the range | ||
managerID | Required | String | Resource manager ID | ||
subnets | Optional | Array of objects | Information about each subnet | ||
ipAddress | Required | String | IPv4 or IPV6 address | ||
mask | Required | String | Subnet mask (for IPv4) or a routing prefix length (for IPv6) | ||
managerID | Required | String | Resource manager ID |
The following example discovers devices using individual IP address, individual hostname, range of IP addresses, and subset.
{
"hosts": [{
"host": "10.241.54.10",
"managerID": "48331a223bf34fba90732b379b837b9c"
},
{
"host": "id-lxc.labs.lenovo.com",
"managerID": "48331a223bf34fba90732b379b837b9c"
}],
"ranges": [{
"start": "10.241.54.10",
"end": "10.241.54.15",
"managerID": "48331a223bf34fba90732b379b837b9c"
}],
"subnets": [{
{
"ipAddress": "10.241.55.15",
"mask": "255.255.255.0",
"managerID": "48331a223bf34fba90732b379b837b9c"
}]
}
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
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 header
The URI and ID of the root job are returned in the Location and JobID fields respectively.
Response body
Attributes | Type | Description | ||
---|---|---|---|---|
{message_attributes} | varies | Status messages (see Status messages) |
Give documentation feedback