Use this method to create a remote file-server profile.
The public key is returned in the response body. The generated private key is stored in Lenovo XClarity Administrator.
Authentication with user name and password is required.
POST https://{management_server_IP}/osImages/remoteFileServers
None
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
address | Required | String | IP address of the remote file server | ||
displayName | Required | String | User-defined name of the remote file server | ||
keyComment | Optional | String | Key comment | ||
keyPassphras | Optional | String | Key passphrase | ||
keyType | Optional | String | Type of encryption algorithm. This can be one of the following
values.
|
||
password | Optional | String | Password to connect to the remote file server | ||
port | Required | Integer | Port number | ||
protocol | Required | String | Server protocol. This can be one of the following values.
|
||
serverId | Optional | String | Profile ID for the remote file server If specified, the profile is modified. If not specified, a new profile is created. |
||
username | Optional | String | User name to connect to the remote file server |
{
"address" : "192.168.1.10",
"keyPassphrase": "Passw0rd",
"keyType" : "RSA-2048",
"port" : 8080,
"protocol" : "HTTPS"
}
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. |
403 | Forbidden | The 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. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Attributes | Type | Description | ||
---|---|---|---|---|
address | String | IP address of the remote file server | ||
keySignature | String | SFTP server key signature | ||
port | integer | Port number | ||
protocol | String | Server protocol. This can be one of the following values.
|
||
serverId | String | Profile ID for the remote file server | ||
serverPublicKey | String | XClarity Administrator generated public key | ||
result | String | Result of the request. This can be one of the
following values.
|
||
messages | Array of objects | Information about one or more messages | ||
explanation | String | Additional information to clarify the reason for the message | ||
id | String | Message identifier of a returned message | ||
recovery | Object | Recovery information | ||
text | String | User actions that can be taken to recover from the event | ||
URL | String | Link to the help system for more information, if available | ||
text | String | Message text associated with the message identifier |
{
"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."
}]
}