Skip to main content

POST /api/v1/managers-management/managers

Use this method to connect (register) one XClarity Management Hub resource manger, or connect one or more Schneider Electric EcoStruxure IT Expert, VMware vRealize Operations Manager, and Lenovo XClarity Administrator resource managers.

When connecting multiple managers, a job is created to complete this request. The response header returns the URI for the job in the Location field.

When connecting multiple managers, a successful response code indicates that the job was successfully transmitted and accepted by the orchestrator. 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.0 or later.

Authentication

Authentication with user name and password is required.

Resource URI

POST https://{orchestrator_server_IP}/api/v1/managers-management/managers

Query parameters

None

Request body

Table 1. Management Hub resource managers
AttributesRequired / OptionalTypeDescription
registrationRequestRequiredStringRegistration key that is generated by the Lenovo XClarity Management Hub
Table 2. EcoStruxure IT Expert resource managers.
AttributesRequired / OptionalTypeDescription
managersRequiredArray of objectsInformation about each resource manager
 authenticationRequiredObjectInformation about authentication settings
  tokenRequiredStringToken value
  typeRequiredStringAuthentication type. This is always token.
 connectionOptionalObjectInformation about connection settings
  urlOptionalStringResource manager URL
 nameRequiredStringResource manager name
 typeRequiredStringType of resource manager. This is always Schneider EcoStruxure IT.
Table 3. vRealize Operations Manager resource managers.
AttributesRequired / OptionalTypeDescription
managersRequiredArray of objectsInformation about each resource manager
 authenticationRequiredObjectInformation about authentication settings
  authSourceOptionalStringName of the authentication source for users and groups

To obtain a list of available authorization sources, use GET /api/v1/connector/vrealizeAuthSources.

  passwordRequiredStringPassword to use for basic authentication
  typeRequiredStringAuthentication type. This is always basic.
  usernameRequiredStringUser name to use for basic authentication
 connectionRequiredObjectInformation about connection settings
  hostnameRequiredStringResource manager host name
  portRequiredIntegerResource manager port
 hubIDRequiredStringID of the XClarity Management Hub used to manage this manager
 typeRequiredStringType of resource manager. This is always vRealize Operations Manager
Table 4. XClarity Administrator resource managers.
AttributesRequired / OptionalTypeDescription
managersRequiredArray of objectsInformation about each resource manager
 authenticationRequiredObjectInformation about authentication settings
  passwordRequiredStringPassword to use for basic authentication
  typeRequiredStringAuthentication type. This is always basic.
  usernameRequiredStringUser name to use for basic authentication
 connectionRequiredObjectInformation about connection settings
  hostnameRequiredStringResource manager host name
  portRequiredIntegerResource manager port
 optionsRequiredObjectInformation about options
  enableDriveAnalyticsDataRequiredBooleanIndicates whether drive analytics data collection is enabled. This can be one of the following values.
  • true. Drive analytics data collection is enabled.
  • false. Drive analytics data collection is disabled.
Note
This attribute is supported by XClarity Administrator v3.3 and later.
 typeRequiredStringType of resource manager. This is always XClarity Administrator.
The following example connects to a XClarity Management Hub resource manager.
{
"registrationRequest": "eyJzZWxmSW5mbyI6eyJ1dWlkIjoiMjNjODdmMGEtMmNiNi00OTEwLTk3NDgtOTE5MzQ0N2E
2NTVjIiwiaG9zdG5hbWUiOiJ4aG1jMTk0IiwiZG9tYWluIjoibGFicy5sZW5vdm8uY29tIi
wiZnFkbiI6InhobWMxOTQubGFicy5sZW5vdm8uY29tIiwiaXBBZGRyZXNzZXMiOlsiMTAuM
jQzLjIuMTA3Il0sInZlcnNpb24iOiIzLjYuMCIsImJ1aWxkIjoiNDEiLCJodWJWZXJzaW9u
IjoiMS4wLjAifSwiY3NyIjoiLS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS1
cbk1JSUV0ekNDQXA4Q0FRQXdjakVMTUFrR0ExVUVCaE1DVlZNeEN6QUpCZ05WQkFnTUFrNU
RNUkF3RGdZRFZRUUhcbkRBZFNZV3hsYVdkb01ROHdEUVlEVlFRS0RBWk1aVzV2ZG04eEREQ
UtCZ05WQkFzTUEwbFRSekVsTUNNR0ExVUVcbkF3d2NUMjRnY0hKbGJXbHpaU0JuWVhSbGQy
RjVJSFJ2SUhCdmNuUmhiRENDQWlJd0RRWUpLb1pJaHZjTkFRRUJcbkJRQURnZ0lQQURDQ0F
nb0NnZ0lCQU1kS01UcFNzRFRuVlVlSloxa1JLc1ZCUlhUNktGYkRlYmhVSU50akgxWFRcbl
htMWhncEQy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UEtVYmVlZjAzdWtDU2hTWjFtZ0dXSmorUXll
cXNSZDBVZHRjNCs5dmdcbkFSbW4ramZOaHFGbjVmMFpNZUNNbHcrcGh4S0h1ZHlvQUEyTCt
IMHBlenhzWVZDUkpWeHduTzVGQXVqU3hieVJcbmNtVWt6eWRxTjQ0OEdZUXdnYkRDMDBjb1
BBRGxsYXdrODV6MmIwK2NmZG1VbGU4VUd3dzh3L21zWmNUbFBqVkFcbk1FWGZodHFKYUhia
2pDZlh5eml6RnZtanJYdDRBbitwb1lmSGYvdGlWWmQ1STBXaTBpNXR4d3pPWkxVYTZvWHhc
bmxhSmtpMFN3bmlmUVIyWE9pVCttV1hTRWlTQ3pZMWtwbDg5RnorQUdYMExhTjJkNFFuWFJ
xclVmTmFhTlNpbVBcblFzUDFxdGpQVDRxcjdWSHlMQ1drQjI0Wjl0VzFHNGR0VWVZMDJwa0
dJVXVwbmlwemR6UU1tOGZ5UHBFQTlNQVFcblc2SEN5RWdwdzR2eDJESWNKWE84ZDhRWWUxL
0gxTzU1Z0dYSGZ2Z1F1ekJUdEg0cU9uTWZ1WmxGQ3N4eStQbVZcbmNYUDRyWWU4cVBJRzdw
MjFCWEgydFhiNHkxZVpPUmZqa1E3TGw5ZmRudkFRYVgvMW8vQVRSNlpveFBTZEE5WXZcbnc
3UkpzeElIWmg1RUFzT1RadXJpczkyV0RjZ1kwTnJSRFFJUkNNYU0xZGVSU0xzSTF6ZWRVbm
NpNWtYK0NIU1pcbmJHdVBBNWhPK3BEdnhQOUQ4UkRSNWpJWDNTb21KOXNoNVpYa0NnakdmQ
WE4eU55a3k4dGdlN3hYUVJ0SSs5aUhcbml5U2FJMHpyb1Bjb1V1cEx5TkxKRkpzQ0F3RUFB
UT09XG4tLS0tLUVORCBQVUJMSUMgS0VZLS0tLS1cbiJ9",
}
The following example connects to a EcoStruxure IT Expert, vRealize Operations Manager, and XClarity Administrator resource manager.
{
"managers": [{
"authentication": {
"token": "AK1/2sixskmmc06wj/1i6v3epcz5c25rc29jv1t00hce1pjahyobux63 ",
"type": "token"
},
"connection": {
"url": "https://api.ecostruxureit.com/rest/v1/organizations"
},
"name": "Croco 1",
"type": "Schneider EcoStruxure IT"
},
{
"authentication": {
"authSource": "All vCenter Servers",
"password": "********",
"type": "basic",
"username": "USERID"
},
"connection": {
"hostname": "10.241.54.100",
"port": 443
},
"hubID": "B7DE58431234C23839398F3AD4873923",
"type": "vRealize Operations Manager"
},
{
"authentication": {
"password": "CME44len",
"type": "basic",
"username": "USERID"
},
"connection": {
"hostname": "10.241.54.102",
"port": 443
},
"options": {
"enableDriveAnalyticsData": true
},
"type": "XClarity Administrator"
}]
}

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
404Not foundThe resource cannot be found. A descriptive error message is returned in the response body.

Response header

When connecting multiple managers, the URI and ID of the root job are returned in the Location and JobID fields respectively, for example:
Location: /api/v1/jobs-management/jobs/56?childrenLevels=-1
jobID: 56

Response body

For XClarity Management Hub resource managers, when the request is successful, the following attribute is returned. If the request fails, standard message attributes are returned. For all other resource managers, standard message attributes are always returned (see Status messages).

AttributesTypeDescription
registrationKeyStringRegistration key that is generated by Lenovo XClarity Orchestrator to complete the connection to the XClarity Management Hub

To complete the connection, import the registration key in the XClarity Management Hub by clicking Administration > Hub Configuration, and clicking Install Registration Key, entering the registration key, and then clicking Submit.

The following example is returned if the request is successful.
{
"registrationKey": "0DF4-0110-E231",
}