GET /nodes/{uuid}/mediaMount
Use this method to return information about all discovered media.
Information about all discovered media is not included in node inventory using GET /nodes/{uuid_list}.
Authentication
Authentication with username and password is required.
Request URL
GET https://{management_server_IP}/nodes/{uuid}/mediaMount
where {uuid} is the UUID of a ThinkServer server. To obtain the node UUID, use the GET /nodes method.
Query parameters
None
Request body
None
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. |
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. |
404 | Not found | A specified resource cannot be found. 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 | ||
---|---|---|---|---|
mediaLocation | String | Location of the media that is mounted to the ThinkServer server, if the media is mounted | ||
mediaServerAddress | String | IP address of the server on which media is located | ||
mediaState | String | Indicates whether the media is mounted. This can be one of the following values.
| ||
mediaType | String | Media type. This can be one of the following values.
| ||
mountMediaEnabled | String | Indicates whether the mounted media is enabled. This can be one of the following values.
|
The following example is returned for a ThinkServer server if the request is successful.
{
"mediaLocation": "/path/to/someiso.iso",
"mediaServerAddress": "10.243.5.21",
"mediaState": "mount",
"mediaType": "HD"
"mountMediaEnabled": "true",
}
Attributes | Type | Description | ||
---|---|---|---|---|
memberCount | Integer | (Servers other than ThinkServer only) Number of media members | ||
members | Array of objects | (Servers other than ThinkServer only) Information about each media member | ||
domainName | String | (Samba only) Domain of the user name to access the file path | ||
filePath | String | File path of the map image | ||
options | String | (Samba and NFS only) The mount options to map the image of the file path | ||
shareType | String | Map type of the image. This can be one of the following values.
| ||
UID | String | Unique ID of the media member | ||
username | String | (Samba, NFS, HTTP, HTTPS, FTP, and SFTP only) User name that is used to access the file path |
The following example is returned for a System x server if the request is successful.
{
"memberCount": 2,
"members": [{
"domainName": "10.243.8.196",
"filePath": "https://10.243.8.196/path/to/some.iso",
"options": "ro",
"shareType": "NFS",
"UID": "28F0114D78",
"username": "JOE"
},
{
"domainName": "10.243.5.166",
"filePath": "sftp://10.243.5.166/path/to/some.iso",
"options": "ro",
"shareType": "SFTP",
"UID": "BB7CDCB184",
"username": "JOE"
}]
}
Give documentation feedback