Skip to main content

POST /api/v1/boarding/agentInstaller

Use this method to create a Lenovo Universal Device Client (UDC) agent installation package for specific ThinkEdge Client devices. This UDC agent must be installed on ThinkEdge Client devices so that the devices can be securely discovered and managed by a Lenovo XClarity Management Hub resource manager.

After the UDC-agent installation package is created, you can download the package the local system using GET /api/v1/boarding/agentInstaller/{filename}.

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

Query parameters

None

Request body

AttributesRequired / OptionalTypeDescription
expirationTimeInDaysOptionalIntegerNumber of days before the UDC agent installer becomes unusable after it is downloaded. This can be one of the following values.
  • 10
  • 30 (default)
  • 60
  • 90
managerIDRequiredStringLenovo XClarity Management Hub resource manager ID
maxUsageLimitOptionalIntegerNumber of times that you plan to install the UDC agent on a server. This is typically the number of servers on which you need to install the UDC agent. The minimum value is 1, and the maximum value is 1,000,000. The default is 10 usages.
operatingSystemRequiredStringOperating system that is installed on the server
  • LinuxARM
  • LinuxX86
  • Windows
The following example create a UDC-agent installation package for up to 10 Windows-based ThinkEdge Client devices that can be installed within 7 days and can be managed by a specific Lenovo XClarity Management Hub resource manager.
{
expirationTimeInDays: 7,
managerID: "48331a223bf34fba90732b379b837b9c",
maxUsageLimit: 10,
operatingSystem: "Windows"
}

Response codes

CodeDescriptionComments
201CreatedOne or more new resources were successfully created.
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.

Response header

The URI and ID of the root job are returned in the Location and JobID fields respectively.

Response body

When the request is successful, the following attributes are returned. If the request fails, standard message attributes are returned (see Status messages).

AttributesTypeDescription
installerStringFile name of the UDC agent installer, in the following format: edgeInstaller_{operatingSystem}_{managerID}_{timestamp}.gz for Linux or zip for Windows}
jobIDIntegerJob ID
_linksObjectResource URI (see Links)
The following example is returned if the request is successful.
{
installer: "edgeInstaller_Windows_Hub1_2019-05-02T19:28:14.000Z.zip",
jobID: 1 // The job id which was triggered when making the POST
}