Skip to main content

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

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA 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.
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.
404Not foundA specified resource cannot be found. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

Table 1. ThinkServer servers
AttributesTypeDescription
mediaLocationStringLocation of the media that is mounted to the ThinkServer server, if the media is mounted
mediaServerAddressStringIP address of the server on which media is located
mediaStateStringIndicates whether the media is mounted. This can be one of the following values.
  • mount

  • unmount

mediaTypeStringMedia type. This can be one of the following values.
  • CD/DVD. CD drive
  • FD. Flash drive
  • HD. Disk drive
mountMediaEnabledStringIndicates 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
AttributesTypeDescription
memberCountInteger(Servers other than ThinkServer only) Number of media members
membersArray of objects(Servers other than ThinkServer only) Information about each media member
 domainNameString(Samba only) Domain of the user name to access the file path
 filePathStringFile path of the map image
 optionsString(Samba and NFS only) The mount options to map the image of the file path
 shareTypeStringMap type of the image. This can be one of the following values.
  • ftp
  • http
  • https
  • nfs
  • samba
  • sftp
 UIDStringUnique ID of the media member
 usernameString(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"
}]
}