Skip to main content

PUT /osImages/remoteFileServers/{id}

Use this method to modify a remote file-server profile.

The public key is returned in the response body. The generated private key is stored in Lenovo XClarity Administrator.

Note
This REST API requires Lenovo XClarity Administrator v1.3.0 or later.

Authentication

Authentication with username and password is required.

Request URL

PUT https://{management_server_IP}/osImages/remoteFileServers/{id}

where {id} is the ID of the remote file-server profile to be modified. To obtain the ID, use the GET /osImages/remoteFileServers method.

Query parameters

None

Request body

AttributesRequired / OptionalTypeDescription
addressRequiredStringIP address of the remote file server
displayNameRequiredStringUser-defined name of the remote file server
keyCommentOptionalStringKey comment
keyPassphrasOptionalStringKey passphrase
keyTypeOptionalStringType of encryption algorithm. This can be one of the following values.
  • RSA-2048

  • RSA-4096

  • ECDSA-521-secp521r1

passwordOptionalStringPassword to connect to the remote file server
portRequiredIntegerPort number
protocolRequiredStringServer protocol. This can be one of the following values.
  • HTTP

  • HTTPS

  • FTP

  • SFTP

serverIdOptionalStringProfile ID for the remote file server

If specified, the profile is modified. If not specified, a new profile is created.

usernameOptionalStringUser name to connect to the remote file server
The following example modifies a remote file-server profile using a user name and password.
{
"address" : "192.168.1.10",
"password" : "Passw0rd",
"port" : 8081,
"protocol" : "HTTPS",
"username" : "admin"
}

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
403ForbiddenThe orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request.

For XClarity Administrator advanced functions, ensure that you have active licenses for each managed server that supports the advanced functions.

500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
addressStringIP address of the remote file server
keySignatureStringSFTP server key signature
portIntegerPort number
protocolStringServer protocol. This can be one of the following values.
  • HTTP

  • HTTPS

  • FTP

  • SFTP

serverIdStringProfile ID for the remote file server
serverPublicKeyStringXClarity Administrator generated public key
resultStringResults of the request. This can be one of the following values.
  • success. The request completed successfully.
  • failed. The request failed. A descriptive error message was returned.
messagesArray of objectsInformation about one or more messages
 explanationStringAdditional information to clarify the reason for the message
 idStringMessage identifier of a returned message
 recoveryObjectRecovery information
  textStringUser actions that can be taken to recover from the event
  URLStringLink to the help system for more information, if available
 textStringMessage text associated with the message identifier
The following example is returned if the request is successful.
{
"address" : "192.168.1.10",
"keySignature" : "WJILKEKJLKJLKSJ092039230948…",
"port" : 8080,
"protocol" : "SFTP",
"serverId" : "100",
"serverPublicKey" : "KADKJADSKF94JK9O$#@@5983739AD…",
"result": "success",
"messages": [{
"id": "FQXHMSE0001I",
"explanation": "",
"recovery": {
"text": "Information only; no action is required.",
"URL": ""
},
"text": "The request completed successfully."
}]
}