Skip to main content

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

AttributesRequired / OptionalTypeDescription
hostsOptionalArray of objectsInformation about individual IP addresses or fully-qualified domain name
 hostRequiredStringIPv4 address, IPv6 address, or fully-qualified domain name
 managerIDRequiredStringResource manager ID
rangesOptionalArray of objectsInformation about each range of IP addresses
 startRequiredStringFirst IPv4 or IPV6 address in the range
 endRequiredStringLast IPv4 or IPV6 address in the range
 managerIDRequiredStringResource manager ID
subnetsOptionalArray of objectsInformation about each subnet
 ipAddressRequiredStringIPv4 or IPV6 address
 maskRequiredStringSubnet mask (for IPv4) or a routing prefix length (for IPv6)
 managerIDRequiredStringResource 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

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA 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.
401UnauthorizedThe user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body.
403ForbiddenThe 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

AttributesTypeDescription
{message_attributes}variesStatus messages (see Status messages)