Remotemount/remotefilesystems: GET
Lists the remote file systems. This API must be run on a cluster that mounts file systems remotely.
Availability
Available on all IBM Storage Scale editions.
Description
The GET /remotemount/remotefilesystems lists the remote file systems. For more information about the fields in the data structures that are returned, see mmremotefs command.
Request URL
https://<IP address or host name of API server>:<port>/scalemgmt/v2/remotemount/remotefilesystems
where- remotemount/remotefilesystems
- Specifies the target of the GET request.
Request headers
Accept: application/json
Request parameters
The following parameters can be used in the request URL to customize the
request:
Parameter name | Description and applicable keywords | Required/optional |
---|---|---|
owningCluster | Lists remote file systems for a specific owning cluster | Optional |
Request data
No request data.
Response data
{
"status": {
"code":ReturnCode,
"message":"ReturnMessage"
}
"remoteFilesystems": [
{
"remoteFilesystem": "Remote file system name",
"owningFilesystem": "Owning file system name",
"owningCluster": "Owning cluster name",
"remoteMountPath": "Remote mount path of the file system",
"mountOptions": "Mount options",
"automount": "Status of the auto mount"
}
]
For
more information about the fields in the following data structures, see the links at the end of this
topic. - "remoteFilesystems":
- Remote file system details.
- "remoteFilesystem": "Remote file system name"
- The name of the file system on the remote cluster.
- "owningFilesystem": "Owning file system name"
- The name of the file system on the owning cluster.
- "owningCluster": "Owning cluster name"
- The owning cluster of the remote file system.
- "remoteMountPath": "Remote mount path of the file system"
- The remote mount path of the remote file system.
- "mountOptions": "Mount options"
- The mount options of the remote file system.
- "automount": "Status of the auto mount"
- The automount status of the remote file system.
- "status":
- Return status.
- "message": "ReturnMessage",
- The return message.
- "code": ReturnCode
- The return code.
Examples
The following example shows how to get the list of remote file systems that belong to the owning cluster Cluster1.
Request data:
curl -k -u admin:admin001 -X GET --header 'accept:application/json'
'https://198.51.100.1:443/scalemgmt/v2/remotemount/remotefilesystems?owningCluster=Cluster1'
Response
data: Note: In the JSON data that is returned, the return code indicates whether the
command is successful. The response code 200 indicates that the command successfully retrieved the
information. Error code 400 represents an
invalid request and 500 represents internal server error.
{
"status": {
"code": 200,
"message": "..."
},
"remoteFilesystems": [
{
"remoteFilesystem": "filesystem1",
"owningFilesystem": "Owningfileystem1",
"owningCluster": "Cluster1",
"remoteMountPath": "string",
"mountOptions": "string",
"automount": "string"
}
]