Start of change

Unmount a UNIX file system

You can use this operation to unmount a UNIX file system on a specified directory.

HTTP method and URI path

PUT /zosmf/restfiles/mfs/<file-system-name>
where:
  • /zosmf/restfiles specifies the z/OS® data set and file REST interface
  • Start of change/mfsis used for managing file systems.End of change
  • <file-system-name> is the file system you want to unmount.

Request Body

The request body to unmount a UNIX file system is shown in Request body to unmount a UNIX file system .

Table 1. Request body to unmount a UNIX file system
Field Type Description
action String The support value unmount is used to unmount a specified file system.

Standard headers

None.

Custom headers

None.

Query parameters

None.

Content type

The content type is application/json.

Required authorizations

See Required authorizations.

Expected response

On completion, the service returns an HTTP response, which includes a status code indicating whether your request completed. Status code 204 indicates success. A status code of 4nn or 5nn indicates that an error has occurred. For more details, see Error handling.

If the request is successfully executed, status code 204 indicates success and no content returned is returned.

Example request

In the following example, the PUT method is used to unmount a UNIX file system.
PUT /zosmf/restfiles/mfs/JIAHJ.ZOSMF.DRIVER.HFS HTTP/1.1

Request body

{"action":"unmount"}

Example response

A sample response is shown in Unmount a UNIX file system.
Figure 1. Example: Unmount a UNIX file system
204 No Content
Content-Type:  application/json; charset=UTF-8
Content-Length:  0
Date:  Thu, 17 Sep 2015 08:09:21 GMT

End of change