PUT /aicc/network/host
Use this method to configure the Lenovo XClarity Administrator host settings.
Authentication
Authentication with username and password is required.
Request URL
PUT https://{management_server_IP}/aicc/network/host
Query parameters
None
Request body
| Attributes | Required / Optional | Type | Description | ||
|---|---|---|---|---|---|
| domain_name | Optional | String | Domain name of the virtual appliance | ||
| dns_servers | Optional | Array of objects | IP addresses to be used to resolve DNS queries | ||
| ip | Required | String | IP address of the DNS entry | ||
| priority | Required | Integer | Relative priority of the DNS entry | ||
| hostname | Optional | String | Hostname of the virtual appliance | ||
| proxy | Optional | Array of objects | Information about the proxy server | ||
| enabled | Required | Boolean | Indicates whether the proxy server is enabled. This can be one of the following values.
| ||
| ip | Required | String | IPv4 or IPv6 address of the proxy server | ||
| password | Required | String | Password for the user ID | ||
| port | Required | Integer | Port number of the proxy server | ||
| userid | Required | String | User ID used to access the proxy server | ||
The following example sets the hostname.
{
"hostname": "my_host"
}
The following example sets the domain name.
{
"domain_name": "my_domain"
}
The following example configures the DNS servers.
{
"dns_servers": [{
"ip": "1.1.1.10",
"priority": 1
},
{
"ip": "2.2.2.20",
"priority": 2
},
...
{
"ip": "3.3.3.30",
"priority": 3
}]
}
The following example configures the proxy server.
{
"proxy": {
"enabled": true,
"ip": "1.1.1.1",
"password": "password",
"port": 11,
"userid": "userid"
}
}
Response codes
| Code | Description | Comments |
|---|---|---|
| 200 | OK | The request completed successfully. |
| 400 | Bad Request | A 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. |
| 500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
None
Give documentation feedback