GET /osImages/remoteFileServers
Use this method retrieve information about all remote file-server profiles.
Note
This REST API requires Lenovo XClarity Administrator v1.3.0 or later.
Authentication
Authentication with username and password is required.
Request URL
GET https://{management_server_IP}/osImages/remoteFileServers
Query parameters
None
Request body
None
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
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. |
Response body
Attributes | Type | Description | ||
---|---|---|---|---|
serverList | Information about each remote file-server profile | |||
address | IP address of the remote file server | |||
keyType | Type of encryption algorithm. This can be one of the following values.
| |||
port | Port number | |||
protocol | Server protocol. This can be one of the following values.
| |||
serverId | Profile ID for the remote file server. | |||
serverPublicKey | XClarity Administrator generated public key. | |||
username | User name to connect to the remote file server. | |||
result | String | Result of the request. This can be one of the following values.
| ||
messages | Array | 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 | Array | 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 |
The following example is returned if the request is successful.
{
"serverList": [{
"address": "192.168.1.10",
"keyType": "RSA-2048",
"port": 8080,
"protocol": "SFTP",
"serverId": "100",
"serverPublicKey": "KLAJDSLFAKEUIJ387U28379…"
},
{
"address": "192.168.1.20,
"port" : 80,
"protocol" : "FTP",
"serverId" : "101",
"username" : "admin"
}],
"result": "success",
"messages": [{
"id": "FQXHMSE0001I",
"explanation": "",
"recovery": {
"text": "Informationonly;noactionisrequired.",
"URL": ""
},
"text": "Therequestcompletedsuccessfully."
}]
}
Give documentation feedback