Skip to main content

PUT /aicc

Use this method to configure Lenovo XClarity Administrator settings (such as NTP server settings, date and time settings, and services that are currently running), change the virtual appliance name, and restart or shutdown the virtual appliance.

Note
Restarting or shutting down the virtual appliance causes any outstanding jobs to be interrupted and stopped. Before calling PUT /aicc to shut down or restart the virtual appliance, use GET /tasks to check for any outstanding jobs.

Authentication

Authentication with username and password is required.

Request URL

PUT https://{management_server_IP}/aicc

Query parameters

None

Request body

AttributesRequired / OptionalTypeDescription
applianceOptionalObjectInformation about the current instance of the XClarity Administrator virtual appliance
 nameOptionalStringName of the virtual appliance
 runlevelOptionalIntegerAppliance run level. This can be one of the following values.
  • 0. Shut down
  • 6. Restart
dateOptionalObjectInformation about the current date and time on XClarity Administrator
 partsOptionalArrayCurrent date and time
  yyyyOptionalIntegerYear
  mmOptionalIntegerMonth
  ddOptionalIntegerDay
  hoursOptionalIntegerHour
  minsOptionalIntegerMinute
  secsOptionalIntegerSecond
 time_formatOptionalStringTime format. This can be one of the following values.
  • 12. (default). 12-hour clock
  • 24. 24-hour clock
 timezone_idOptionalStringTime zone ID

hideUnmanagedChassis

Optional

Boolean

Indicates whether to hide chassis that were not explicitly managed by a user. This can be one of the following values.

  • true. Hide chassis that were not explicitly managed.
  • false. (default) Show chassis that were not explicitly managed.

This attribute is supported in XClarity Administrator v4.1 and later.

ntpOptionalObjectInformation about the NTP server that is associated with XClarity Administrator
 serversOptionalArray of objectsList of NTP servers
  serverRequiredStringIP address or hostname of the NTP server
  syncRequiredBooleanIndicates whether XClarity Administrator synchronizes with the NTP server specified with the server attribute.
  versionOptionalIntegerVersion of the NTP server. This can be one of the following values.
  • 1. No key authentication is required.
  • 3. NTPv3 is used, and key authentication is required. You must specify the authentication key and index for the NTP server for M-MD5 or SHA1 or both using the v3_key, v3_key_type, and v3_key_index parameters.
  v3_keyOptionalStringAuthentication key. This can be one of the following values.
  • For the M-MD5 key, specify an ASCII string.

  • For the SHA1 key, specify a 40-character ASCII string, including only 0–9 and a-f.

Note
The key index and authentication key must match the key ID and password values set on the NTP server. See the documentation for your NTP server for information about setting the key ID and key index.
  v3_key_indexOptionalStringAuthentication key index
Note
The key index and authentication key must match the key ID and password values set on the NTP server. See the documentation for your NTP server for information about setting the key ID and password.
  v3_key_typeOptionalStringAuthentication key-type. This can be one of the following values.
  • M. M-MD5 authentication
  • SHA1. SHA1 authentication
preferredDisplayNameOptionalStringProperty to use to displayed the device names in the user interface. This can be one of the following values.
  • byDefault. Displays the value that is provided by XClarity Administrator.
  • userDefinedName
  • dnsHostname
  • hostname
  • ipv4Address
  • serialNumber

If the selected property is not applicable or is applicable but there is no value available for a device, then byDefault is used.

preferredSortGridStateOptionalBooleanIndicates whether to sort the inventory and groups data using the value set for the preferredDisplayName attribute. This can be one of the following values.
  • true. Sorts the inventory and groups data alphabetically using the preferredDisplayName attribute.

  • false. Sorts alphabetically using byDefault.

servicesOptionalArrayList of the XClarity Administrator services
 idOptionalStringService ID

To obtain the service IDs, use GET /aicc.

 stateOptionalIntegerCurrent state of the service. This can be one of the following values.
  • 191. Restart the service.
vaSettingsOptionalObjectCryptographic and certificate settings for this XClarity Administrator instance.
 certificateOptionalStringApache server certificate readiness. This can be one of the following values.
  • ready

  • not available. The OS deployment role is not enabled for any XClarity Administrator network interfaces ( see Configuring network access).

  • NA. (default) The certificate is not generated.

 cryptographicModeOptionalStringCryptographic mode. This can be one of the following values.
  • COMP. (default) This mode is compatible with older firmware versions, browsers, and other network clients that do not implement strict security standards that are required for compliance with NIST SP 800-131A.

  • NIST. This mode is designed to comply with the NIST SP 800-131A standard.

  • NA.

For more information about these settings, see Configuring cryptography settings.

 tlsModeOptionalStringMinimum TLS protocol version to use for client connections. This can be one of the following values.
  • tls1.2. TLS v1.2 and later can be used

  • tls1.3. TLS v1.3 and later can be used

  • NA

For more information about these settings, see Configuring cryptography settings.

The following example sets an NTPv1 server.
{
"ntp": {
"servers": [{
"server": "1.1.1.2",
"version": 1
}]
}
}
The following example sets an NTPv3 server using both M-MD5 and SHA1 authentication.
{
"ntp": {
"servers": [{
"server": "time-a.nist.gov",
"version": 3
"v3_key": "123456789012345678901234567890abcdefabcd",
"v3_key_index": 3,
"v3_key_type": "M",
},
{
"server": "us.pool.ntp.org",
"version": 3,
"v3_key": "123456789012345678901234567890abcdefabcd"
"v3_key_index": 1,
"v3_key_type": "SHA1",
}]
}
}
The following example synchronizes XClarity Administrator with the NTP server.
{
"ntp": {
"servers": [{
"server": "time-a.nist.gov",
"sync": "true"
}]
}
}
The following example sets the clock setting and time zone.
{
"date": {
"time_format": "24",
"timezone_id": "America/ New_York"
}
}
The following example sets the date and time.
{
"date": {
"parts": {
"yyyy": 2014,
"dd": 7,
"mm": 5,
"hours": 2,
"mins": 10,
"secs": 24
}
}
}
The following example restarts network services.
{
"services": [{
"id": "network",
"state": 191
}]
}
The following example shuts down the virtual appliance.
{
"appliance": {
"runlevel": 0
}
}
The following example restarts the virtual appliance.
{
"appliance": {
"runlevel": 6
}
}
The following example changes the virtual appliance name.
{
"appliance": {
"name": "myAppliance"
}
}
The following example displays the device names and sorts tables in the web interface using the IPv6 address of the device.
{
"preferredDisplayName": "ipv6Address",
"preferredSortGridState": true
}
The following example hides chassis that are not explicitly managed.
{
"hideUnmanagedChassis": true
}

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.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

None