/connmgr/v1/scan/<connection>/partitions: GET

Gets the list of fileset (IBM Storage Scale) or Shares (SMB/CIFS) on the target system.

This API endpoint fetches the list of filesets (IBM Storage Scale) or shares (SMB/CIFS) on the target system. Only an Data Cataloging user with the data admin role can get the list of partitions.

The following table displays the roles that can access the REST API endpoint:

Table 1. Access by role
Data admin Data user Collection Admin Admin Service user
Χ 1 Χ Χ
1 The Collection Admin user, can list the partitions for connections assigned to the collections which are assigned to them.

Synopsis of the request URL

curl -k -H 'Authorization: Bearer <token>' https://<spectrum_discover_host>/connmgr/v1/scan/<connection_name>/partitions
-X GET

Supported request types and response formats

Supported request types:
  • GET
Supported response formats:
  • JSON

Examples

  1. The following example returns partition (fileset) information from an IBM Storage Scale connection:
    • Run the following request on one line:
      curl -k -H 'Authorization: Bearer <token>'    
      https://<spectrum_discover_host>/connmgr/v1/scan/ss1 -X GET -H ’Accept: application/json’
    ["root", "fileset1", "fileset2"]
  2. The following example returns partition (share) information from an SMB/CIFS connection:

    Run the following request on one line:

    curl -k -H 'Authorization: Bearer <token>'    
    https://<spectrum_discover_host>>/connmgr/v1/scan/smb1 -X GET -H ’Accept: application/json’
    ["root", "dir1"]