Skip to main content

POST /api/v1/boarding/management

Use this method to directly manage discovered devices with or without baseboard management controllers.

When you manage a chassis, all devices in the chassis are managed. You cannot manage individual devices in a chassis.

Attention
Before managing a device, the devices must have been previously discovered using the POST /api/v1/boarding/discovery method.

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/management

Query parameters

None

Request body

Table 1. Manage discovered devices.
AttributesRequired / OptionalTypeDescription
chassisOptionalObjectInformation about the chassis to be managed
 configRequiredObjectInformation about chassis configuration
  forceManageOptionalBooleanIndicates whether to force management of the chassis. This can be one of the following values.
  • true. Force management.
  • false. (default) Do not force management.
Note
Use the force-management option only if you previously attempted to manage the device and management was not successful due to one of the following error conditions.
Note
  • If the managing resource manager failed and cannot be recovered.

    If the replacement resource manager instance uses the same IP address as the failed resource manager, you can manage the device again using the RECOVERY_ID account and password (if applicable) and the Force management option.

  • If the managing resource manager was taken down before the devices were unmanaged.
  • If the devices were not unmanaged successfully.
Attention
Devices can be managed by only one resource manager at a time. Management by multiple resource manager is not supported. If a device is managed by one resource manager, and you want to manage it with another resource manager, you must first unmanage the device from the original resource manager, and then manage it with the new resource manager.
  newPasswordOptionalStringNew password to be used for managed authentication
  passwordRequiredStringCurrent password to access the chassis
  recoveryPasswordRequiredStringRecovery password to be used for the chassis
  usernameRequiredStringUser ID to be used to access the chassis
 idsOptionalArray of stringsList of IDs of chassis to be managed
  managerIdOptionalStringManager identifier
  resourceIdOptionalStringResource identifier
serversOptionalObjectInformation about the servers to be managed
 configRequiredObjectInformation about server configuration
  forceManageOptionalBooleanIndicates whether to force management of the servers. This can be one of the following values.
  • true. Force management.
  • false. (default) Do not force management.
Attention
Use the force-management option only if you previously attempted to manage the device and management was not successful due to one of the following error conditions.
Attention
  • If the managing resource manager failed and cannot be recovered.

    If the replacement resource manager instance uses the same IP address as the failed resource manager, you can manage the device again using the RECOVERY_ID account and password (if applicable) and the Force management option.

  • If the managing resource manager was taken down before the devices were unmanaged.
  • If the devices were not unmanaged successfully.
Attention
Devices can be managed by only one resource manager at a time. Management by multiple resource manager is not supported. If a device is managed by one resource manager, and you want to manage it with another resource manager, you must first unmanage the device from the original resource manager, and then manage it with the new resource manager.
  newPasswordOptionalStringNew password to be used for managed authentication
  passwordRequiredStringCurrent password to access the servers
  recoveryPasswordOptionalStringRecovery password to be used for the servers
  usernameRequiredStringUser ID to be used to access the servers
 idsOptionalArray of stringsList of IDs of servers to be managed
  managerIdOptionalStringManager identifier
  resourceIdOptionalStringResource identifier
storageOptionalObjectInformation about the storage devices to be managed
 configRequiredObjectInformation about storage-device configuration
  forceManageOptionalBooleanIndicates whether to force management of the storage device. This can be one of the following values.
  • true. Force management.
  • false. (default) Do not force management.
Attention
Use the force-management option only if you previously attempted to manage the device and management was not successful due to one of the following error conditions.
Attention
  • If the managing resource manager failed and cannot be recovered.

    If the replacement resource manager instance uses the same IP address as the failed resource manager, you can manage the device again using the RECOVERY_ID account and password (if applicable) and the Force management option.

  • If the managing resource manager was taken down before the devices were unmanaged.
  • If the devices were not unmanaged successfully.
Attention
Devices can be managed by only one resource manager at a time. Management by multiple resource manager is not supported. If a device is managed by one resource manager, and you want to manage it with another resource manager, you must first unmanage the device from the original resource manager, and then manage it with the new resource manager.
  passwordRequiredStringCurrent password to access the storage device
  usernameRequiredStringUser ID to be used to access the storage device
 idsOptionalArray of stringsList of IDs of storage devices to be managed
  managerIdOptionalStringManager identifier
  resourceIdOptionalStringResource identifier
The following example manages multiple devices.
{
"chassis": {
"config": {
"forceManage": false,
"newPassword": "************",
"password": "************",",
"recoveryPassword": "************",
"username": " User1"
},
"ids": [
{
"managerId":"823CC2575E0DABAAC6C1D45CD2221CB87",
"resourceId":"FBB43C13D103511E785F2E4A2CED78753"
}
],
},
"servers": {
"config": {
"forceManage": false,
"newPassword": "************",
"password": "************",
"recoveryPassword": "************",
"username": "User1"
},
"ids": [
{
"managerId":"1CB64754EA1543E0AAAA46C1D45CD549",
"resourceId":"3015DE7E2B6011E881940A94EF5F5B65"
}
],
}
"storage": {
"forceManage": false,
"password": "************",
"username": "User1"
},
"ids": [
{
"managerId":"754EA1543E0BDACCB6C1D45CD5491CB6",
"resourceId":"2376F7C628FB11E1B72B5CF3fC3C1448"
}
],
}
}
Table 2. Manage and discover servers in bulk.
AttributesRequired / OptionalTypeDescription
managerIDRequiredStringID of the resource manager to use to manage servers in bulk
serversRequiredObjectInformation about the servers to be managed
 configRequiredObjectInformation about server configuration
  forceManageOptionalBooleanIndicates whether to force management of the servers. This can be one of the following values.
  • true. Force management.
  • false. (default) Do not force management.
Attention
Use the force-management option only if you previously attempted to manage the device and management was not successful due to one of the following error conditions.
Attention
  • If the managing resource manager failed and cannot be recovered.

    If the replacement resource manager instance uses the same IP address as the failed resource manager, you can manage the device again using the RECOVERY_ID account and password (if applicable) and the Force management option.

  • If the managing resource manager was taken down before the devices were unmanaged.
  • If the devices were not unmanaged successfully.
Attention
Devices can be managed by only one resource manager at a time. Management by multiple resource manager is not supported. If a device is managed by one resource manager, and you want to manage it with another resource manager, you must first unmanage the device from the original resource manager, and then manage it with the new resource manager.
  ipAddressesRequiredArray of stringsList of IP addresses for servers that you want to manage in bulk
  newPasswordOptionalStringNew password to be used for managed authentication
  passwordRequiredStringCurrent password to access the servers
  recoveryPasswordOptionalStringRecovery password to be used for the servers
  usernameRequiredStringUser ID to be used to access the servers
The following example manages and discovers devices in bulk.
{
"managerID": "F95463A1A4AB4187A76553F0E2B1DEB2",
"servers": {
"config": {
"forceManage": true,
"ipAddresses": ["192.02.7", "192.0.2.8"],
"newPassword": "Func2test",
"password": "Func2test",
"recoveryPassword": "Func2test",
"username": "userid"
}
}
}

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)