Skip to main content

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

AttributesRequired / OptionalTypeDescription
profileIdRequiredStringProfile ID
profileNameRequiredStringNew profile name
The following example renames two server profiles.
[{
"profileId": "4753",
"profileName": "ThinkSystemSR550-124 "
},
{
"profileId": "4754",
"profileName": "ThinkSystemSR550-253 "
}]

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

AttributesTypeDescription
profileIdStringID of the server profile that was renamed
resultStringResults of the request. This can be one of the following values.
  • success. The request completed successfully.
  • service_error_profile_not_found. The profile ID is not valid.
  • service_error_name_in_use. A profile with the same name already exists.
The following example is returned if the request is successful.
[{
"profileId": "4753",
"result": "success"
},
{
"profileId": "4754",
"result": "success"
}]