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 user name 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

Table 1. ThinkServer servers
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.
  • mount

  • unmount

mediaType String Media type. This can be one of the following values.
  • CD/DVD. CD drive
  • FD. Flash drive
  • HD. Disk drive
mountMediaEnabled String Indicates whether the mounted media is enabled. This can be one of the following values.
  • true. The mounted media is enabled.

  • false. The mounted media is disabled.

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",
}
Table 2. All servers other than ThinkServer
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.
  • ftp
  • http
  • https
  • nfs
  • samba
  • sftp
  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"
   }]
}