PUT /profiles
Use this method to rename one or more server profiles.
Note
This REST API requires Lenovo XClarity Administrator v4.1.0 or later.
Authentication
Authentication with username and password is required.
Request URL
PUT https://{management_server_IP}/profiles
Query parameters
None
Request body
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
profileId | Required | String | Profile ID | ||
profileName | Required | String | New profile name |
The following example renames two server profiles.
[{
"profileId": "4753",
"profileName": "ThinkSystemSR550-124 "
},
{
"profileId": "4754",
"profileName": "ThinkSystemSR550-253 "
}]
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
Attributes | Type | Description | ||
---|---|---|---|---|
profileId | String | ID of the server profile that was renamed | ||
result | String | Results of the request. This can be one of the following values.
|
The following example is returned if the request is successful.
[{
"profileId": "4753",
"result": "success"
},
{
"profileId": "4754",
"result": "success"
}]
Give documentation feedback