/scalemgmt/v3/filesystems:mount: POST

Mounts all IBM Storage Scale file systems.

Availability

Available on all IBM Storage Scale editions.

Description

The POST filesystems:mount request mounts all existing file systems. If no nodes are specified, the file system is mounted only on the node against which the request is issued. The operation attributes for this request are LRO, target nodes, and batch operation. To run this request, you must have the RBAC permission for the mount action on the /scalemgmt/v3/filesystems:mount resource.

Request URL

https://<IP address or host name of API server>:<port>/scalemgmt/v3/filesystems:mount

Request headers

Accept: application/json

Parameters

The following parameters can be used in the request URL to customize the request:
Table 1. List of parameters
Parameter name Description and applicable keywords Required/optional
body The body of the request that contains the following parameters to be passed on to the IBM Storage Scale system to perform the requested operation:
{
  "mount_options": "string",
  "target_nodes": {
    "node_class": {
      "node_classes": [
        "string"
      ]
    },
    "node_list": {
      "nodes": [
        "string"
      ]
    }
  }
}
Required.
X-StorageScaleDomain The domain to be authorized against for the request. The default value is StorageScaleDomain. Optional.

Request data

No request data.

Response data

  • 200: A successful response and additional content was sent.
    {}

Examples

The following example mounts all file systems:

Request data:
curl -X 'POST' 'https://localhost:46443/scalemgmt/v3/filesystems:mount' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{
  "mount_options": "ro",
  "target_nodes": {
    "node_class": {
      "node_classes": [
        "all"
      ]
    }
  }
}' -k -n
Response data:
{
  "name": "MTpjODMyNmE0MS1iMzg1LTQ5NzctYjNlZS0xNTBjNmYzN2QwNjQ=",
  "metadata": {
    "@type": "type.googleapis.com/generic.v3.LongRunningOperationMetadata",
    "job_id": "MTpjODMyNmE0MS1iMzg1LTQ5NzctYjNlZS0xNTBjNmYzN2QwNjQ=",
    "operation_details": {
      "@type": "type.googleapis.com/filesystem.v3.MountAllFilesystemsRequest",
      "mount_options": "ro",
      "target_nodes": {
        "node_class": {
          "node_classes": [
            "all"
          ]
        }
      }
    },
    "status": "RUNNING",
    "request_time": "2025-03-31T21:12:24.198131492Z",
    "last_update_time": "2025-03-31T21:12:24.198268167Z",
    "domain_ids": [
      0
    ]
  }
}
...
{
  "name": "MTpjODMyNmE0MS1iMzg1LTQ5NzctYjNlZS0xNTBjNmYzN2QwNjQ=",
  "metadata": {
    "@type": "type.googleapis.com/generic.v3.LongRunningOperationMetadata",
    "job_id": "MTpjODMyNmE0MS1iMzg1LTQ5NzctYjNlZS0xNTBjNmYzN2QwNjQ=",
    "operation_details": {
      "@type": "type.googleapis.com/filesystem.v3.MountAllFilesystemsRequest",
      "mount_options": "ro",
      "target_nodes": {
        "node_class": {
          "node_classes": [
            "all"
          ]
        }
      }
    },
    "status": "DONE",
    "request_time": "2025-03-31T21:12:24.198131492Z",
    "completion_time": "2025-03-31T21:12:35.263596972Z",
    "last_update_time": "2025-03-31T21:12:35.263596972Z",
    "domain_ids": [
      0
    ]
  },
  "done": true,
  "response": {
    "@type": "type.googleapis.com/filesystem.v3.MountAllFilesystemsResponse",
    "succeeded": [
      {
        "node": "lancelot-41.openstacklocal",
        "filesystem": "fs1"
      },
      {
        "node": "lancelot-42.openstacklocal",
        "filesystem": "fs1"
      },
      {
        "node": "lancelot-41.openstacklocal",
        "filesystem": "remotefs1"
      },
      {
        "node": "lancelot-42.openstacklocal",
        "filesystem": "remotefs1"
      }
    ]
  }
}