Skip to content

Latest commit

 

History

History
82 lines (67 loc) · 1.82 KB

reference_element_api_listdrives.adoc

File metadata and controls

82 lines (67 loc) · 1.82 KB
permalink sidebar keywords summary
api/reference_element_api_listdrives.html
sidebar
drives,drive,list,listing,listdrives,cluster
You can use the ListDrives method to list the drives that exist in the active nodes of the cluster. This method returns drives that have been added as volume metadata or block drives as well as drives that have not been added and are available.

ListDrives

You can use the ListDrives method to list the drives that exist in the active nodes of the cluster. This method returns drives that have been added as volume metadata or block drives as well as drives that have not been added and are available.

Parameters

This method has no input parameters.

Return value

This method has the following return value:

Name Description Type

drives

List of drives in the cluster.

drive array

Request example

Requests for this method are similar to the following example:

{
   "method": "ListDrives",
   "params": {},
   "id" : 1
}

Response example

This method returns a response similar to the following example:

{
   "id" : 1,
   "result" : {
     "drives" : [
       {
         "attributes" : {},
         "capacity" : 299917139968,
         "driveID" : 35,
         "nodeID" : 5,
         "serial" : "scsi-SATA_INTEL_SSDSA2CW6CVPR141502R3600FGN-part2",
         "slot" : 0,
         "status" : "active",
         "type" : "volume"
       },
       {
         "attributes" : {},
         "capacity" : 600127266816,
         "driveID" : 36,
         "nodeID" : 5,
         "serial" : "scsi-SATA_INTEL_SSDSA2CW6CVPR1415037R600FGN",
         "slot" : 6,
         "status" : "active",
         "type" : "block"
       }
     }
   ]
}

New since version

9.6